@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --cg-red: #A51C30;
    --cg-red-dark: #8A1525;
    --cg-red-light: #C94052;
    --cg-white: #FAF9F6;
    --cg-dark: #1A1A2E;
    --cg-dark-soft: #2B2B3D;
    --cg-coral: #E44D3A;
    --cg-gold: #D4A853;
    --cg-grey: #6B7280;
    --cg-grey-light: #F3F4F6;
    --radius: 20px;
    --radius-sm: 12px;
    --radius-lg: 30px;
    --transition: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-soft: 0 8px 30px rgba(0,0,0,0.3);
    --shadow-strong: 0 16px 40px rgba(0,0,0,0.5);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(155deg, var(--cg-dark) 0%, #16213E 50%, var(--cg-red-dark) 100%);
    background-attachment: fixed;
    color: var(--cg-white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===================== START SCREEN ===================== */
#start-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

#start-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(165, 28, 48, 0.3) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(212, 168, 83, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.start-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease forwards;
}

.start-lyra {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
    animation: float 3s ease-in-out infinite;
}

#start-screen h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--cg-white) 0%, var(--cg-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#start-screen p {
    font-size: 1.15rem;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    max-width: 380px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

#start-button {
    background: linear-gradient(135deg, var(--cg-red), var(--cg-red-light));
    color: white;
    border: none;
    padding: 18px 64px;
    border-radius: 60px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all var(--transition);
    box-shadow: 0 8px 30px rgba(165, 28, 48, 0.4);
}

#start-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 40px rgba(165, 28, 48, 0.6);
}

/* ===================== TOP BAR ===================== */
#top-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(26, 26, 46, 0.95) 60%, transparent);
    backdrop-filter: blur(12px);
}

#back-button {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    padding: 8px 16px;
    border-radius: 40px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

#back-button:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
}

#back-button:disabled {
    opacity: 0.3;
    pointer-events: none;
}

#progress-bar-container {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--cg-red), var(--cg-gold));
    border-radius: 3px;
    transition: width 0.6s ease;
}

#question-counter {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

/* ===================== MAIN CONTAINER ===================== */
#keuzehulp-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 60px;
    width: 100%;
}

/* ===================== QUESTION AREA ===================== */
#question-area {
    text-align: center;
    margin-bottom: 32px;
    animation: fadeInDown 0.5s ease forwards;
}

#current-question {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    line-height: 1.3;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    margin-bottom: 8px;
}

#question-description {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ===================== QUESTION MEDIA (Tinder) ===================== */
#question-media {
    max-width: 460px;
    margin: 0 auto 28px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    animation: scaleIn 0.4s ease forwards;
}

#question-media img,
#question-media .question-video-bg {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

#question-media .question-video-bg {
    background: black;
}

#question-audio-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    color: white;
}

.play-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: white;
    transform: scale(1.1);
}

.play-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.play-btn.playing .play-icon { display: none; }
.play-btn.playing .pause-icon { display: block; }

/* ===================== ANSWER OPTIONS ===================== */
#answer-options {
    display: grid;
    gap: 20px;
    margin-bottom: 32px;
    animation: fadeInUp 0.5s ease forwards;
}

/* Default: multi-column for meerkeuze */
#answer-options.layout-meerkeuze {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Two columns for tegenstelling */
#answer-options.layout-tegenstelling {
    grid-template-columns: 1fr 1fr;
}

/* Single card for tindervraag (hidden - we use question-media) */
#answer-options.layout-tindervraag {
    display: none;
}

/* ---- Answer Card ---- */
.answer-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--cg-dark-soft);
    border: 1px solid rgba(255,255,255,0.08);
}

.answer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.2);
}

.answer-card:active {
    transform: scale(0.97);
}

.answer-card-image,
.answer-card-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s ease;
}

.answer-card-video {
    opacity: 0.8;
}

.answer-card:hover .answer-card-image,
.answer-card:hover .answer-card-video {
    transform: scale(1.06);
    opacity: 1;
}

.answer-card-overlay {
    position: relative;
    z-index: 1;
    padding: 24px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
}

.answer-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.answer-card-description {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Audio indicator on card */
.answer-card-audio {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition);
}

