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

:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(20, 20, 35, 0.8);
    --accent-primary: #ff6b9d;
    --accent-secondary: #c44dff;
    --accent-tertiary: #4dffb8;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg-dark);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(255, 107, 157, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(196, 77, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(77, 255, 184, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.header {
    text-align: center;
    padding: 2rem 0;
}

.title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.tagline {
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 1rem;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Quiz Card */
.quiz-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(20px);
}

.question-text {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.options-grid {
    display: grid;
    gap: 0.75rem;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    color: var(--text-primary);
    font-size: 1rem;
    text-align: left;
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.option-card:hover {
    background: rgba(255, 107, 157, 0.15);
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.option-card:active {
    transform: scale(0.98);
}

.option-emoji {
    font-size: 1.5rem;
}

.option-text {
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease;
}

.slide-out {
    animation: slideOut 0.3s ease;
}

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

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Result Card */
.result-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    text-align: center;
}

.result-header {
    margin-bottom: 1.5rem;
}

.result-emoji {
    font-size: 4rem;
    display: block;
    margin-bottom: 0.5rem;
}

.result-title {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.result-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

.badges-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.badge {
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(196, 77, 255, 0.2));
    border: 1px solid var(--accent-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    text-align: left;
    margin-bottom: 1.5rem;
}

.pros h3, .cons h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.pros ul, .cons ul {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.pros li, .cons li {
    padding: 0.25rem 0;
    padding-left: 0.5rem;
    border-left: 2px solid var(--glass-border);
}

.pros li {
    border-color: var(--accent-tertiary);
}

.cons li {
    border-color: var(--accent-primary);
}

.share-button, .retake-button {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
}

.share-button {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: white;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
}

.retake-button {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.retake-button:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Comparison Chart */
.comparison-chart {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.chart-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
}

.chart-item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.chart-emoji {
    font-size: 1.25rem;
}

.chart-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.chart-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.mini-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.mini-badge.designer-friendly {
    background: rgba(255, 107, 157, 0.2);
    color: var(--accent-primary);
}

.mini-badge.developer-focused {
    background: rgba(77, 255, 184, 0.2);
    color: var(--accent-tertiary);
}

.mini-badge.beginner-friendly {
    background: rgba(196, 77, 255, 0.2);
    color: var(--accent-secondary);
}

/* Stats Panel */
.stats-panel {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
}

.stats-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-align: center;
}

.stats-total {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.stats-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-bar-container {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    align-items: center;
    gap: 0.5rem;
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
}

.stat-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.stat-percent {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    text-align: right;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

.disclaimer {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    opacity: 0.6;
}

/* Confetti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1000;
}

.confetti-particle {
    position: absolute;
    top: -10px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .app-container {
        padding: 1rem;
    }
    
    .header {
        padding: 1.5rem 0;
    }
    
    .quiz-card, .result-card {
        padding: 1.5rem;
    }
    
    .question-text {
        font-size: 1.2rem;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .chart-grid {
        grid-template-columns: 1fr;
    }
}