/**
 * ==============================================
 * LAUNCHER - CHỦ ĐỀ TẾT
 * ==============================================
 */

/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}*/

/* ===== Background ===== */
.launcher-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        #FFF8E7 0%,
        #FFE5B4 25%,
        #FFD4A3 50%,
        #FFE5B4 75%,
        #FFF8E7 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
}

/* Decorative pattern */
.launcher-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 182, 193, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(220, 38, 38, 0.1) 0%, transparent 60%);
    animation: floatPattern 20s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes floatPattern {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* ===== Launcher Container ===== */
.launcher-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    text-align: center;
}

.launcher-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg,
        #DC2626 0%,
        #F59E0B 50%,
        #DC2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.launcher-subtitle {
    font-size: 1.3rem;
    color: #4B5563;
    margin-bottom: 50px;
    font-weight: 500;
}

/* ===== Launch Button ===== */
.launch-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 50px;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg,
        #DC2626 0%,
        #F59E0B 50%,
        #DC2626 100%);
    background-size: 200% 100%;
    border: 3px solid #FFD700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 10px 40px rgba(220, 38, 38, 0.4),
        0 0 40px rgba(255, 215, 0, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: buttonShimmer 3s ease-in-out infinite;
}

@keyframes buttonShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.launch-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent);
    transition: left 0.6s ease;
}

.launch-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 15px 50px rgba(220, 38, 38, 0.5),
        0 0 60px rgba(255, 215, 0, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
    border-color: white;
}

.launch-button:hover::before {
    left: 100%;
}

.launch-button:active {
    transform: translateY(-3px) scale(1.02);
}

.button-icon {
    font-size: 1.6rem;
    animation: iconFloat 2s ease-in-out infinite;
}

.button-icon:first-child {
    animation-delay: 0s;
}

.button-icon:last-child {
    animation-delay: 1s;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.button-text {
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ===== Decorative Items ===== */
.launcher-decor {
    margin-top: 60px;
    display: flex;
    gap: 40px;
    font-size: 3rem;
}

.decor-item {
    display: inline-block;
    animation: decorFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.decor-item:nth-child(1) {
    animation-delay: 0s;
}
.decor-item:nth-child(2) {
    animation-delay: 0.5s;
}
.decor-item:nth-child(3) {
    animation-delay: 1s;
}
.decor-item:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes decorFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-5px) rotate(5deg);
    }
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-container {
    position: relative;
    width: 95vw;
    height: 95vh;
    margin: 2.5vh auto;
    background: white;
    border-radius: 20px;
    border: 3px solid #FFD700;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(255, 215, 0, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ===== Close Button ===== */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #FFD700;
    background: linear-gradient(135deg, #DC2626 0%, #F59E0B 100%);
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 20px rgba(220, 38, 38, 0.4),
        0 0 20px rgba(255, 215, 0, 0.3);
}

.modal-close:hover {
    transform: scale(1.15) rotate(90deg);
    background: linear-gradient(135deg, #991B1B 0%, #D97706 100%);
    box-shadow:
        0 6px 30px rgba(220, 38, 38, 0.6),
        0 0 40px rgba(255, 215, 0, 0.5);
}

.modal-close:active {
    transform: scale(1.05) rotate(90deg);
}

/* ===== Modal Content (iframe) ===== */
.modal-content {
    width: 100%;
    height: 100%;
    border-radius: 17px;
    overflow: hidden;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .launcher-title {
        font-size: 2.2rem;
    }

    .launcher-subtitle {
        font-size: 1rem;
    }

    .launch-button {
        padding: 16px 35px;
        font-size: 1.1rem;
        gap: 10px;
    }

    .button-icon {
        font-size: 1.3rem;
    }

    .launcher-decor {
        gap: 25px;
        font-size: 2rem;
    }

    .modal-container {
        width: 98vw;
        height: 98vh;
        margin: 1vh auto;
        border-radius: 12px;
    }

    .modal-close {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .launcher-title {
        font-size: 1.8rem;
    }

    .launcher-subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .launch-button {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .launcher-decor {
        margin-top: 40px;
        gap: 20px;
        font-size: 1.5rem;
    }

    .modal-container {
        width: 100vw;
        height: 100vh;
        margin: 0;
        border-radius: 0;
        border: none;
    }

    .modal-content {
        border-radius: 0;
    }

    .modal-close {
        top: 8px;
        right: 8px;
    }
}
