/* ==========================================================================
   STYLING SYSTEM FOR STAYHUE.VN
   Color Palette: Deep Imperial Purple & Radiant Gold
   Aesthetics: Modern Premium Glassmorphism
   ========================================================================== */

/* 1. Global Variables & Setup */
:root {
    --color-bg: #09070f;
    --color-purple-deep: #160f29;
    --color-gold-light: #ffd700;
    --color-gold: #e5a900;
    --color-gold-dark: #b8860b;
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-muted: rgba(255, 255, 255, 0.45);
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 24px;
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.4), 
                      inset 0 1px 0 rgba(255, 255, 255, 0.1);
                      
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem 1rem;
}

/* 2. Background Animated Blobs */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    mix-blend-mode: screen;
    animation: blob-float 25s infinite alternate ease-in-out;
}

.blob-purple {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(110, 68, 255, 0.8) 0%, rgba(67, 10, 190, 0) 70%);
}

.blob-gold {
    bottom: -10%;
    right: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(229, 169, 0, 0.6) 0%, rgba(184, 134, 11, 0) 70%);
    animation-delay: -10s;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(5vw, 10vh) scale(1.1);
    }
    66% {
        transform: translate(-10vw, 5vh) scale(0.95);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* 3. Main Glass Card Container */
.main-wrapper {
    width: 100%;
    max-width: 800px;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 24px;
    padding: 3.5rem 3rem;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

/* Diagonal glares across the card for extra premium feel */
.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transform: skewX(-25deg);
    animation: glass-shine 8s infinite ease-in-out;
}

@keyframes glass-shine {
    0% { left: -150%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

@keyframes fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 4. Header & Logo Styling */
.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

.logo-icon {
    width: 76px;
    height: 76px;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 4px 12px rgba(229, 169, 0, 0.25));
    transition: transform 0.4s ease;
}

.logo-icon:hover {
    transform: rotate(5deg) scale(1.05);
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.4rem;
}

.brand-title span {
    background: linear-gradient(135deg, var(--color-gold-light) 10%, var(--color-gold) 60%, var(--color-gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-tagline {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

.divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border) 20%, var(--glass-border) 80%, transparent);
    margin: 2rem 0;
}

/* 5. Main Content Area */
.content-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    background: rgba(229, 169, 0, 0.1);
    border: 1px solid rgba(229, 169, 0, 0.2);
    color: var(--color-gold-light);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(229, 169, 0, 0.05);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-gold);
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
}

.pulse-dot::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--color-gold);
    animation: dot-pulse 1.8s infinite ease-in-out;
}

@keyframes dot-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

.main-heading {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    max-width: 620px;
    margin: 0 auto;
}

/* 6. Countdown Timer Styling */
.countdown-section {
    margin-bottom: 3rem;
}

.timer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 540px;
    margin: 0 auto;
}

.time-block {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.25rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.time-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold-light), var(--color-gold));
    opacity: 0.7;
}

.time-block:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 169, 0, 0.3);
}

.time-num {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: var(--font-body);
    background: linear-gradient(180deg, #ffffff 30%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 0.3rem;
}

.time-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 600;
    letter-spacing: 1.5px;
}

/* 7. Email Subscription Form */
.subscription-section {
    margin-bottom: 3.5rem;
}

.subscribe-form {
    max-width: 580px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 6px;
    border-radius: 50px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group:focus-within {
    border-color: rgba(229, 169, 0, 0.5);
    box-shadow: 0 0 20px rgba(229, 169, 0, 0.1);
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text-primary);
    padding: 0 1.5rem;
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.input-group input::placeholder {
    color: var(--color-text-muted);
}

.btn-submit {
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
    color: #0b0914;
    border: none;
    outline: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 169, 0, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 169, 0, 0.45);
    background: linear-gradient(135deg, #ffffff 0%, var(--color-gold-light) 100%);
}

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

.btn-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.btn-submit:hover .btn-arrow {
    transform: translateX(4px);
}

/* 8. Footer & Direct Contact Details */
.card-footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    text-align: center;
}

.footer-title {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 580px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(229, 169, 0, 0.05);
    border-color: rgba(229, 169, 0, 0.25);
    color: var(--color-gold-light);
    transform: translateY(-2px);
}

.contact-item .icon {
    width: 18px;
    height: 18px;
}

/* 9. Feedback Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #12101e;
    border: 1px solid rgba(229, 169, 0, 0.3);
    border-left: 4px solid var(--color-gold);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toast-icon {
    width: 24px;
    height: 24px;
    color: var(--color-gold);
    flex-shrink: 0;
}

.toast-message {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 2px;
}

.toast-desc {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

/* 10. Responsive Media Queries */
@media (max-width: 768px) {
    body {
        padding: 1.5rem 0.5rem;
    }

    .glass-card {
        padding: 2.5rem 1.5rem;
        border-radius: 18px;
    }

    .brand-title {
        font-size: 2.3rem;
    }

    .main-heading {
        font-size: 1.6rem;
    }

    .timer-container {
        gap: 0.75rem;
    }

    .time-block {
        padding: 1rem 0.25rem;
    }

    .time-num {
        font-size: 1.7rem;
    }

    .time-label {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .contact-links {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 0.75rem;
    }

    .input-group input {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--glass-border);
        padding: 1rem 1.5rem;
        border-radius: 50px;
        width: 100%;
        text-align: center;
    }

    .input-group input:focus {
        border-color: rgba(229, 169, 0, 0.4);
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
}
