/* ==========================================================================
   Thandukwazi's 21st Birthday - Poster Styles
   A luxurious gold, black & deep purple theme
   ========================================================================== */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #ffd700;
    --gold-dark: #b8860b;
    --gold-light: #ffe44d;
    --black: #0a0a0a;
    --deep-purple: #1a0a2e;
    --royal-purple: #2d1b69;
    --wine: #4a0e2e;
    --cream: #fdf5e6;
    --white: #ffffff;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--black);
    color: var(--cream);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background with layered gradients */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(45,27,105,0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(74,14,46,0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(26,10,46,0.6) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(184,134,11,0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* Animated background pattern */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,215,0,0.15), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,215,0,0.1), transparent),
        radial-gradient(2px 2px at 50px 160px, rgba(255,215,0,0.12), transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(255,215,0,0.08), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,215,0,0.1), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,215,0,0.06), transparent);
    background-size: 200px 200px;
    animation: sparkleShift 8s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes sparkleShift {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Floating Decorations */
.floating-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.balloon {
    position: absolute;
    font-size: 2rem;
    animation: floatUp 12s ease-in-out infinite;
    opacity: 0.6;
}
.balloon-1 { left: 5%; animation-delay: 0s; animation-duration: 14s; }
.balloon-2 { left: 20%; animation-delay: 2s; animation-duration: 11s; }
.balloon-3 { left: 50%; animation-delay: 4s; animation-duration: 13s; }
.balloon-4 { left: 75%; animation-delay: 1s; animation-duration: 15s; }
.balloon-5 { left: 90%; animation-delay: 3s; animation-duration: 12s; }

@keyframes floatUp {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* ===== POSTER WRAPPER ===== */
.poster-wrapper {
    position: relative;
    z-index: 10;
    max-width: 750px;
    margin: 30px auto;
    padding: 0 15px;
}

/* Ornamental SVGs */
.ornament-top, .ornament-bottom {
    text-align: center;
    padding: 10px 0;
}
.ornament-svg {
    width: 80%;
    max-width: 400px;
    height: auto;
}

/* ===== POSTER CONTAINER ===== */
.poster-container {
    position: relative;
    background: 
        linear-gradient(135deg, rgba(26,10,46,0.95) 0%, rgba(10,10,10,0.97) 30%, rgba(45,27,105,0.9) 60%, rgba(74,14,46,0.85) 100%);
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-dark), var(--gold), var(--gold-dark)) 1;
    padding: 50px 40px;
    box-shadow: 
        0 0 40px rgba(255,215,0,0.15),
        0 0 80px rgba(255,215,0,0.05),
        inset 0 0 80px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* Inner glow overlay */
.poster-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255,215,0,0.03) 0%, transparent 50%);
    animation: rotateGlow 20s linear infinite;
    pointer-events: none;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Corner decorations */
.corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border-color: var(--gold);
    border-style: solid;
    z-index: 5;
}
.corner-tl { top: 10px; left: 10px; border-width: 3px 0 0 3px; border-radius: 5px 0 0 0; }
.corner-tr { top: 10px; right: 10px; border-width: 3px 3px 0 0; border-radius: 0 5px 0 0; }
.corner-bl { bottom: 10px; left: 10px; border-width: 0 0 3px 3px; border-radius: 0 0 0 5px; }
.corner-br { bottom: 10px; right: 10px; border-width: 0 3px 3px 0; border-radius: 0 0 5px 0; }

/* ===== HEADER SECTION ===== */
.poster-header {
    text-align: center;
    margin-bottom: 20px;
}

.you-are-invited {
    font-family: 'Great Vibes', cursive;
    font-size: 2.4rem;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(255,215,0,0.4), 0 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 2px;
    line-height: 1.3;
}

.to-celebrate {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: rgba(253,245,230,0.7);
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-top: 5px;
}

/* ===== MAIN TITLE - THE "21" ===== */
.poster-title {
    text-align: center;
    margin: 30px 0 20px;
    position: relative;
}

.the-number {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 10rem;
    line-height: 0.9;
    position: relative;
    display: inline-block;
    color: var(--gold);
    text-shadow: 
        0 0 20px rgba(255,215,0,0.5),
        0 0 40px rgba(255,215,0,0.3),
        0 4px 8px rgba(0,0,0,0.5),
        0 0 80px rgba(255,215,0,0.15);
}

