/* ============================================
   SEVGİLİM BENİ SEVİYOR MU? - İLİŞKİ TESTİ
   Romantik & Modern Tasarım
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
    /* Romantic Colors */
    --pink-light: #fce4ec;
    --pink: #f48fb1;
    --pink-dark: #ec407a;
    --purple-light: #e1bee7;
    --purple: #ab47bc;
    --purple-dark: #7b1fa2;
    --red-heart: #e91e63;

    /* Gradient */
    --gradient-romantic: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-love: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 50%, #f368e0 100%);
    --gradient-premium: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);

    /* Meter Colors */
    --meter-bad: #ef4444;
    --meter-warning: #f59e0b;
    --meter-ok: #fbbf24;
    --meter-good: #84cc16;
    --meter-great: #22c55e;

    /* Background */
    --bg-primary: #1a0a2e;
    --bg-secondary: #16082a;
    --bg-card: rgba(255, 255, 255, 0.08);
    --bg-card-hover: rgba(255, 255, 255, 0.12);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Border & Shadow */
    --border-color: rgba(255, 255, 255, 0.15);
    --shadow-glow: 0 0 40px rgba(236, 64, 122, 0.3);

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Transitions */
    --transition: 0.3s ease;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Gradient Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(236, 64, 122, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(171, 71, 188, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(103, 58, 183, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ===== FLOATING HEARTS ===== */
.hearts-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.floating-heart {
    position: absolute;
    font-size: 20px;
    animation: floatHeart 15s linear infinite;
    opacity: 0.4;
}

@keyframes floatHeart {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

/* ===== CONTAINER ===== */
.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* ===== SCREENS ===== */
.screen {
    display: none;
    width: 100%;
    max-width: 500px;
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-glow);
}

/* ===== WELCOME SCREEN ===== */
.welcome-card {
    text-align: center;
}

.logo-heart {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.main-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.main-title span {
    background: var(--gradient-love);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Form Styles */
.user-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--pink-dark);
    box-shadow: 0 0 0 3px rgba(236, 64, 122, 0.2);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-primary {
    background: var(--gradient-romantic);
    color: white;
    box-shadow: 0 4px 20px rgba(236, 64, 122, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(236, 64, 122, 0.5);
}

.btn-start {
    margin-top: 1rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.disclaimer {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/* ===== QUESTION SCREEN ===== */
.question-card {
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-romantic);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.question-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.question-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pink-dark);
    margin-bottom: 0.5rem;
}

.question-text {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.option-btn:hover {
    background: rgba(236, 64, 122, 0.1);
    border-color: var(--pink-dark);
    transform: translateX(5px);
}

.option-btn.selected {
    background: rgba(236, 64, 122, 0.2);
    border-color: var(--pink-dark);
    box-shadow: 0 0 20px rgba(236, 64, 122, 0.3);
}

.option-letter {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.option-btn:hover .option-letter,
.option-btn.selected .option-letter {
    background: var(--pink-dark);
}

/* ===== RESULT SCREEN ===== */
.result-card {
    text-align: center;
}

.result-header {
    margin-bottom: 2rem;
}

.result-emoji {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.result-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.result-name {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Score Circle */
.score-container {
    margin-bottom: 2rem;
}

.score-circle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    background: var(--gradient-romantic);
    border-radius: 50%;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 40px rgba(236, 64, 122, 0.4);
}

.score-value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.score-max {
    font-size: 1rem;
    opacity: 0.8;
}

.score-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Love Meter */
.love-meter {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.meter-bar {
    position: relative;
    height: 24px;
    background: linear-gradient(90deg,
            var(--meter-bad) 0%,
            var(--meter-warning) 25%,
            var(--meter-ok) 50%,
            var(--meter-good) 75%,
            var(--meter-great) 100%);
    border-radius: 12px;
    overflow: visible;
}

.meter-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    transition: width 1s ease;
}

.meter-pointer {
    position: absolute;
    top: -8px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    transition: left 1s ease;
    font-size: 1.25rem;
}

.meter-pointer::after {
    content: '💖';
}

.meter-range {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Result Message */
.result-message {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--pink-dark);
}

.result-message h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--pink);
}

.result-message p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Premium Section */
.premium-section {
    background: linear-gradient(135deg, rgba(247, 151, 30, 0.1) 0%, rgba(255, 210, 0, 0.1) 100%);
    border: 1px solid rgba(247, 151, 30, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.premium-badge {
    display: inline-block;
    background: var(--gradient-premium);
    color: #1a0a2e;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.premium-section h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.premium-section>p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.premium-features {
    list-style: none;
    text-align: left;
    margin-bottom: 1rem;
}

.premium-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.25rem 0;
}

.btn-premium {
    background: var(--gradient-premium);
    color: #1a0a2e;
    font-weight: 700;
    padding: 1rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

.premium-icon {
    font-size: 1.25rem;
}

.premium-text {
    flex: 1;
}

.premium-price {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(247, 151, 30, 0.5);
}

/* ===== DOWNLOAD SCREEN ===== */
.download-card {
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.download-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.download-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--pink-dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 540px) {
    .container {
        padding: 1rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .main-title {
        font-size: 1.5rem;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .score-circle {
        width: 120px;
        height: 120px;
    }

    .score-value {
        font-size: 2.5rem;
    }
}