/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ===== SCREEN MANAGEMENT ===== */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.screen.active {
    opacity: 1;
    visibility: visible;
}

.content-center {
    text-align: center;
    max-width: 600px;
    padding: 40px;
}

/* ===== AUDIO PROMPT SCREEN ===== */
#audioPrompt {
    background: linear-gradient(135deg, #3d1f47 0%, #6b4b6f 100%);
}

.audio-icon {
    color: white;
    margin: 0 auto 30px;
    animation: pulse 2s ease-in-out infinite;
}

#audioPrompt h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
    font-weight: 600;
}

#audioPrompt p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* ===== PINTEREST BOARD ===== */
#pinterestBoard {
    background: #ffffff;
    display: block;
    overflow-y: auto;
    align-items: flex-start;
}

.pinterest-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #efefef;
    z-index: 100;
}

.pinterest-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #e60023;
    cursor: pointer;
}

.search-bar {
    flex: 1;
    max-width: 800px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #efefef;
    padding: 12px 16px;
    border-radius: 24px;
}

.search-bar svg {
    color: #767676;
    flex-shrink: 0;
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #333;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.search-bar input::placeholder {
    color: #767676;
}

.pinterest-container {
    padding: 40px 60px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.masonry-grid {
    column-count: 5;
    column-gap: 32px;
}

.pin-card {
    break-inside: avoid;
    margin-bottom: 32px;
    /* Matching vertical spacing */
    position: relative;
    cursor: pointer;
    border-radius: 20px;
    /* Slightly more rounded */
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Different pin sizes for varied layout */
.pin-card.size-small img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.pin-card.size-medium img {
    height: 300px;
    width: 100%;
    object-fit: cover;
}

.pin-card.size-large img {
    height: 400px;
    width: 100%;
    object-fit: cover;
}

.pin-card:hover {
    transform: scale(1.02);
}

.pin-card img {
    display: block;
    border-radius: 16px;
}

.pin-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 16px;
}

.pin-card:hover .pin-overlay {
    opacity: 1;
}

.save-btn {
    background: #e60023;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.save-btn:hover {
    background: #ad081b;
}

.timer-indicator {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #efefef;
    z-index: 101;
}

.timer-bar {
    height: 100%;
    background: linear-gradient(90deg, #e60023 0%, #ff6b6b 100%);
    width: 0%;
    transition: width 0.1s linear;
}

/* Removed duplicated go-to-question-btn styles */

/* ===== LIGHTBOX MODAL ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

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

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-lightbox:hover {
    color: #e60023;
}

/* ===== PHOTO SCREEN ===== */
#photoScreen {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.photo-container {
    position: relative;
    width: 500px;
    height: 500px;
}

.photo {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
}

.photo.visible {
    animation: fadeInOut 5s ease-in-out;
}

/* ===== QUESTION SCREEN ===== */
#questionScreen {
    background: linear-gradient(135deg, #fdfcfb 0%, #f7e1e1 100%);
    position: relative;
    overflow: hidden;
}

/* Bokeh Light Orbs */
.bokeh-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bokeh-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    filter: blur(40px);
    animation: float 20s ease-in-out infinite;
}

.bokeh-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.bokeh-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 3s;
}

.bokeh-3 {
    width: 250px;
    height: 250px;
    bottom: 15%;
    left: 25%;
    animation-delay: 6s;
}

.bokeh-4 {
    width: 180px;
    height: 180px;
    top: 30%;
    right: 30%;
    animation-delay: 9s;
}

.bokeh-5 {
    width: 220px;
    height: 220px;
    bottom: 25%;
    right: 20%;
    animation-delay: 12s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }

    25% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.5;
    }

    75% {
        transform: translate(20px, 30px) scale(1.05);
        opacity: 0.7;
    }
}

#questionScreen .content-center {
    position: relative;
    z-index: 2;
    padding: 80px 40px;
}

.name {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: #4a2c4a;
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.question {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    color: #6b4b6f;
    margin-bottom: 80px;
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1.6;
}

.button-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    min-height: 120px;
}

.btn-choice {
    padding: 22px 55px;
    font-size: 1.4rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;

    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.btn-yes {
    color: #4a2c4a;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-yes:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 48px rgba(255, 255, 255, 0.2);
}

.heart-glow {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 12px rgba(255, 50, 80, 0.9)) drop-shadow(0 0 24px rgba(255, 50, 80, 0.6));
    animation: heart-pulse 1.5s ease-in-out infinite;
}

@keyframes heart-pulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 12px rgba(255, 50, 80, 0.9)) drop-shadow(0 0 24px rgba(255, 50, 80, 0.6));
    }

    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 18px rgba(255, 50, 80, 1)) drop-shadow(0 0 36px rgba(255, 50, 80, 0.8));
    }
}

.btn-no {
    background: rgba(255, 255, 255, 0.3);
    color: #6b4b6f;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    z-index: 5;
}

.btn-no:hover {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
}


@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    20% {
        opacity: 1;
        transform: scale(1);
    }

    80% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* ===== CELEBRATION ===== */
.celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fdfcfb 0%, #f7e1e1 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.celebration h1 {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: #4a2c4a;
    text-align: center;
    animation: celebrate 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    letter-spacing: 2px;
}

@keyframes celebrate {
    0% {
        transform: scale(0.5) translateY(20px);
        opacity: 0;
    }

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

/* ===== MANUAL NAVIGATION BUTTON REFINEMENT ===== */
.go-to-question-btn {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 102;
    transition: all 0.4s ease;
    animation: gentle-pulse-luxury 3s ease-in-out infinite;
    letter-spacing: 1px;
}

.go-to-question-btn:hover {
    transform: translateX(-50%) translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

@keyframes gentle-pulse-luxury {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.9;
    }

    50% {
        transform: translateX(-50%) scale(1.03);
        opacity: 1;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .masonry-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 2;
    }

    .pinterest-logo {
        font-size: 1.4rem;
    }

    .name {
        font-size: 3.5rem;
        letter-spacing: 2px;
    }

    .question {
        font-size: 1.4rem;
        margin-bottom: 60px;
    }

    .btn-choice {
        padding: 18px 45px;
        font-size: 1.2rem;
    }

    .photo-container {
        width: 90vw;
        height: 90vw;
        max-width: 400px;
        max-height: 400px;
    }

    .close-lightbox {
        top: 20px;
        right: 20px;
        font-size: 40px;
    }

    .bokeh-orb {
        filter: blur(30px);
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        column-count: 2;
        column-gap: 12px;
    }

    .pinterest-container {
        padding: 12px;
    }

    .search-bar {
        display: none;
    }
}