/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Lora', serif;
    min-height: 100vh;
    background: #0b0b0b;
}

/* Background slideshow with Ken Burns effect */
.slideshow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 12s ease-in-out infinite alternate; filter: brightness(0.6) contrast(1.03) saturate(1.02); }

/* Ken Burns effect keyframes */
@keyframes kenburns { 0% { transform: scale(1) translateX(0) translateY(0); } 100% { transform: scale(1.06) translateX(-1.2%) translateY(-0.6%); } }

/* Main content overlay */
.main-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.6));
}

/* Password Section - Integrated into page */
.password-unlock-section { margin: 1.25rem 0 0; text-align: center; }

.unlock-card { background: transparent; border: none; box-shadow: none; max-width: 520px; margin: 0 auto; padding: 0; }

.unlock-message { font-size: 0.95rem; letter-spacing: 0.02em; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }

.password-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

#password-input {
    flex: 1;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 999px;
    background: rgba(0,0,0,0.25);
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

#password-input::placeholder { color: rgba(255,255,255,0.55); }

#password-input:focus {
    outline: none;
    background: rgba(0,0,0,0.35);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
}

.unlock-button {
    padding: 0.9rem 1.4rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
    color: #f7f2df;
    border: 1px solid rgba(212, 175, 55, 0.7);
    border-radius: 999px;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-shadow: 0 1px 0 rgba(0,0,0,0.25);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 10px 18px rgba(0,0,0,0.25);
}

.unlock-button:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 14px 24px rgba(0,0,0,0.3);
}

.unlock-button:active {
    transform: translateY(0);
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 5px;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Loading Animation */
.loading-container {
    text-align: center;
    color: white;
}

.loading-animation { background: transparent; padding: 0; border: none; box-shadow: none; color: rgba(255,255,255,0.9); }

.heart { display: none; }

.heart-left,
.heart-right {
    position: absolute;
    width: 30px;
    height: 48px;
    background: linear-gradient(180deg, #d4af37, #a7892a);
    border-radius: 30px 30px 0 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.heart-right {
    left: 30px;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

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

.loading-text {
    font-size: 1.05rem;
    color: #f1e6bf;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* Wedding Details Section */
.wedding-details { width: 100%; padding: 2rem; color: white; }

.details-container { max-width: 1100px; margin: 0 auto; padding: 2.5rem 2rem; color: rgba(255,255,255,0.92); }

.couple-section {
    text-align: center;
    margin-bottom: 3rem;
}

.couple-photo-container { position: relative; width: 200px; height: 200px; margin: 0 auto 1.5rem; border-radius: 50%; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.35); }

.couple-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.5s ease;
}

.photo-overlay { display: none; }

.couple-names { font-family: 'Great Vibes', cursive; font-size: 3.2rem; font-weight: 400; color: #fff7dc; margin-bottom: 0.25rem; letter-spacing: 0.02em; text-shadow: 0 2px 20px rgba(0,0,0,0.35); transition: filter 0.5s ease; }

.couple-subtitle {
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.03em;
}

.divider { display:flex; align-items:center; justify-content:center; gap:10px; margin: 1rem 0 0.5rem; }
.divider span { display:block; width:80px; height:1px; background: linear-gradient(90deg, transparent, rgba(241,230,191,0.8), transparent); }
.divider i { width:10px; height:10px; border-radius:50%; background: radial-gradient(circle, #f1e6bf, #d4af37 70%); box-shadow: 0 0 12px rgba(212,175,55,0.6); }

.wedding-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.info-card { background: rgba(0,0,0,0.35); padding: 1.4rem 1.25rem; border-radius: 14px; border: 1px solid rgba(255,255,255,0.12); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }

.info-card h3 { font-family: 'Lora', serif; font-size: 1.05rem; letter-spacing: 0.08em; color: #f1e6bf; margin-bottom: 0.5rem; text-align: center; text-transform: uppercase; }

.info-card p { font-size: 0.98rem; line-height: 1.7; margin-bottom: 0.4rem; text-align: center; color: rgba(255,255,255,0.9); transition: filter 0.5s ease; }

/* RSVP Buttons */
.rsvp-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.rsvp-btn { padding: 0.8rem 1.2rem; border-radius: 999px; font-size: 0.95rem; font-weight: 600; cursor: not-allowed; transition: all 0.25s ease; flex: 1; max-width: 180px; color: #1d1a14; background: #f1e6bf; border: 1px solid rgba(241,230,191,0.7); text-shadow: none; box-shadow: 0 6px 14px rgba(0,0,0,0.25); opacity: 0.6; }

.rsvp-btn.enabled { cursor: pointer; opacity: 1; }

.rsvp-btn.enabled:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(0,0,0,0.28); }
.yes-btn { border-color: rgba(212,175,55,0.6); }
.no-btn { background: transparent; color: #f1e6bf; border-color: rgba(255,255,255,0.35); }

/* Blur effects for protected content */
.blurred {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}

.blurred::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.15); z-index: 1; }

/* Summary banner under names */
.summary-banner { margin-top: 0.5rem; }
.summary-text { font-family: 'Lora', serif; color: #f1e6bf; letter-spacing: 0.03em; text-align: center; opacity: 0.95; }

/* Utility classes */
.hidden {
    display: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .couple-names {
        font-size: 2.5rem;
    }
    
    .password-card,
    .details-container {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
    
    .password-input-container {
        flex-direction: column;
    }
    
    .wedding-info {
        grid-template-columns: 1fr;
    }
    
    .rsvp-buttons {
        flex-direction: column;
    }
    
    .rsvp-btn {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .couple-names {
        font-size: 2rem;
    }
    
    .couple-photo-container {
        width: 150px;
        height: 150px;
    }
}

/* Animation for content reveal */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Remove blur animation */
.remove-blur {
    animation: removeBlur 0.8s ease-in-out forwards;
}

@keyframes removeBlur {
    from {
        filter: blur(5px);
    }
    to {
        filter: blur(0);
    }
}