.answer-card:hover .answer-card-audio {
    background: var(--cg-red);
    border-color: var(--cg-red);
}

.answer-card-audio svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* No-image card */
.answer-card.no-image {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    min-height: 140px;
}

.answer-card.no-image .answer-card-overlay {
    background: none;
    justify-content: center;
    text-align: center;
    align-items: center;
}

/* Zero results density routing */
.answer-card.zero-results {
    opacity: 0.5;
    filter: grayscale(0.8);
}

.answer-card.zero-results:hover {
    filter: grayscale(0.2);
    opacity: 0.8;
}

.zero-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: rgba(0,0,0,0.7);
    color: var(--cg-gold);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    border: 1px solid var(--cg-gold);
}

/* ===================== LAYOUT UTILITIES ===================== */
.flex-center { display: flex; align-items: center; justify-content: center; }
.hidden { display: none !important; }

/* ===================== TINDER CONTROLS ===================== */
#tinder-controls {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 32px;
    animation: fadeInUp 0.4s ease forwards;
}

.tinder-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.tinder-no {
    border-color: rgba(239, 68, 68, 0.5);
    color: #EF4444;
}

.tinder-no:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #EF4444;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
}

.tinder-yes {
    border-color: rgba(34, 197, 94, 0.5);
    color: #22C55E;
}

.tinder-yes:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22C55E;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}

/* ===================== CHOICES SUMMARY ===================== */
#choices-summary {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ===================== RESULTS ===================== */
#results-container {
    animation: fadeInUp 0.6s ease forwards;
}

#results-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 32px;
    background: linear-gradient(135deg, var(--cg-white), var(--cg-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Concert result card */
.result-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
    transition: all var(--transition);
    display: flex;
    min-height: 160px;
}

.result-card:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.result-card-image {
    width: 200px;
    min-height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.result-card-body {
    padding: 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--cg-white);
    line-height: 1.3;
}

.result-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

.result-card-title a:hover {
    color: var(--cg-gold);
}

.result-card-meta {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.result-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.result-card-genres {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.genre-tag {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(165, 28, 48, 0.2);
    color: var(--cg-red-light);
    border: 1px solid rgba(165, 28, 48, 0.3);
}

.result-card-actions {
    margin-top: auto;
    display: flex;
    gap: 12px;
    align-items: center;
}

.result-card-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--cg-red), var(--cg-red-light));
    color: white;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.result-card-actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(165, 28, 48, 0.4);
}

.result-card-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cg-gold);
}

/* Result Badges / Conversion Banners */
.result-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.result-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-urgent {
    background: var(--cg-coral);
    color: white;
    animation: pulse-badge 2s infinite;
}

.badge-match {
    background: var(--cg-gold);
    color: var(--cg-dark);
}

@keyframes pulse-badge {
    0% { box-shadow: 0 0 0 0 rgba(228, 77, 58, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(228, 77, 58, 0); }
    100% { box-shadow: 0 0 0 0 rgba(228, 77, 58, 0); }
}

/* ===================== BUTTONS ===================== */
#restart-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 32px auto 0;
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    padding: 12px 32px;
    border-radius: 40px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
}

#restart-button:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.4);
    color: white;
}

#show-all-button {
    display: block;
    margin: 24px auto;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    padding: 12px 32px;
    border-radius: 40px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
}

#show-all-button:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

#all-results-container h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin: 24px 0 16px;
    color: rgba(255,255,255,0.8);
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes slideOutLeft {
    to { opacity: 0; transform: translateX(-80px); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

.anim-slide-in { animation: slideInRight 0.4s ease forwards; }
.anim-slide-out { animation: slideOutLeft 0.3s ease forwards; }
.anim-fade-in { animation: fadeInUp 0.5s ease forwards; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 700px) {
    #answer-options.layout-tegenstelling {
        grid-template-columns: 1fr;
    }
    .answer-card { min-height: 160px; }
    #question-media img { height: 260px; }
    .result-card { flex-direction: column; }
    .result-card-image { width: 100%; height: 180px; }
    #tinder-controls { gap: 32px; }
    .tinder-btn { width: 60px; height: 60px; }
    #back-button span { display: none; }
}