﻿/* ============================================
   CHRISTMAS CARD MODAL
   ============================================ */

/* Modal Overlay */
.christmas-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Christmas Card */
.christmas-card {
    position: relative;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    background: linear-gradient( 135deg, #ffffff 0%, #f8f9fa 100% );
    border-radius: 32px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close Button */
.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .close-button:hover {
        background: rgba(0, 0, 0, 0.1);
        color: #c92a2a;
        transform: rotate(90deg);
    }

/* Card Content */
.card-content {
    position: relative;
    z-index: 2;
}

/* Header */
.card-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    font-size: 4rem;
}

.logo-cat {
    animation: bounce 2s ease-in-out infinite;
}

    .logo-cat.blue {
        filter: hue-rotate(200deg);
        animation-delay: 0.2s;
    }

    .logo-cat.orange {
        filter: hue-rotate(20deg);
    }

/*.logo-animal {
    animation: bounce 2s ease-in-out infinite;
    transition: transform 0.3s ease;
}*/

/* Mèo - Blue themed */
/*.logo-animal.cat {
        filter: hue-rotate(200deg) brightness(1.1);
        animation-delay: 0s;
    }*/

/* Trâu - Orange themed */
/*.logo-animal.buffalo {
        filter: hue-rotate(20deg) saturate(1.2);
        animation-delay: 0.3s;
    }

    .logo-animal:hover {
        transform: scale(1.15);
    }*/

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}


.company-name {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0D9EFF 0%, #FFB344 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* Card Body */
.card-body {
    text-align: center;
    margin-bottom: 32px;
}

.greeting {
    font-size: 2.5rem;
    font-weight: 800;
    color: #c92a2a;
    margin: 0 0 12px 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subgreeting {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2f9e44;
    margin: 0 0 32px 0;
    font-style: italic;
}

.message {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 24px;
    border: 2px dashed #ffd43b;
    text-align: left;
}

    .message p {
        font-size: 1.05rem;
        line-height: 1.7;
        color: #333;
        margin-bottom: 16px;
    }

        .message p:last-child {
            margin-bottom: 0;
        }

.signature {
    font-weight: 700;
    color: #0D9EFF;
    margin-top: 24px !important;
}

.tagline {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-top: 20px !important;
}

/* Card Footer */
.card-footer {
    text-align: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #c92a2a 0%, #e03131 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 42, 42, 0.3);
}

    .cta-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(201, 42, 42, 0.4);
        background: linear-gradient(135deg, #a61e1e 0%, #c92a2a 100%);
    }

    .cta-button .arrow {
        font-size: 1.5rem;
        transition: transform 0.3s ease;
    }

    .cta-button:hover .arrow {
        transform: translateX(5px);
    }

.footer-note {
    margin-top: 16px;
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

/* Decorative Elements */
.decoration {
    position: absolute;
    font-size: 3rem;
    opacity: 0.7;
    animation: rotate 8s linear infinite;
    pointer-events: none;
}

.decoration-tl {
    top: 10px;
    left: 10px;
}

.decoration-tr {
    top: 10px;
    right: 10px;
    animation-delay: 2s;
}

.decoration-bl {
    bottom: 10px;
    left: 10px;
    animation-delay: 4s;
}

.decoration-br {
    bottom: 10px;
    right: 10px;
    animation-delay: 6s;
}

@keyframes rotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(15deg) scale(1.1);
    }
}

/* Snowflakes */
.snowflakes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 32px;
}

.snowflake {
    position: absolute;
    top: -10%;
    color: rgba(13, 158, 255, 0.3);
    font-size: 1.5rem;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(110vh);
    }
}

/* Stagger snowflakes */
.snowflake:nth-child(1) {
    left: 5%;
    animation-duration: 8s;
    animation-delay: 0s;
}

.snowflake:nth-child(2) {
    left: 15%;
    animation-duration: 10s;
    animation-delay: 1s;
}

.snowflake:nth-child(3) {
    left: 25%;
    animation-duration: 7s;
    animation-delay: 2s;
}

.snowflake:nth-child(4) {
    left: 35%;
    animation-duration: 9s;
    animation-delay: 0.5s;
}

.snowflake:nth-child(5) {
    left: 45%;
    animation-duration: 8.5s;
    animation-delay: 1.5s;
}

.snowflake:nth-child(6) {
    left: 55%;
    animation-duration: 7.5s;
    animation-delay: 2.5s;
}

.snowflake:nth-child(7) {
    left: 65%;
    animation-duration: 9.5s;
    animation-delay: 0.8s;
}

.snowflake:nth-child(8) {
    left: 75%;
    animation-duration: 8s;
    animation-delay: 1.8s;
}

.snowflake:nth-child(9) {
    left: 85%;
    animation-duration: 10s;
    animation-delay: 0.3s;
}

.snowflake:nth-child(10) {
    left: 95%;
    animation-duration: 7s;
    animation-delay: 2.2s;
}

.snowflake:nth-child(11) {
    left: 10%;
    animation-duration: 9s;
    animation-delay: 3s;
}

.snowflake:nth-child(12) {
    left: 20%;
    animation-duration: 8s;
    animation-delay: 1.2s;
}

.snowflake:nth-child(13) {
    left: 30%;
    animation-duration: 10s;
    animation-delay: 0.6s;
}

.snowflake:nth-child(14) {
    left: 40%;
    animation-duration: 7.5s;
    animation-delay: 2.8s;
}

.snowflake:nth-child(15) {
    left: 50%;
    animation-duration: 9s;
    animation-delay: 1.4s;
}

.snowflake:nth-child(16) {
    left: 60%;
    animation-duration: 8.5s;
    animation-delay: 0.9s;
}

.snowflake:nth-child(17) {
    left: 70%;
    animation-duration: 7s;
    animation-delay: 2.3s;
}

.snowflake:nth-child(18) {
    left: 80%;
    animation-duration: 9.5s;
    animation-delay: 0.4s;
}

.snowflake:nth-child(19) {
    left: 90%;
    animation-duration: 8s;
    animation-delay: 1.9s;
}

.snowflake:nth-child(20) {
    left: 12%;
    animation-duration: 10s;
    animation-delay: 2.6s;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .christmas-card {
        padding: 36px 28px;
        border-radius: 24px;
    }

    .logo-pair {
        font-size: 3rem;
        gap: 16px;
    }

    .company-name {
        font-size: 1.5rem;
    }

    .greeting {
        font-size: 2rem;
    }

    .subgreeting {
        font-size: 1.1rem;
    }

    .message {
        padding: 20px;
    }

        .message p {
            font-size: 1rem;
        }

    .cta-button {
        padding: 16px 32px;
        font-size: 1.1rem;
    }

    .decoration {
        font-size: 2rem;
    }

    .snowflake {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .christmas-modal-overlay {
        padding: 16px;
    }

    .christmas-card {
        padding: 28px 20px;
    }

    .logo-pair {
        font-size: 2.5rem;
        gap: 12px;
    }

    .company-name {
        font-size: 1.25rem;
    }

    .greeting {
        font-size: 1.75rem;
    }

    .subgreeting {
        font-size: 1rem;
    }

    .message p {
        font-size: 0.95rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }
}