.number-2, .number-1 {
    display: inline-block;
    animation: shimmer 3s ease-in-out infinite;
}

.number-1 {
    animation-delay: 0.5s;
}

.st-text {
    font-size: 2.5rem;
    vertical-align: super;
    color: var(--gold);
    text-shadow: 0 0 15px rgba(255,215,0,0.4);
}

@keyframes shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.birthday-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 10px;
    color: var(--cream);
    margin-top: 5px;
}

/* ===== HONOREE SECTION ===== */
.honoree-section {
    text-align: center;
    margin: 25px 0;
}

.honoree-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: rgba(253,245,230,0.6);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.honoree-name {
    font-family: 'Great Vibes', cursive;
    font-size: 3.2rem;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(255,215,0,0.3), 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.4;
    margin: 10px 0;
}

.honoree-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: rgba(253,245,230,0.5);
    letter-spacing: 3px;
}

/* ===== GOLDEN DIVIDER ===== */
.golden-line {
    text-align: center;
    margin: 30px auto;
    position: relative;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.line-diamond {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gold);
    font-size: 0.8rem;
    background: var(--black);
    padding: 0 15px;
}

/* ===== GUEST GREETING ===== */
.guest-greeting {
    text-align: center;
    margin: 30px 0;
    padding: 25px 20px;
    border: 1px solid rgba(255,215,0,0.15);
    border-radius: 8px;
    background: rgba(255,215,0,0.03);
    position: relative;
}

.dear-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: rgba(253,245,230,0.7);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.guest-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin: 8px 0;
    text-shadow: 0 0 15px rgba(255,215,0,0.2);
}

.greeting-message {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: rgba(253,245,230,0.6);
    font-style: italic;
}

/* ===== EVENT DETAILS ===== */
.event-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 35px 0;
    flex-wrap: wrap;
}

.detail-card {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    text-align: center;
    padding: 25px 15px;
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255,215,0,0.05) 0%, rgba(0,0,0,0.3) 100%);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.08), transparent);
    transition: left 0.6s ease;
}

.detail-card:hover::before {
    left: 100%;
}

.detail-card:hover {
    border-color: rgba(255,215,0,0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,215,0,0.1);
}

.detail-icon {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 12px;
}

.detail-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(253,245,230,0.5);
    margin-bottom: 8px;
}

.detail-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cream);
    line-height: 1.4;
}

.detail-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    color: rgba(255,215,0,0.5);
    margin-top: 5px;
    font-style: italic;
}

/* ===== GIFTS NOTICE ===== */
.gifts-notice {
    text-align: center;
    margin: 35px auto;
    padding: 30px 25px;
    max-width: 500px;
    border: 1px solid rgba(255,215,0,0.15);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(74,14,46,0.2) 0%, rgba(45,27,105,0.2) 100%);
    position: relative;
}

.gift-icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--black);
    box-shadow: 0 0 20px rgba(255,215,0,0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255,215,0,0.3); }
    50% { box-shadow: 0 0 35px rgba(255,215,0,0.5); }
}

.gifts-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 10px;
}

.gifts-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: rgba(253,245,230,0.6);
    line-height: 1.6;
}

/* ===== RSVP FIXED FOOTER BAR ===== */
.rsvp-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    text-align: center;
    padding: 18px 20px;
    background: linear-gradient(180deg, rgba(10,10,10,0.0) 0%, rgba(10,10,10,0.95) 20%, rgba(10,10,10,0.99) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,215,0,0.25);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.7);
    animation: none;
    opacity: 1;
}

/* Add bottom padding to poster so content isn't hidden behind fixed footer */
.poster-wrapper {
    padding-bottom: 160px;
}

.rsvp-prompt h3,
.rsvp-confirmed h3,
.rsvp-declined h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 6px;
    letter-spacing: 4px;
}

.rsvp-prompt p,
.rsvp-confirmed p,
.rsvp-declined p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    color: rgba(253,245,230,0.7);
    margin-bottom: 12px;
}

.rsvp-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.rsvp-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 12px 28px;
    border: 2px solid;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.rsvp-accept {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--black);
    border-color: var(--gold);
}

.rsvp-accept:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    box-shadow: 0 0 30px rgba(255,215,0,0.4);
    transform: scale(1.05);
}

.rsvp-decline {
    background: transparent;
    color: rgba(253,245,230,0.5);
    border-color: rgba(253,245,230,0.2);
}

