/**
 * Ehliyet Sınav Sistemi Pro - Frontend CSS
 * Ultra Modern Glassmorphism Design
 * Version: 1.0.0
 * Author: Ali Demirci
 */

/* ================================================
   RESET & BASE STYLES
================================================ */
.esp-quiz-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.esp-quiz-container * {
    box-sizing: border-box;
}

/* ================================================
   STATISTICS PANEL - GLASSMORPHISM (STICKY)
================================================ */
.esp-stats-panel {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-bottom: 45px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 30px;
    box-shadow: 
        0 20px 60px rgba(102, 126, 234, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    position: sticky;
    top: 20px;
    z-index: 999;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* WordPress Admin Bar adjustment */
.admin-bar .esp-stats-panel {
    top: calc(32px + 20px);
}

@media screen and (max-width: 782px) {
    .admin-bar .esp-stats-panel {
        top: calc(46px + 20px);
    }
}

/* Scrolled state - compact on desktop */
@media (min-width: 1025px) {
    .esp-stats-panel.esp-stats-scrolled {
        padding: 25px 30px;
        gap: 18px;
        border-radius: 20px;
        box-shadow: 
            0 10px 40px rgba(102, 126, 234, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    }
    
    .esp-stats-panel.esp-stats-scrolled .esp-stat-box {
        padding: 18px 15px;
    }
    
    .esp-stats-panel.esp-stats-scrolled .esp-stat-title {
        font-size: 11px;
    }
    
    .esp-stats-panel.esp-stats-scrolled .esp-stat-value {
        font-size: 38px;
    }
    
    .esp-stats-panel.esp-stats-scrolled .esp-stat-icon {
        font-size: 16px;
    }
}

.esp-stats-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotateGlow 20s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.esp-stat-box {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 22px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.esp-stat-box:hover {
    transform: translateY(-10px) scale(1.03);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 255, 255, 0.3) inset;
}

.esp-stat-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.esp-stat-value {
    font-size: 52px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 255, 255, 0.3);
    font-feature-settings: 'tnum';
}

.esp-stat-box.total .esp-stat-value {
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.esp-stat-box.correct .esp-stat-value {
    color: #34d399;
}

.esp-stat-box.wrong .esp-stat-value {
    color: #f87171;
}

.esp-stat-box.empty .esp-stat-value {
    color: #fbbf24;
}

.esp-stat-box.timer .esp-stat-value {
    color: #60a5fa;
    font-family: 'Courier New', monospace;
    font-feature-settings: 'tnum';
}

/* ================================================
   FINISH BUTTON
================================================ */
.esp-finish-container {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 35px;
    padding-top: 40px;
}

.esp-finish-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 
        0 8px 25px rgba(16, 185, 129, 0.4),
        0 0 0 3px rgba(16, 185, 129, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    letter-spacing: 0.5px;
}

.esp-finish-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(16, 185, 129, 0.5),
        0 0 0 4px rgba(16, 185, 129, 0.15);
}

.esp-finish-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.esp-finish-icon {
    font-size: 24px;
}

/* ================================================
   RESULTS MODAL
================================================ */
.esp-results-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.esp-results-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.esp-results-content {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 30px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Custom scrollbar for results modal */
.esp-results-content::-webkit-scrollbar {
    width: 8px;
}

.esp-results-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 0 30px 30px 0;
}

.esp-results-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.esp-results-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #63398b 100%);
}

.esp-results-content.esp-results-show {
    transform: scale(1);
    opacity: 1;
}

/* Results Header */
.esp-results-header {
    padding: 30px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px 30px 0 0;
    color: #ffffff;
    position: relative;
}

.esp-results-header h2 {
    margin: 0;
    font-size: 28px;
    text-align: center;
}

.esp-results-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.esp-results-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Results Body */
.esp-results-body {
    padding: 40px;
}

/* Score Circle */
.esp-results-score {
    text-align: center;
    margin-bottom: 40px;
}

.esp-score-circle {
    position: relative;
    display: inline-block;
}

.esp-score-circle svg {
    transform: rotate(-90deg);
}

.esp-circle-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 10;
}

