/* ========================================
   iasala.ro - Stiluri principale
   ======================================== */

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

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #dbeafe;
    --success: #16a34a;
    --success-light: #dcfce7;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --dark: #0f172a;
    --gray-900: #1e293b;
    --gray-700: #475569;
    --gray-500: #64748b;
    --gray-300: #cbd5e1;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--gray-50);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 800;
    font-size: 1.4rem;
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-dot {
    color: var(--primary);
}

.main-nav {
    display: flex;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 600;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}
.nav-link.active {
    color: var(--primary);
}

/* ========================================
   MAIN
   ======================================== */

.site-main {
    flex: 1;
}

/* ========================================
   HERO
   ======================================== */

.hero {
    background: linear-gradient(135deg, #f0f7ff 0%, #e0e7ff 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent);
    border-radius: 50%;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-highlight {
    background: linear-gradient(120deg, var(--primary), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-700);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    color: var(--primary);
    font-weight: 800;
}

.stat-item span {
    color: var(--gray-700);
    font-size: 0.9rem;
}

/* ========================================
   BUTOANE
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border-color: var(--gray-300);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-disabled {
    background: var(--gray-300) !important;
    color: var(--gray-700) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* ========================================
   SECȚIUNI GENERAL
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--gray-700);
    font-size: 1.1rem;
}

/* ========================================
   CATEGORII
   ======================================== */

.section-categorii {
    padding: 80px 0;
    background: var(--white);
}

.categorii-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.categorie-card {
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.categorie-card:hover:not(.categorie-card-disabled) {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.categorie-card-disabled {
    opacity: 0.6;
}

.categorie-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.categorie-nume {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.categorie-desc {
    color: var(--gray-700);
    font-size: 0.95rem;
    margin-bottom: 20px;
    min-height: 50px;
}

.categorie-info {
    list-style: none;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
    text-align: left;
}

.categorie-info li {
    padding: 4px 0;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.btn-categorie {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    margin-top: auto;
}

.btn-categorie:hover:not(:disabled) {
    background: var(--primary-dark);
}

/* ========================================
   FEATURES
   ======================================== */

.section-features {
    padding: 80px 0;
    background: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--gray-700);
    font-size: 0.95rem;
}

/* ========================================
   CTA
   ======================================== */

.section-cta {
    padding: 80px 0;
    background: var(--white);
}

.cta-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.cta-card h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.cta-card p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    opacity: 0.95;
}

.cta-card .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.cta-card .btn-primary:hover {
    background: var(--gray-100);
}

/* ========================================
   QUIZ PAGE
   ======================================== */

.quiz-page {
    padding: 30px 0 60px;
}

.quiz-header {
    background: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.quiz-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.quiz-categorie-badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
}

.quiz-stats {
    color: var(--gray-700);
    font-weight: 600;
}

.quiz-timer {
    background: var(--warning-light);
    color: var(--warning);
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.quiz-timer.timer-warning {
    background: var(--warning);
    color: var(--white);
    animation: pulse 1s infinite;
}

.quiz-timer.timer-critical {
    background: var(--danger);
    color: var(--white);
    animation: pulse 0.5s infinite;
}

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

.progress-bar {
    height: 8px;
    background: var(--gray-100);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    transition: width 0.5s ease;
}

.live-score {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.score-item {
    background: var(--white);
    padding: 8px 18px;
    border-radius: 100px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

.score-correct strong {
    color: var(--success);
}

.score-wrong strong {
    color: var(--danger);
}

/* ========================================
   QUESTION CARD
   ======================================== */

.question-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    animation: slideIn 0.4s ease;
}

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

.question-card.shake {
    animation: shake 0.4s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.question-number {
    color: var(--gray-500);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.question-image {
    margin-bottom: 20px;
    text-align: center;
}

.question-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius);
}

/* ========================================
   ANSWERS
   ======================================== */

.answers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.answer-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--gray-50);
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.answer-option:hover:not(.answered) {
    background: var(--white);
    border-color: var(--primary);
}

.answer-option input[type="checkbox"] {
    display: none;
}

.answer-option.selected {
    background: var(--primary-light);
    border-color: var(--primary);
}

.answer-option.correct {
    background: var(--success-light);
    border-color: var(--success);
}

.answer-option.wrong {
    background: var(--danger-light);
    border-color: var(--danger);
}

.answer-option.answered {
    cursor: default;
}

.answer-letter {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
    transition: background 0.2s;
}

.answer-option.correct .answer-letter {
    background: var(--success);
}

.answer-option.wrong .answer-letter {
    background: var(--danger);
}

.answer-text {
    font-size: 1rem;
    color: var(--dark);
}

.question-actions {
    text-align: right;
}

/* ========================================
   FEEDBACK
   ======================================== */

.answer-feedback {
    margin-top: 24px;
    padding: 24px;
    border-radius: var(--radius);
    animation: slideIn 0.3s ease;
}

.answer-feedback.feedback-correct {
    background: var(--success-light);
    border-left: 4px solid var(--success);
}

.answer-feedback.feedback-wrong {
    background: var(--warning-light);
    border-left: 4px solid var(--warning);
}

.feedback-message {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.feedback-correct .feedback-message {
    color: var(--success);
}

.feedback-wrong .feedback-message {
    color: var(--warning);
}

.feedback-explanation {
    color: var(--gray-900);
    margin-bottom: 16px;
}

.feedback-explanation p {
    margin: 8px 0;
}

.legal-ref {
    font-size: 0.9rem;
    color: var(--gray-700);
}

/* ========================================
   REZULTAT
   ======================================== */

.rezultat-page {
    padding: 60px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.rezultat-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    animation: slideIn 0.5s ease;
}

.rezultat-success {
    border-top: 8px solid var(--success);
}

.rezultat-fail {
    border-top: 8px solid var(--warning);
}

.rezultat-emoji {
    font-size: 5rem;
    margin-bottom: 16px;
    animation: bounce 1s ease;
}

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

.rezultat-titlu {
    font-size: 2rem;
    margin-bottom: 24px;
}

.rezultat-success .rezultat-titlu {
    color: var(--success);
}

.rezultat-fail .rezultat-titlu {
    color: var(--warning);
}

.rezultat-scor-mare {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1;
}

.rezultat-procent-bar {
    position: relative;
    height: 32px;
    background: var(--gray-100);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 32px;
}

.rezultat-procent-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    transition: width 1.5s ease;
    border-radius: 100px;
}

.rezultat-procent-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.rezultat-detalii {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.detaliu-item {
    text-align: center;
}

.detaliu-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 4px;
}

.detaliu-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.detaliu-item small {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.rezultat-mesaj {
    margin-bottom: 32px;
    color: var(--gray-700);
    line-height: 1.6;
}

.rezultat-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   WARNING BOX
   ======================================== */

.warning-box {
    background: var(--warning-light);
    border-left: 4px solid var(--warning);
    padding: 32px;
    border-radius: var(--radius);
    margin: 60px auto;
    max-width: 600px;
    text-align: center;
}

.warning-box h2 {
    color: var(--warning);
    margin-bottom: 16px;
}

.warning-box p {
    color: var(--gray-900);
    margin-bottom: 16px;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background: var(--dark);
    color: var(--gray-300);
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-icon {
    font-size: 2rem;
}

.footer-brand strong {
    font-size: 1.2rem;
    color: var(--white);
    display: block;
    margin: 8px 0;
}

.footer-brand p {
    font-size: 0.95rem;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-links a {
    display: block;
    color: var(--gray-300);
    text-decoration: none;
    padding: 4px 0;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin-bottom: 8px;
}

.disclaimer {
    color: var(--gray-500);
    font-size: 0.8rem;
}

/* ========================================
   CONFETTI
   ======================================== */

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    z-index: 9999;
    animation: fall 2s linear forwards;
    pointer-events: none;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .header-inner { padding: 12px 20px; }
    .main-nav { gap: 12px; font-size: 0.9rem; }
    .hero { padding: 50px 0; }
    .hero-stats { gap: 24px; }
    .stat-item strong { font-size: 1.5rem; }
    .section-categorii, .section-features, .section-cta { padding: 50px 0; }
    .question-card { padding: 24px 20px; }
    .question-text { font-size: 1.1rem; }
    .quiz-header { flex-direction: column; align-items: stretch; }
    .footer-content { grid-template-columns: 1fr; gap: 24px; }
    .rezultat-card { padding: 32px 20px; }
    .rezultat-scor-mare { font-size: 3rem; }
    .rezultat-detalii { grid-template-columns: 1fr; }
    .cta-card { padding: 40px 20px; }
    .cta-card h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .answer-option { padding: 12px 14px; gap: 10px; }
    .answer-letter { width: 32px; height: 32px; font-size: 0.9rem; }
    .answer-text { font-size: 0.95rem; }
}
/* ========================================
   MODURI DE QUIZ (NOU)
   ======================================== */

.section-modes {
    padding: 60px 0;
    background: var(--white);
}

.modes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.mode-card {
    background: var(--white);
    border: 3px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.mode-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.mode-exam {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
}

.mode-learn {
    border-color: var(--success);
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.mode-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.mode-exam .mode-badge {
    background: var(--primary);
    color: var(--white);
}

.mode-learn .mode-badge {
    background: var(--success);
    color: var(--white);
}

.mode-icon {
    font-size: 4rem;
    margin-bottom: 12px;
}

.mode-card h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    font-weight: 800;
}

.mode-card > p {
    color: var(--gray-700);
    margin-bottom: 20px;
}

.mode-features {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.mode-features li {
    padding: 6px 0;
    font-size: 0.95rem;
    color: var(--gray-900);
}

/* ========================================
   PAGINA CAPITOLE
   ======================================== */

.capitole-page {
    padding: 40px 0 60px;
}

.page-intro {
    text-align: center;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.back-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 0.95rem;
}

.back-link:hover {
    text-decoration: underline;
}

.page-intro h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 12px;
}

.page-intro p {
    color: var(--gray-700);
    font-size: 1.1rem;
}

.capitole-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.capitol-card {
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.capitol-card:hover:not(.capitol-card-disabled) {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.capitol-card-disabled {
    opacity: 0.6;
}

.capitol-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.capitol-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.capitol-desc {
    color: var(--gray-700);
    font-size: 0.9rem;
    margin-bottom: 12px;
    flex: 1;
}

.capitol-meta {
    margin-bottom: 16px;
}

.capitol-count {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.capitol-count strong {
    color: var(--primary);
}

.capitol-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.capitol-actions .btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
    flex: 1;
    min-width: 0;
}

.capitole-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.capitole-cta h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.capitole-cta p {
    margin-bottom: 20px;
    opacity: 0.95;
}

.capitole-cta .btn-primary {
    background: var(--white);
    color: var(--primary);
}

/* ========================================
   QUIZ HEADER UPDATES
   ======================================== */

.quiz-categorie-badge.badge-learn {
    background: var(--success-light);
    color: var(--success);
}

.quiz-mode-badge {
    background: var(--success);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ========================================
   REZULTAT - MOD ÎNVĂȚARE
   ======================================== */

.rezultat-learn {
    border-top: 8px solid var(--success);
}

.rezultat-tip {
    color: var(--gray-700);
    font-size: 1rem;
    margin-bottom: 16px;
    font-weight: 600;
}

/* ========================================
   STATISTICI PERSONALE
   ======================================== */

.personal-stats {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 24px auto 0;
}

.personal-stats h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-mini {
    background: var(--primary-light);
    padding: 16px;
    border-radius: var(--radius);
    text-align: center;
}

.stat-mini strong {
    display: block;
    font-size: 1.8rem;
    color: var(--primary);
    line-height: 1;
}

.stat-mini span {
    color: var(--gray-700);
    font-size: 0.85rem;
    display: block;
    margin-top: 4px;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.stats-table th {
    background: var(--gray-50);
    padding: 10px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-700);
}

.stats-table td {
    padding: 10px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-100);
}

.btn-clear-history {
    margin-top: 16px;
    padding: 8px 16px;
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    border-radius: 8px;
    font-family: inherit;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-clear-history:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.btn-link {
    background: transparent;
    color: var(--gray-700);
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .modes-grid {
        grid-template-columns: 1fr;
    }
    
    .capitole-grid {
        grid-template-columns: 1fr;
    }
    
    .capitol-actions {
        flex-direction: column;
    }
    
    .capitol-actions .btn-sm {
        width: 100%;
    }
}
/* ========================================
   PAGINA INDICATOARE
   ======================================== */

.indicatoare-page {
    padding: 40px 0 60px;
}

.filtre-bar {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.search-form input[type="text"] {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
}

.search-form input:focus {
    border-color: var(--primary);
    outline: none;
}

.filtre-tipuri {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filtru-btn {
    padding: 8px 16px;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.filtru-btn:hover {
    background: var(--gray-300);
}

.filtru-btn.active {
    background: var(--primary);
    color: var(--white);
}

.grup-indicatoare {
    margin-bottom: 40px;
}

.grup-titlu {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
}

.grup-icon {
    font-size: 1.8rem;
}

.grup-count {
    color: var(--gray-500);
    font-weight: 500;
    font-size: 1rem;
}

.indicatoare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.indicator-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.indicator-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.indicator-imagine {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    padding: 24px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.indicator-imagine img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.no-image {
    color: var(--gray-500);
    font-size: 0.85rem;
    text-align: center;
}

.indicator-info {
    padding: 16px;
}

.indicator-cod {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.indicator-nume {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.indicator-desc {
    color: var(--gray-700);
    font-size: 0.85rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.indicator-detalii {
    border-top: 1px solid var(--gray-100);
    padding-top: 10px;
    margin-top: 10px;
}

.indicator-detalii summary {
    cursor: pointer;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 4px 0;
}

.indicator-detalii summary:hover {
    color: var(--primary-dark);
}

.indicator-detalii p {
    margin-top: 8px;
    color: var(--gray-900);
    font-size: 0.9rem;
    line-height: 1.5;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--gray-700);
    margin-bottom: 24px;
}

.cta-exersare {
    background: linear-gradient(135deg, var(--success), #059669);
    color: var(--white);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 40px;
}

.cta-exersare h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.cta-exersare p {
    margin-bottom: 24px;
    opacity: 0.95;
    font-size: 1.05rem;
}

.cta-exersare .btn-primary {
    background: var(--white);
    color: var(--success);
}

/* ========================================
   DIAGRAME SVG (intersecții)
   ======================================== */

.diagrama-svg {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    background: var(--white);
}

.question-image .diagrama-svg {
    max-width: 350px;
}

@media (max-width: 768px) {
    .indicatoare-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .indicator-imagine {
        height: 120px;
        padding: 16px;
    }
}
/* ========================================
   PAGINI LEGALE (Termeni, Confidențialitate, Cookies, Despre)
   ======================================== */

.legal-page,
.despre-page,
.contact-page {
    padding: 40px 0 80px;
}

.container-narrow {
    max-width: 800px;
}

.legal-page h1,
.despre-page h1,
.contact-page h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 8px;
}

.legal-update {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.legal-content h2 {
    font-size: 1.4rem;
    margin: 30px 0 12px;
    color: var(--dark);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-100);
}

.legal-content h3 {
    font-size: 1.15rem;
    margin: 20px 0 10px;
    color: var(--gray-900);
}

.legal-content p {
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--gray-900);
}

.legal-content ul,
.legal-content ol {
    margin: 12px 0 16px 24px;
    line-height: 1.8;
}

.legal-content li {
    margin-bottom: 6px;
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--primary-dark);
}

.legal-content code {
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background: var(--white);
}

.legal-table th {
    background: var(--gray-50);
    padding: 12px;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid var(--gray-300);
    font-size: 0.9rem;
}

.legal-table td {
    padding: 12px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
}

.warning-box-inline {
    background: var(--warning-light);
    border-left: 4px solid var(--warning);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin: 20px 0;
    font-size: 0.95rem;
}

.info-box-inline {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin: 20px 0;
    font-size: 0.95rem;
}

/* ========================================
   PAGINA DESPRE
   ======================================== */

.despre-hero {
    text-align: center;
    margin-bottom: 40px;
}

.despre-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.despre-tagline {
    font-size: 1.15rem;
    color: var(--gray-700);
    max-width: 600px;
    margin: 0 auto;
}

.despre-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

.despre-stat {
    text-align: center;
}

.despre-stat strong {
    display: block;
    font-size: 2rem;
    color: var(--primary);
    line-height: 1;
    font-weight: 800;
}

.despre-stat span {
    color: var(--gray-700);
    font-size: 0.9rem;
    margin-top: 6px;
    display: block;
}

.despre-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.despre-feature {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.despre-feature strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.despre-feature p {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.5;
}

.despre-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 40px;
}

.despre-cta h2 {
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.despre-cta .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.despre-cta .btn-secondary {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}

/* ========================================
   PAGINA CONTACT
   ======================================== */

.contact-intro {
    color: var(--gray-700);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-top: 30px;
}

.contact-info {
    background: var(--gray-50);
    padding: 24px;
    border-radius: var(--radius-lg);
}

.contact-info h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.contact-info h3 {
    font-size: 1.1rem;
    margin: 24px 0 12px;
}

.contact-method {
    margin-bottom: 16px;
}

.contact-method strong {
    display: block;
    margin-bottom: 4px;
    color: var(--gray-700);
    font-size: 0.9rem;
}

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

.contact-types {
    list-style: none;
    margin: 0;
}

.contact-types li {
    padding: 6px 0;
    font-size: 0.95rem;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact-form h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 16px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray-900);
    font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.contact-form small {
    color: var(--gray-500);
    font-size: 0.8rem;
    display: block;
    margin-top: 4px;
}

.form-disclaimer {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.form-disclaimer a {
    color: var(--primary);
}

/* ========================================
   COOKIE BANNER
   ======================================== */

#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 2px solid var(--primary-light);
    padding: 20px 24px;
    z-index: 9999;
    max-width: 600px;
    margin: 0 auto;
    transform: translateY(150%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 250px;
}

.cookie-banner-text strong {
    display: block;
    margin-bottom: 4px;
    color: var(--dark);
    font-size: 1rem;
}

.cookie-banner-text p {
    color: var(--gray-700);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cookie-link {
    color: var(--primary);
    text-decoration: underline;
    font-size: 0.9rem;
    font-weight: 600;
}

.cookie-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
    white-space: nowrap;
}

.cookie-btn:hover {
    background: var(--primary-dark);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .despre-features {
        grid-template-columns: 1fr;
    }
    
    #cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 16px;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-banner-actions {
        justify-content: space-between;
    }
}
/* ========================================
   PAGINI EROARE (404, 500)
   ======================================== */

.error-page {
    padding: 60px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.error-content {
    text-align: center;
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.error-icon {
    font-size: 5rem;
    margin-bottom: 16px;
}

.error-content h1 {
    font-size: 4rem;
    color: var(--primary);
    line-height: 1;
    font-weight: 800;
    margin-bottom: 12px;
}

.error-content h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.error-content p {
    color: var(--gray-700);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.error-suggestions {
    background: var(--gray-50);
    padding: 24px;
    border-radius: var(--radius);
    text-align: left;
}

.error-suggestions h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.error-suggestions ul {
    list-style: none;
    padding: 0;
}

.error-suggestions li {
    padding: 6px 0;
}

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

.error-suggestions a:hover {
    text-decoration: underline;
}
/* ============================================
   SKIP LINK (accesibilitate)
   ============================================ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0066cc;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo:hover {
    color: #0066cc;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-family: 'Inter', sans-serif;
}

/* NAVIGATION */
.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    align-items: center;
}

.main-nav a {
    display: block;
    padding: 8px 16px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    color: #0066cc;
    background: #f1f5f9;
}

.main-nav a.active {
    color: #0066cc;
    background: #eff6ff;
    font-weight: 600;
}

/* MOBILE MENU TOGGLE (hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #0f172a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ============================================
   RESPONSIVE - Mobile
   ============================================ */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .main-nav.is-open {
        max-height: 500px;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 4px;
    }
    
    .main-nav a {
        padding: 12px 16px;
    }
}

/* ============================================
   MAIN
   ============================================ */
.site-main {
    min-height: calc(100vh - 200px);
}