.rsvp-decline:hover {
    border-color: rgba(253,245,230,0.5);
    color: rgba(253,245,230,0.8);
}

.rsvp-btn-small {
    padding: 10px 20px;
    font-size: 0.75rem;
}

.rsvp-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.rsvp-confirmed .rsvp-icon {
    color: var(--gold);
    animation: pulse 2s ease-in-out infinite;
}

.rsvp-declined .rsvp-icon {
    color: rgba(253,245,230,0.4);
}

.rsvp-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

/* ===== FOOTER ===== */
.poster-footer {
    text-align: center;
    margin-top: 30px;
}

.footer-ornament {
    color: var(--gold);
    letter-spacing: 8px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.footer-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: rgba(253,245,230,0.6);
    line-height: 1.6;
}

.footer-year {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: rgba(255,215,0,0.3);
    margin-top: 15px;
    letter-spacing: 8px;
}

/* ===== ANIMATIONS ===== */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
}

.animate-scale-in {
    opacity: 0;
    transform: scale(0.8);
    animation: scaleIn 1s ease forwards;
    animation-delay: 0.3s;
}

.animate-fade-in-delay {
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 0.6s;
}

.animate-fade-in-delay2 {
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 0.9s;
}

.animate-fade-in-delay3 {
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 1.2s;
}

.animate-fade-in-delay4 {
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 1.5s;
}

.animate-width {
    width: 0;
    animation: expandWidth 1.5s ease forwards;
    animation-delay: 0.8s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 80%; }
}

/* ===== NO INVITE / INVALID STATES ===== */
.no-invite-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.no-invite-card {
    text-align: center;
    max-width: 500px;
    padding: 50px 40px;
    background: linear-gradient(135deg, rgba(26,10,46,0.95), rgba(10,10,10,0.97));
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(255,215,0,0.1);
}

.no-invite-card .lock-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.no-invite-card h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.no-invite-card p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: rgba(253,245,230,0.7);
    line-height: 1.6;
}

.no-invite-card .golden-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 20px auto;
}

.no-invite-card .small-text {
    font-size: 0.9rem;
    color: rgba(253,245,230,0.4);
}

/* Landing page buttons */
.landing-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.landing-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-poster {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--black);
    box-shadow: 0 4px 15px rgba(255,215,0,0.3);
}

.btn-poster:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255,215,0,0.5);
}

.btn-admin {
    background: transparent;
    color: var(--gold);
    border: 1px solid rgba(255,215,0,0.4);
}

.btn-admin:hover {
    background: rgba(255,215,0,0.1);
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .poster-container {
        padding: 35px 20px;
    }
    
    .you-are-invited {
        font-size: 1.8rem;
    }
    
    .the-number {
        font-size: 7rem;
    }
    
    .st-text {
        font-size: 1.8rem;
    }
    
    .birthday-text {
        font-size: 1.2rem;
        letter-spacing: 5px;
    }
    
    .honoree-name {
        font-size: 2.4rem;
    }
    
    .guest-name {
        font-size: 1.6rem;
    }
    
    .event-details {
        flex-direction: column;
        align-items: center;
    }
    
    .detail-card {
        max-width: 100%;
        width: 100%;
    }
    
    .corner {
        width: 35px;
        height: 35px;
    }
    
    .rsvp-section {
        padding: 14px 15px;
    }
    
    .rsvp-prompt h3,
    .rsvp-confirmed h3,
    .rsvp-declined h3 {
        font-size: 1rem;
        margin-bottom: 4px;
    }
    
    .rsvp-prompt p,
    .rsvp-confirmed p,
    .rsvp-declined p {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .rsvp-form {
        gap: 10px;
    }
    
    .rsvp-btn {
        padding: 10px 20px;
        font-size: 0.7rem;
    }
    
    .poster-wrapper {
        padding-bottom: 180px;
    }
}

@media (max-width: 480px) {
    .the-number {
        font-size: 5rem;
    }
    
    .you-are-invited {
        font-size: 1.5rem;
    }
    
    .honoree-name {
        font-size: 1.8rem;
    }
    
    .poster-container {
        padding: 25px 15px;
    }
    
    .birthday-text {
        font-size: 1rem;
        letter-spacing: 3px;
    }
    
    .rsvp-form {
        flex-direction: column;
        align-items: center;
    }
    
    .rsvp-btn {
        width: 100%;
        max-width: 280px;
    }
}
