/* ═══════════════════════════════════════════════════════════════
   Quizzes Page Styles
   ═══════════════════════════════════════════════════════════════ */

/* Page Header */
.page-header-premium {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, rgba(217,119,6,0.1) 0%, rgba(8,8,16,0) 50%);
    position: relative;
}

.page-header-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23D97706" stroke-width="0.5" opacity="0.1"/></svg>') center/200px repeat;
    opacity: 0.5;
    pointer-events: none;
}

.page-title-premium {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.page-subtitle-premium {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    max-width: 600px;
    margin: 0 auto;
}

/* Filters Section */
.filters-section {
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.filters-wrapper {
    background: rgba(8,8,16,0.8);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.search-box {
    position: relative;
}

.search-box .search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.4);
    z-index: 10;
}

.search-box input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    color: white;
    width: 100%;
}

.search-box input:focus {
    outline: none;
    border-color: #D97706;
    background: rgba(255,255,255,0.08);
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.4);
}

/* Filter Tabs */
.filter-tabs {
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.filter-btn.active {
    background: #D97706;
    border-color: #D97706;
    color: #000;
    font-weight: 600;
}

/* Quizzes Grid */
.quizzes-section {
    min-height: 400px;
}

.quiz-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.quiz-card:hover {
    transform: translateY(-5px);
    border-color: rgba(217,119,6,0.3);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.quiz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D97706, #F59E0B);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quiz-card:hover::before {
    opacity: 1;
}

.quiz-card.completed {
    border-color: rgba(34,197,94,0.3);
}

.quiz-card.completed::before {
    background: linear-gradient(90deg, #22C55E, #10B981);
    opacity: 1;
}

/* Quiz Card Header */
.quiz-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.quiz-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.quiz-status-badge.available {
    background: rgba(217,119,6,0.15);
    color: #D97706;
}

.quiz-status-badge.completed {
    background: rgba(34,197,94,0.15);
    color: #22C55E;
}

.quiz-subject {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

/* Quiz Card Body */
.quiz-card-body {
    margin-bottom: 1.5rem;
}

.quiz-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.quiz-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.quiz-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.quiz-meta-item i {
    color: #D97706;
    font-size: 0.9rem;
}

/* Score Display */
.quiz-score {
    background: rgba(217,119,6,0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.quiz-score-value {
    font-size: 1.75rem;
    font-weight: 900;
    color: #D97706;
}

.quiz-score-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

/* Quiz Card Actions */
.quiz-card-actions {
    margin-top: auto;
}

.btn-quiz-action {
    width: 100%;
    padding: 0.75rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-quiz-action.start {
    background: #D97706;
    color: #000;
}

.btn-quiz-action.start:hover {
    background: #F59E0B;
    transform: translateY(-2px);
}

.btn-quiz-action.retry {
    background: transparent;
    border: 1px solid rgba(217,119,6,0.5);
    color: #D97706;
}

.btn-quiz-action.retry:hover {
    background: rgba(217,119,6,0.1);
}

/* Loading & Empty States */
.loading-spinner {
    animation: pulse 1.5s infinite;
}

.empty-icon,
.lock-icon {
    opacity: 0.5;
}

/* Results Table */
.results-section {
    background: rgba(255,255,255,0.01);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.results-table {
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    overflow: hidden;
}

.results-table thead th {
    background: rgba(217,119,6,0.1);
    color: #D97706;
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.results-table tbody td {
    border-color: rgba(255,255,255,0.05);
    padding: 1rem;
    vertical-align: middle;
}

.results-table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}

.score-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.score-badge.excellent {
    background: rgba(34,197,94,0.15);
    color: #22C55E;
}

.score-badge.good {
    background: rgba(217,119,6,0.15);
    color: #D97706;
}

.score-badge.pass {
    background: rgba(59,130,246,0.15);
    color: #3B82F6;
}

.score-badge.fail {
    background: rgba(239,68,68,0.15);
    color: #EF4444;
}

/* Quiz Modal Enhancements */
#quizModal .modal-content {
    border: none;
}

#quizModal .modal-header {
    background: linear-gradient(135deg, rgba(217,119,6,0.1), rgba(8,8,16,1));
}

/* Responsive */
@media (max-width: 768px) {
    .page-title-premium {
        font-size: 2rem;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }
    
    .quiz-card {
        padding: 1rem;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.quiz-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

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

/* Staggered animation delays */
.quiz-card:nth-child(1) { animation-delay: 0.1s; }
.quiz-card:nth-child(2) { animation-delay: 0.2s; }
.quiz-card:nth-child(3) { animation-delay: 0.3s; }
.quiz-card:nth-child(4) { animation-delay: 0.4s; }
.quiz-card:nth-child(5) { animation-delay: 0.5s; }
.quiz-card:nth-child(6) { animation-delay: 0.6s; }