.esp-circle-progress {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 534;
    stroke-dashoffset: 534;
    transition: stroke-dashoffset 2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.esp-score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.esp-score-percentage {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.esp-score-label {
    font-size: 16px;
    color: #6b7280;
    font-weight: 600;
    margin-top: 5px;
}

/* Add SVG gradient definition */
.esp-score-circle svg {
    filter: drop-shadow(0 4px 15px rgba(102, 126, 234, 0.3));
}

/* Results Stats Grid */
.esp-results-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.esp-result-stat {
    text-align: center;
    padding: 20px 15px;
    background: #f9fafb;
    border-radius: 15px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.esp-result-stat:hover {
    transform: translateY(-3px);
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.esp-result-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.esp-result-value {
    font-size: 28px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 5px;
}

.esp-result-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

.esp-result-correct .esp-result-value {
    color: #10b981;
}

.esp-result-wrong .esp-result-value {
    color: #ef4444;
}

.esp-result-empty .esp-result-value {
    color: #f59e0b;
}

.esp-result-time .esp-result-value {
    font-family: 'Courier New', monospace;
    color: #667eea;
}

/* Results Message */
.esp-results-message {
    text-align: center;
    padding: 25px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
}

.esp-message-excellent {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.esp-message-good {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.esp-message-average {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.esp-message-poor {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

/* App Promo Box */
.esp-app-promo {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 3px solid #f59e0b;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
    position: relative;
    overflow: hidden;
}

.esp-app-promo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        #f59e0b 0%, 
        #fbbf24 25%, 
        #f59e0b 50%, 
        #fbbf24 75%, 
        #f59e0b 100%);
    background-size: 200% 100%;
    animation: promoShimmer 3s linear infinite;
}

@keyframes promoShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.esp-app-promo-content {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.esp-app-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.esp-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.esp-app-icon-default {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.esp-app-info {
    flex: 1;
}

.esp-app-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.3;
}

.esp-app-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

/* App Buttons Container */
.esp-app-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.esp-app-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 28px;
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
    min-width: 180px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.esp-app-download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.esp-app-download-btn:hover::before {
    left: 100%;
}

/* Android (Google Play) Button */
.esp-app-android {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.esp-app-android:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.esp-app-android:active {
    transform: translateY(-2px);
}

.esp-app-android svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.3));
}

/* iOS (App Store) Button */
.esp-app-ios {
    background: linear-gradient(135deg, #147efb 0%, #0a5ec4 100%);
    box-shadow: 0 6px 20px rgba(20, 126, 251, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.esp-app-ios:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(20, 126, 251, 0.45);
    border-color: rgba(255, 255, 255, 0.3);
}

.esp-app-ios:active {
    transform: translateY(-2px);
}

.esp-app-ios svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.esp-app-btn-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* Results Actions */
.esp-results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.esp-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.esp-btn-restart {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.esp-btn-restart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.esp-btn-review {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.esp-btn-review:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

/* ================================================
   QUESTIONS WRAPPER
================================================ */
.esp-questions-list {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

/* ================================================
   QUESTION CARD - ULTRA MODERN
================================================ */
.esp-question-item {
    background: #ffffff;
    border-radius: 28px;
    padding: 40px;
    box-shadow: 
        0 10px 50px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.esp-question-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, 
        #667eea 0%, 
        #764ba2 25%, 
        #f093fb 50%, 
        #764ba2 75%, 
        #667eea 100%);
    background-size: 300% 100%;
    animation: gradientFlow 5s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.esp-question-item:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 25px 70px rgba(102, 126, 234, 0.2),
        0 0 0 1px rgba(102, 126, 234, 0.15);
}

.esp-question-item.answered {
    background: linear-gradient(to bottom right, #ffffff 0%, #fafbfc 100%);
}

.esp-question-item.correct-answer {
    background: linear-gradient(to bottom right, #ffffff 0%, #ecfdf5 100%);
    border: 3px solid #34d399;
}

.esp-question-item.wrong-answer {
    background: linear-gradient(to bottom right, #ffffff 0%, #fef2f2 100%);
    border: 3px solid #f87171;
}

/* ================================================
   AD CONTAINER
================================================ */
.esp-ad-container {
    margin: 50px 0;
    padding: 30px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 20px;
    border: 2px solid #f59e0b;
    box-shadow: 
        0 10px 30px rgba(245, 158, 11, 0.15),
        0 0 0 1px rgba(245, 158, 11, 0.1) inset;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.esp-ad-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        #f59e0b 0%, 
        #fbbf24 25%, 
        #f59e0b 50%, 
        #fbbf24 75%, 
        #f59e0b 100%);
    background-size: 200% 100%;
    animation: adShimmer 3s linear infinite;
}

@keyframes adShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.esp-ad-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(245, 158, 11, 0.2);
    color: #92400e;
    border: 1px solid #f59e0b;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.esp-ad-content {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.esp-ad-content:empty::before {
    content: '📢 Reklam alanı';
    color: #94a3b8;
    font-style: italic;
}

/* ================================================
   QUESTION HEADER
================================================ */
.esp-question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 15px;
}

.esp-question-number {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 50px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.8px;
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.4),
        0 0 0 3px rgba(102, 126, 234, 0.1);
}

.esp-question-number::before {
    content: '📋';
    font-size: 20px;
}

/* Taxonomy Chips */
.esp-taxonomy-chips {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.esp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: default;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.esp-chip-icon {
    font-size: 14px;
    line-height: 1;
}

/* Exam Chip (Blue) */
.esp-chip-exam {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.esp-chip-exam:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(59, 130, 246, 0.4),
        0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Category Chip (Purple) */
.esp-chip-category {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.esp-chip-category:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(139, 92, 246, 0.4),
        0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Chip glassmorphism overlay */
.esp-chip {
    position: relative;
    overflow: hidden;
}

.esp-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: inherit;
    pointer-events: none;
}

/* Shimmer animation on chips */
.esp-chip::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 100%;
    height: 200%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    transform: skewX(-25deg);
    animation: chipShimmer 3s infinite;
    pointer-events: none;
}

@keyframes chipShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}



/* ================================================
   QUESTION IMAGE
================================================ */
.esp-question-img {
    margin: 25px 0;
    text-align: center;
}

.esp-question-img img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.esp-question-img img:hover {
    transform: scale(1.03);
}

/* ================================================
   QUESTION TEXT
================================================ */
.esp-question-content {
    font-size: 21px;
    line-height: 1.8;
    color: #1f2937;
    margin-bottom: 35px;
    font-weight: 500;
}

.esp-question-content p {
    margin: 0;
}

/* ================================================
   OPTIONS CONTAINER
================================================ */
.esp-options-wrapper {
    display: grid;
    gap: 12px;
}

/* ================================================
   OPTION ITEM - GRADIENT BORDER EFFECT
================================================ */
.esp-option-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 16px;
    background: #ffffff;
    border: 3px solid transparent;
    background-clip: padding-box;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.esp-option-item::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    border-radius: 20px;
    z-index: -1;
    transition: all 0.4s ease;
}

.esp-option-item:hover {
    transform: translateX(10px);
    background: #fafbfc;
}

.esp-option-item:hover::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.esp-option-item.selected::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.esp-option-item.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
}

.esp-option-item.option-correct::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.esp-option-item.option-correct {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.12) 100%);
}

.esp-option-item.option-wrong::before {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.4);
}

.esp-option-item.option-wrong {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(220, 38, 38, 0.12) 100%);
}

.esp-option-item.disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

/* ================================================
   OPTION LETTER BADGE
================================================ */
.esp-option-badge {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 50%;
    font-weight: 900;
    font-size: 20px;
    box-shadow: 
        0 6px 15px rgba(102, 126, 234, 0.4),
        0 0 0 3px rgba(102, 126, 234, 0.1);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.esp-option-item:hover .esp-option-badge {
    transform: rotate(360deg) scale(1.15);
}

.esp-option-item.option-correct .esp-option-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 
        0 6px 15px rgba(16, 185, 129, 0.4),
        0 0 0 3px rgba(16, 185, 129, 0.1);
}

.esp-option-item.option-wrong .esp-option-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 
        0 6px 15px rgba(239, 68, 68, 0.4),
        0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* ================================================
   OPTION TEXT
================================================ */
.esp-option-label {
    flex: 1;
    font-size: 18px;
    line-height: 1.6;
    color: #374151;
    font-weight: 500;
    text-align: justify;
    hyphens: auto;
    word-spacing: -0.05em;
}

/* ================================================
   OPTION STATUS ICON
================================================ */
.esp-option-status {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
}

.esp-option-item.option-correct .esp-option-status::before {
    content: '✓';
    color: #10b981;
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.esp-option-item.option-wrong .esp-option-status::before {
    content: '✗';
    color: #ef4444;
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ================================================
   EXPLANATION BOX
================================================ */
.esp-explanation-box {
    margin-top: 28px;
    padding: 28px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 6px solid #f59e0b;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
    animation: slideInDown 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.esp-explanation-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 17px;
    color: #92400e;
    margin-bottom: 12px;
}

.esp-explanation-header::before {
    content: '💡';
    font-size: 26px;
}

.esp-explanation-text {
    font-size: 16px;
    line-height: 1.7;
    color: #78350f;
    font-weight: 500;
}

/* ================================================
   NO QUESTIONS MESSAGE
================================================ */
.esp-no-questions {
    text-align: center;
    padding: 100px 40px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 30px;
    font-size: 22px;
    color: #6b7280;
    font-weight: 700;
}

.esp-no-questions::before {
    content: '📚';
    display: block;
    font-size: 80px;
    margin-bottom: 25px;
    animation: floatEmoji 3s ease-in-out infinite;
}

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

/* ================================================
   ANIMATIONS
================================================ */
.esp-pulse {
    animation: pulseAnim 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.esp-shake {
    animation: shakeAnim 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes shakeAnim {
    0%, 100% {
        transform: translateX(0);
    }
    20%, 60% {
        transform: translateX(-15px);
    }
    40%, 80% {
        transform: translateX(15px);
    }
}

/* ================================================
   RESPONSIVE DESIGN
================================================ */
@media (max-width: 1024px) {
    .esp-quiz-container {
        padding: 30px 20px;
    }
    
    .esp-stats-panel {
        gap: 18px;
        padding: 30px;
    }
    
    .esp-stat-box {
        padding: 25px 18px;
    }
    
    .esp-stat-title {
        font-size: 12px;
    }
    
    .esp-stat-value {
        font-size: 42px;
    }
    
    .esp-stat-icon {
        font-size: 20px;
    }
    
    .esp-results-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet - Bottom Sticky */
@media (min-width: 769px) and (max-width: 1024px) {
    .esp-quiz-container {
        padding: 30px 20px 100px 20px;
    }
    
    .esp-stats-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        margin-bottom: 0;
        border-radius: 25px 25px 0 0;
        box-shadow: 
            0 -10px 40px rgba(102, 126, 234, 0.45),
            0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    }
}

/* Mobile - Bottom Sticky */
@media (max-width: 768px) {
    .esp-quiz-container {
        padding: 20px 15px 85px 15px;
    }
    
    .esp-stats-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        height: auto;
        max-height: 70px;
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
        padding: 10px 12px;
        margin-bottom: 0;
        border-radius: 20px 20px 0 0;
        box-shadow: 
            0 -10px 40px rgba(102, 126, 234, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.3) inset;
        z-index: 1000;
    }
    
    .esp-stat-box {
        padding: 8px 4px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.2);
    }
    
    .esp-stat-box:hover {
        transform: translateY(-5px) scale(1.02);
    }
    
    .esp-stat-title {
        font-size: 9px;
        margin-bottom: 4px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    
    .esp-stat-value {
        font-size: 20px;
        font-weight: 800;
    }
    
    .esp-stat-icon {
        font-size: 14px;
        margin-bottom: 2px;
    }
    
    .esp-question-item {
        padding: 25px 20px;
    }
    
    .esp-question-header {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 22px;
    }
    
    .esp-taxonomy-chips {
        gap: 8px;
    }
    
    .esp-chip {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .esp-chip-icon {
        font-size: 12px;
    }
    
    .esp-question-content {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 22px;
        padding: 0;
    }
    
    .esp-options-wrapper {
        gap: 10px;
    }
    
    .esp-option-item {
        padding: 14px 14px;
        gap: 14px;
    }
    
    .esp-option-badge {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .esp-option-label {
        font-size: 17px;
    }
    
    .esp-finish-btn {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .esp-ad-container {
        margin: 35px 0;
        padding: 20px;
    }
    
    .esp-ad-content {
        min-height: 70px;
        padding: 15px;
    }
    
    .esp-app-promo-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .esp-app-icon {
        width: 60px;
        height: 60px;
    }
    
    .esp-app-icon-default {
        font-size: 30px;
    }
    
    .esp-app-name {
        font-size: 16px;
    }
    
    .esp-app-description {
        font-size: 13px;
    }
    
    .esp-app-buttons {
        width: 100%;
        gap: 10px;
    }
    
    .esp-app-download-btn {
        width: 100%;
        justify-content: center;
        min-width: auto;
        padding: 14px 24px;
    }
    
    .esp-app-android svg,
    .esp-app-ios svg {
        width: 22px;
        height: 22px;
    }
    
    /* Results Modal - Tablet */
    .esp-results-content {
        width: 95%;
        max-height: 85vh;
        border-radius: 20px;
    }
    
    .esp-results-header {
        padding: 20px 30px;
        border-radius: 20px 20px 0 0;
    }
    
    .esp-results-header h2 {
        font-size: 22px;
        padding-right: 40px;
    }
    
    .esp-results-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
        top: 15px;
        right: 15px;
    }
    
    .esp-results-body {
        padding: 25px 20px;
    }
    
    .esp-results-score {
        margin-bottom: 25px;
    }
    
    .esp-score-circle svg {
        width: 160px;
        height: 160px;
    }
    
    .esp-score-circle .esp-circle-bg,
    .esp-score-circle .esp-circle-progress {
        stroke-width: 10;
    }
    
    .esp-score-percentage {
        font-size: 38px;
    }
    
    .esp-score-label {
        font-size: 14px;
    }
    
    .esp-results-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .esp-result-stat {
        padding: 15px 10px;
    }
    
    .esp-result-icon {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .esp-result-value {
        font-size: 22px;
    }
    
    .esp-result-label {
        font-size: 11px;
    }
    
    .esp-results-message {
        padding: 18px;
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .esp-app-promo {
        margin: 20px 0;
        padding: 15px;
    }
    
    .esp-results-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .esp-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .esp-quiz-container {
        padding: 15px 10px 70px 10px;
    }
    
    .esp-stats-panel {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        padding: 8px 8px;
        max-height: 60px;
        overflow: visible;
    }
    
    .esp-stat-box {
        padding: 6px 2px;
        border-radius: 10px;
        min-height: 0;
    }
    
    .esp-stat-title {
        font-size: 8px;
        margin-bottom: 2px;
        line-height: 1;
    }
    
    .esp-stat-value {
        font-size: 16px;
        line-height: 1.1;
        margin-bottom: 0;
    }
    
    .esp-stat-icon {
        font-size: 11px;
        margin-bottom: 2px;
        display: block;
    }
    
    .esp-question-number {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .esp-question-number::before {
        font-size: 16px;
    }
    
    .esp-question-header {
        gap: 8px;
        margin-bottom: 20px;
        flex-wrap: nowrap;
    }
    
    .esp-taxonomy-chips {
        gap: 6px;
        flex-wrap: nowrap;
    }
    
    .esp-chip {
        font-size: 10px;
        padding: 4px 8px;
        gap: 4px;
        border-radius: 15px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .esp-chip-icon {
        font-size: 10px;
    }
    
    .esp-question-content {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 18px;
        padding: 0;
    }
    
    .esp-options-wrapper {
        gap: 8px;
    }
    
    .esp-option-item {
        padding: 12px 12px;
        gap: 10px;
    }
    
    .esp-option-badge {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    
    .esp-option-label {
        font-size: 15px;
    }
    
    .esp-finish-container {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .esp-finish-btn {
        width: 100%;
        justify-content: center;
    }
    
    .esp-ad-container {
        margin: 30px 0;
        padding: 15px;
    }
    
    .esp-ad-label {
        font-size: 10px;
        padding: 5px 12px;
    }
    
    .esp-ad-content {
        min-height: 60px;
        padding: 10px;
    }
    
    .esp-app-promo {
        margin: 20px 0;
        padding: 15px;
    }
    
    .esp-app-promo-content {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .esp-app-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    .esp-app-icon-default {
        font-size: 40px;
    }
    
    .esp-app-name {
        font-size: 18px;
    }
    
    .esp-app-description {
        font-size: 14px;
    }
    
    .esp-app-buttons {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .esp-app-download-btn {
        padding: 16px 32px;
        font-size: 16px;
        flex: 1;
        min-width: 140px;
    }
    
    /* Results Modal - Mobile */
    .esp-results-modal {
        align-items: flex-start;
    }
    
    .esp-results-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .esp-results-header {
        padding: 12px 15px;
        border-radius: 0;
        position: sticky;
        top: 0;
        z-index: 10;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .esp-results-header h2 {
        font-size: 16px;
        padding-right: 35px;
        margin: 0;
    }
    
    .esp-results-close {
        width: 30px;
        height: 30px;
        font-size: 16px;
        top: 10px;
        right: 10px;
    }
    
    .esp-results-body {
        padding: 15px 12px 20px;
    }
    
    .esp-results-score {
        margin-bottom: 15px;
    }
    
    .esp-score-circle svg {
        width: 110px;
        height: 110px;
    }
    
    .esp-score-circle .esp-circle-bg,
    .esp-score-circle .esp-circle-progress {
        stroke-width: 7;
    }
    
    .esp-score-percentage {
        font-size: 26px;
        font-weight: 800;
    }
    
    .esp-score-label {
        font-size: 11px;
    }
    
    .esp-results-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .esp-result-stat {
        padding: 10px 6px;
        border-radius: 10px;
    }
    
    /* Süre kutusunu tam genişlik yap */
    .esp-result-stat.esp-result-time {
        grid-column: 1 / -1;
    }
    
    .esp-result-icon {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .esp-result-value {
        font-size: 18px;
        margin-bottom: 2px;
    }
    
    .esp-result-label {
        font-size: 9px;
    }
    
    .esp-results-message {
        padding: 12px;
        font-size: 13px;
        margin-bottom: 12px;
        border-radius: 10px;
    }
    
    .esp-app-promo {
        margin: 12px 0;
        padding: 10px;
        border-radius: 10px;
        border-width: 2px;
    }
    
    .esp-app-promo-content {
        padding: 10px;
        gap: 10px;
    }
    
    .esp-app-icon {
        width: 45px;
        height: 45px;
    }
    
    .esp-app-icon-default {
        font-size: 24px;
    }
    
    .esp-app-name {
        font-size: 14px;
        line-height: 1.2;
    }
    
    .esp-app-description {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .esp-app-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .esp-app-download-btn {
        padding: 12px 20px;
        font-size: 13px;
        width: 100%;
        border-radius: 12px;
    }
    
    .esp-app-android svg {
        width: 20px;
        height: 20px;
    }
    
    .esp-app-ios svg {
        width: 18px;
        height: 18px;
    }
    
    .esp-app-btn-icon {
        font-size: 20px;
    }
    
    .esp-results-actions {
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
    }
    
    .esp-btn {
        width: 100%;
        padding: 11px 18px;
        font-size: 13px;
        justify-content: center;
    }
}
