/* Vote page specific styles */
.vote-section-title span {
    font-size: 20px;
    font-weight: 500;
}
.vote-section-title h2 {
    margin-top: 16px;
    line-height: 4.5rem;
}
.vote-section-title .btn-area2 .send:hover {
    color: white;
}

.vote_all-works {
    margin-top: 40px;
}

.vote_all-works .annotation {
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid #D2D5DA;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vote_all-works .annotation p {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.vote_all-works .collection-container {
    display: flex;
    gap: 20px;
    row-gap: 20px;
    justify-content: flex-start;
    margin: 0 auto;
    padding-bottom: 40px;
    flex-wrap: wrap;
}

.vote-work-item {
    width: 258px;
    flex: 0 0 auto;
    height: auto;
    border: 1px solid #D2D2D2;
    transition: 0.3s;
    background: #fff;
    text-align: center;
}

.vote-work-item:hover {
    box-shadow: 0 0 15px 0 #8b8b8b;
}

.vote-work-item .work-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.vote-work-item .work-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0001;
}

.vote-work-item .name {
    padding: 20px 16px 10px;
    margin: 0;
    list-style: none;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    line-height: 24px;
}

.vote-work-item .name li {
    margin-bottom: 5px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.vote-info {
    padding: 0 12px 10px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.vote-btn {
    background: white;
    color: #5F6368;
    border: 1px solid #5F6368;
    padding: 6px 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vote-btn-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.heart-icon {
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.heart-icon svg {
    width: 24px;
    height: 24px;
}

.heart-outline {
    display: block;
}

.heart-filled {
    display: none;
}

.vote-count {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
}

.vote-count-number {
    font-size: 16px;
    font-weight: bold;
    color: #5F6368;
    white-space: nowrap;
}

.vote-btn:hover {
    background: #f3f3f3;
    border-color: #999;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
}

.vote-btn:hover .heart-icon {
    transform: scale(1.1);
}

.vote-btn:active {
    transform: translateY(0);
}

.vote-btn:disabled {
    background: #f5f5f5;
    border-color: #ddd;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.vote-btn.voted {
    background: white;
    border-color: #e74c3c;
    color: #e74c3c;
}

.vote-btn.voted .vote-count,
.vote-btn.voted .vote-count-number {
    color: #e74c3c;
}

.vote-btn.voted .heart-outline {
    display: none;
}

.vote-btn.voted .heart-filled {
    display: block;
    animation: heartBeat 0.6s ease-in-out;
}

.vote-btn.voted:hover {
    background: #fef2f2;
    border-color: #dc2626;
    color: #dc2626;
}

.vote-btn.voted:hover .vote-count,
.vote-btn.voted:hover .vote-count-number {
    color: #dc2626;
}

.vote-btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.load-more-container {
    text-align: center;
    margin-bottom: 60px;
    padding: 0;
}
.btn-area2 .send.load-more-btn {
    height: 60px;
    margin: 0 auto;
    border-width: 1px;
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 60px;
}
.btn-area2 .send.load-more-btn::after {
    content: none;
}
.load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.loading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Responsive styles - following archive.html pattern */
@media screen and (min-width: 576px) {
    .vote_all-works .collection-container {
        max-width: 536px;
    }
}

@media screen and (min-width: 992px) {
    .vote_all-works .collection-container {
        max-width: 814px;
        padding-bottom: 40px;
    }
}

@media screen and (min-width: 1200px) {
    .vote_all-works .collection-container {
        max-width: 1092px;
    }
}

@media screen and (max-width: 767.98px) {
    .vote-section-title .btn-area2 {
        margin-top: 20px;
    }
    .vote-section-title .btn-area2 .send {
        padding-right: 40px;
        text-align: center;
    }
    .vote_all-works .annotation {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media screen and (max-width: 576px) {
    .vote_all-works .collection-container {
        max-width: 258px;
    }

    .vote-work-item .name {
        line-height: 1.5;
    }

    .vote-work-item .work-image {
        height: 160px;
    }

    .vote-work-item .name {
        padding: 12px;
    }

    .vote-work-item .name li {
        font-size: 1.1rem;
    }

    .vote-work-item .name li:first-child {
        font-size: 1.2rem;
    }

    .btn-area2 .send.load-more-btn {
        width: 90%;
        max-width: 300px;
        margin: 0 auto;
        padding: 0;
        text-align: center;
        height: 50px;
        line-height: 50px;
    }
}

@media screen and (max-width: 375px) {
    .vote-work-item .work-image {
        height: 140px;
    }

    .vote-work-item .name {
        padding: 10px;
    }

    .vote-work-item .name li {
        font-size: 1.0rem;
    }

    .vote-work-item .name li:first-child {
        font-size: 1.1rem;
    }
}

/* Animation for vote success */
.vote-success {
    animation: voteSuccess 0.6s ease-out;
}

@keyframes voteSuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(203, 51, 51, 0.5);
    }
    100% {
        transform: scale(1);
    }
}

/* Loading animation */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #5F6368;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Heart beat animation */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

/* Vote Dialog Styles */
.vote-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.vote-dialog {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 670px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

.vote-dialog-content {
    padding: 30px 20px 20px;
}

.vote-dialog-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin: 0 0 20px 0;
    color: #333;
}

.vote-dialog-work-info {
    border: 1px solid #D2D2D2;
    border-radius: 4px;
    background: #fff;
    margin: 0 auto 20px;
    text-align: center;
    width: 258px;
    max-width: 100%;
}

.vote-dialog-work-info .work-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.vote-dialog-work-info .work-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0001;
}

.vote-dialog-work-info .name {
    padding: 20px 16px 10px;
    margin: 0;
    list-style: none;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    line-height: 24px;
}

.vote-dialog-work-info .name li {
    margin-bottom: 5px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.vote-dialog-work-info .vote-info {
    padding: 0 12px 10px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.vote-count-display {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5F6368;
    font-size: 16px;
    font-weight: bold;
}

.vote-count-display .heart-icon {
    display: flex;
    align-items: center;
}

.vote-count-display .heart-icon svg {
    width: 24px;
    height: 24px;
}

.vote-dialog-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.vote-dialog-btn {
    display: block;
    text-align: center;
    line-height: 50px;
    font-weight: bold;
    position: relative;
    width: 150px;
    height: 50px;
    border: 2px solid #2e2e2e;
    background-color: #fff;
    font-size: 1.6rem;
    color: #2e2e2e;
    z-index: 1;
    transition: color 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.vote-dialog-btn::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #2e2e2e;
    transition: transform 0.3s ease;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right top;
}

.vote-dialog-btn:focus {
    box-shadow: 0 0 5px 3px rgba(0,0,0,0.16);
}
.vote-dialog-btn:focus-visible {
    outline: none;
}

.vote-dialog-btn:hover {
    color: #fff;
}

.vote-dialog-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left top;
}

.vote-dialog-yes {
    background-color: #2e2e2e;
    color: #fff;
}

.vote-dialog-yes::before {
    background-color: #fff;
}

.vote-dialog-yes:hover {
    color: #2e2e2e;
}

.vote-dialog-reward.send {
    position: relative;
    display: block;
    z-index: 1;
    width: 360px;
    height: 50px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #fff;
    border: 2px solid #2e2e2e;
    color: #2e2e2e;
    text-align: center;
    line-height: 50px;
    font-weight: bold;
    font-size: 1.6rem;
    transition: color 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.vote-dialog-reward.send::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #2e2e2e;
    transition: transform 0.3s ease;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right top;
}

.vote-dialog-reward.send:hover {
    color: #fff;
}

.vote-dialog-reward.send:hover::before {
    transform: scaleX(1);
    transform-origin: left top;
}

/* Dialog animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive dialog styles */
@media screen and (max-width: 576px) {
    .vote-dialog {
        max-width: 95%;
        margin: 20px;
    }

    .vote-dialog-content {
        padding: 20px 15px 15px;
    }

    .vote-dialog-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .vote-dialog-work-info .work-image {
        height: 160px;
    }

    .vote-dialog-work-info .name {
        padding: 12px;
        font-size: 14px;
        line-height: 20px;
    }

    .vote-dialog-btn {
        font-size: 16px;
    }

    .vote-dialog-reward.send {
        font-size: 16px;
    }
}

@media screen and (max-width: 375px) {
    .vote-dialog-work-info .work-image {
        height: 140px;
    }

    .vote-dialog-work-info .name {
        padding: 10px;
        font-size: 13px;
    }
}

/* Full-width sections */
.wrapper--full {
    width: 100%;
}

/* Present section */
.section-present {
    background-color: #F4F4F4;
    padding: 45px 0;
}

.present-title {
    width: 100%;
    text-align: center;
}
.present-title h2 {
    font-size: 40px;
    font-weight: bold;
    line-height: 50px;
}
.present-title p {
    margin-top: 8px;
    font-size: 20px;
    font-weight: bold;
    line-height: 30px;
}

/* NFT Info Section */
.present__nft-info {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 920px;
    margin: 20px auto;
    padding: 35px 40px;
    border-radius: 12px;
    background: white;
}

.present__nft-image {
    max-width: 100%;
    height: auto;
}

.present__nft-description {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.present__instruction {
    max-width: 670px;
    margin: 0 auto;
    padding: 10px 0 0;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.present__download-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 720px;
    padding-top: 1.5rem;
    position: relative;
    margin: 0 auto;
}

.present__download-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    padding: 0 10px;
}

.present__download-item:last-child {
    margin-bottom: 0;
}

.present__wallet-info {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    width: 83.333333%;
    margin: 0 auto;
}

.present__wallet-logo {
    max-width: 100%;
    height: auto;
    margin: 10px auto 0;
}

.present__requirements {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #dee2e6;
}

.present__requirements-label {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0 0.75rem;
    background-color: #F4F4F4;
    text-align: center;
    white-space: nowrap;
}

.present__requirements-text {
    font-size: 16px;
    line-height: 1.25;
    text-align: center;
    margin: 0.5rem 0.5rem 0;
}

.present__requirements-specs {
    display: inline-block;
    text-align: left;
}

.present__qr-container {
    position: relative;
    display: none;
    width: 192px;
    margin: 0 auto;
}

.present__qr-spacer {
    padding-top: 100%;
}

.present__qr-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.present__download-link {
    position: relative;
    display: block;
    margin: 16px auto;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.present__download-link:hover {
    transform: translateY(-2px);
}

.present__download-link--app {
    width: 66.666667%;
}

.present__download-link--google {
    width: 83.333333%;
}

.present__download-spacer--app {
    padding-top: 36%;
}

.present__download-spacer--google {
    padding-top: 30%;
}

.present__download-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Responsive Styles */
@media (min-width: 576px) {
    .present__requirements {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (min-width: 768px) {
    .present__download-container {
        width: 83.333333%;
        margin-top: 2.5rem;
        padding-top: 1.5rem;
    }

    .present__download-item {
        width: 33.333333%;
        margin-bottom: 0;
    }

    .present__wallet-info {
        width: 100%;
    }

    .present__requirements {
        display: block;
    }

    .present__qr-container {
        display: block;
    }
}

@media (min-width: 992px) {
    .present__download-container {
        margin-top: 3rem;
    }
}

@media (max-width: 992px) {
    .present__nft-info {
        width: calc(100% - 60px);
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        padding: 20px 25px;
    }
    .present__nft-description {
        font-size: 16px;
    }
    .present__requirements {
        padding: 8px 0;
    }
    .present__requirements-text {
        font-size: 14px;
    }
}

@media (max-width: 767.98px) {
    .section-present {
        padding: 40px 0;
    }

    .present__nft-info {
        flex-direction: column;
    }

    .present__instruction {
        padding: 10px 40px;
    }

    .present__requirements {
        padding: 8px 12px;
        margin: 0 auto;
    }

    .present__download-container {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .present__download-item {
        width: calc(100% - 60px);
        margin-left: 30px;
        margin-bottom: 20px;
    }
    .present__download-link {
        margin: 0 auto;
        padding: 0;
    }
    .present__download-spacer {
        display: none;
    }
    .present__download-image {
        position: relative;
        display: block;
        width: auto;
        max-width: 200px;
        margin: 0 auto;
    }

    .present__wallet-logo {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .present__nft-description,
    .present__instruction {
        font-size: 14px;
    }

    .present__wallet-info {
        max-width: 100%;
        gap: 10px;
    }

    .present__wallet-logo {
    }

    .present__requirements-text {
        font-size: 14px;
    }
    .present__requirements-label {
        font-size: 15px;
    }
}

/* Instagram section */
.section-instagram {
    background-color: white;
    padding: 30px 0;
    text-align: center;
}

.instagram__container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.instagram__logo-container {
    flex-shrink: 0;
}

.instagram__logo {
}

.instagram__text-container {
    text-align: left;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
    color: #333;
}
.instagram__text-main {
    margin: 0 0 5px 0;
}
.instagram__text-sub {
    margin: 0;
}

/* How-to section */
.section-howto {
    background-color: #F4F4F4;
    padding: 55px 0 75px;
}

.howto-title {
    width: 100%;
    text-align: center;
}
.howto-title h2 {
    font-size: 40px;
    font-weight: bold;
    line-height: 50px;
}
.howto-title p {
    margin-top: 8px;
    font-size: 20px;
    font-weight: bold;
    line-height: 30px;
}

.howto-step-container {
    display: flex;
    justify-content: center;
    gap: 36px;
    max-width: 960px;
    margin: 48px auto 0;
}

.howto-step {
    flex: 1;
    max-width: 288px;
    text-align: center;
    background-color: white;
    border-radius: 12px;
    padding: 24px 20px 15px 20px;
}

.howto-step__number {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    background-color: #333;
    border-radius: 40px;

    color: white;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 40px;
}
.howto-step__number em {
    font-style: normal;
    font-size: 24px;
    font-weight: bold;
}

.howto-step__description {
    margin: 0 0 25px 0;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.howto-step__image-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.howto-step__image-container--3 {
    margin: 0 18px 20px 15px;
    padding: 30px 32px 0 35px;
    background-image: url("/static/osaka/image/vote/howto/step3-bg-sparkle.png");
    background-repeat: no-repeat;
    background-position: top right;
}

.howto-step__image {
    max-width: 100%;
    height: auto;
    border: 1px solid #9DA3AF;
}
.howto-step__image--1 {
    padding: 5px 5px 0 5px;
}

.howto-step__note {
    padding: 0 20px;
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
}

/* Responsive styles for Instagram section */
@media (max-width: 768px) {
    .instagram__container {
        max-width: 100%;
        gap: 20px;
        margin: 0 30px;
        padding: 0 10px;
    }

    .instagram__text-main,
    .instagram__text-sub {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .section-instagram {
        padding: 25px 0;
    }

    .instagram__container {
        flex-direction: column;
        margin: 0 15px;
        padding: 0 15px;
    }

    .instagram__logo {
        height: 50px;
    }

    .instagram__text-container {
        text-align: center;
    }
    .instagram__text-main,
    .instagram__text-sub {
        font-size: 15px;
    }
}

/* Responsive styles for How-to section */
@media (max-width: 992px) {
    .howto-step-container {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .section-howto {
        padding: 40px 0;
    }

    .howto-step-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .howto-step {
        max-width: 360px;
        width: 100%;
        margin: 0 20px;
        padding: 25px;
    }

    .howto-step__number {
        font-size: 16px;
        padding: 10px 25px;
        line-height: 30px;
    }

    .howto-step__image-container {
        max-width: 240px;
        margin-left: auto;
        margin-right: auto;
    }

    .howto-step__description {
        font-size: 15px;
    }
    .howto-step__description em {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .howto-step-container {
        padding: 0 30px;
    }

    .howto-step {
        margin: 0 10px;
        padding: 20px 15px;
    }

    .howto-step__number {
        font-size: 14px;
        padding: 8px 20px;
        line-height: 30px;
    }
    .howto-step__number em {
        font-size: 16px;
    }

    .howto-step__description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .howto-step__note {
        font-size: 13px;
    }
}
