/* ============================================
   Quiz Archive — page-tabs hero + grid
   ============================================ */

.page-quiz-archive.site-main {
    --qa-page-max: 1160px;
    max-width: var(--qa-page-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    background: transparent;
    gap: 0.5rem;
}

.page-quiz-archive .qa-page-hero.page-tabs-header {
    margin-bottom: 0.75rem;
}

.qa-filters {
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 14px;
    border: 1px solid var(--border-color-light);
    background: var(--content-bg);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.qa-filters__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.qa-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border-color-light);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.qa-filter-btn:hover {
    color: var(--accent-primary);
    border-color: color-mix(in srgb, var(--accent-primary) 22%, transparent);
    background: color-mix(in srgb, var(--accent-primary) 6%, var(--content-bg));
}

.qa-filter-btn.is-active {
    color: var(--accent-primary);
    border-color: color-mix(in srgb, var(--accent-primary) 28%, transparent);
    background: color-mix(in srgb, var(--accent-primary) 10%, var(--content-bg));
}

.qa-filter-btn__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--text-muted);
    background: color-mix(in srgb, var(--text-muted) 10%, var(--content-bg));
}

.qa-filter-btn.is-active .qa-filter-btn__count {
    color: var(--accent-primary);
    background: color-mix(in srgb, var(--accent-primary) 14%, transparent);
}

[data-theme="dark"] .qa-filters {
    background: var(--bg-secondary, var(--header-bg));
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .qa-filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Legacy archive hero (kullanılmıyor) */
.site-main .archive-hero-section {
    position: relative;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 32px 1rem 24px !important;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.archive-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.archive-hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: blobFloat 20s infinite ease-in-out;
}

.archive-hero-blob.blob-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.archive-hero-blob.blob-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    bottom: -50px;
    right: -50px;
    animation-delay: 7s;
}

.archive-hero-blob.blob-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes blobFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.archive-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.archive-hero-top {
    margin-bottom: 2rem;
}

.archive-hero-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.archive-hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 900;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.03em;
    text-align: center;
}

.archive-hero-desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
    max-width: 700px;
    text-align: center;
}

.archive-stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.archive-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.85);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-radius: 12px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Category Filters in Header - Compact */
.archive-category-filters {
    margin-top: 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(102, 126, 234, 0.15);
}

.category-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    align-items: center;
}

.category-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

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

.category-filter-btn:hover::before {
    left: 100%;
}

.category-filter-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

.category-filter-btn.active {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.category-filter-btn.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.25rem;
}

.category-filter-btn:not(.active) .filter-badge {
    background: rgba(102, 126, 234, 0.1);
    color: var(--accent-primary);
}

.page-quiz-archive .archive-content-wrapper {
    max-width: none;
    margin: 0;
    padding: 0 0 2.5rem;
}

/* Quiz Grid Container - Compact Grid Design */
.quiz-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

@media (min-width: 1200px) {
    .quiz-grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .quiz-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    .quiz-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 599px) {
    .quiz-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Quiz Card Grid - Modern Glassmorphism Design */
.quiz-card-grid {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.5);
}

.quiz-card-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.03) 0%,
        rgba(118, 75, 162, 0.03) 50%,
        rgba(102, 126, 234, 0.03) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
    border-radius: 20px;
}

.quiz-card-grid::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
    filter: blur(8px);
}

.quiz-card-grid:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 
        0 10px 20px -5px rgba(102, 126, 234, 0.1),
        0 4px 6px -2px rgba(102, 126, 234, 0.05),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.8);
}

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

.quiz-card-grid:hover::after {
    opacity: 1;
}

.quiz-card-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.quiz-card-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 20px 20px 0 0;
}

.quiz-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quiz-card-grid:hover .quiz-card-image img {
    transform: scale(1.1);
}

.quiz-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    opacity: 0.4;
}

.quiz-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quiz-card-grid:hover .quiz-card-overlay {
    opacity: 1;
}

.quiz-card-play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    color: var(--accent-primary);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.8);
}

.quiz-card-grid:hover .quiz-card-play {
    transform: scale(1.1);
    box-shadow: 
        0 12px 24px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.quiz-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.quiz-card-badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quiz-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 12px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.quiz-badge-category {
    background: rgba(102, 126, 234, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(102, 126, 234, 0.25);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
}

.quiz-card-grid:hover .quiz-badge-category {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.15);
}

.quiz-badge-difficulty {
    background: var(--badge-color);
    color: white;
    border: none;
    margin-left: auto;
    box-shadow: 0 4px 12px rgba(var(--badge-color-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

.quiz-card-grid:hover .quiz-badge-difficulty {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 6px 16px rgba(var(--badge-color-rgb), 0.4);
}

.quiz-badge-difficulty::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.quiz-card-grid:hover .quiz-badge-difficulty::before {
    left: 100%;
}

.quiz-card-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    transition: color 0.3s ease;
    letter-spacing: -0.01em;
}

.quiz-card-grid:hover .quiz-card-title {
    color: var(--accent-primary);
}

.quiz-card-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    flex-wrap: wrap;
}

.quiz-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.05);
    flex-shrink: 0;
}

.quiz-card-grid:hover .quiz-stat {
    background: rgba(102, 126, 234, 0.1);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.quiz-stat svg {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
    opacity: 0.8;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.quiz-card-grid:hover .quiz-stat svg {
    opacity: 1;
    transform: scale(1.1);
}

/* Empty State */
.archive-empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--content-bg);
    border: 2px dashed var(--border-color);
    border-radius: 24px;
}

.empty-state-icon {
    margin: 0 auto 2rem;
    color: var(--text-tertiary);
    opacity: 0.4;
}

.empty-state-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.empty-state-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Pagination */
.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 4rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.page-numbers a,
.page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    background: var(--content-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-numbers a:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.page-numbers .current {
    color: white;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    font-weight: 800;
}

.page-numbers .current:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.page-numbers .prev,
.page-numbers .next {
    gap: 0.5rem;
    padding: 0 1.25rem;
}

.page-numbers svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.page-numbers .prev:hover svg {
    transform: translateX(-3px);
}

.page-numbers .next:hover svg {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-quiz-archive .archive-content-wrapper {
        padding: 0 0 2rem;
    }

    .qa-filters {
        padding: 0.55rem 0.6rem;
    }

    .qa-filter-btn {
        font-size: 0.6875rem;
        padding: 0.35rem 0.6rem;
    }

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

    .quiz-card-body {
        padding: 0.875rem;
        gap: 0.625rem;
    }

    .quiz-card-badges {
        gap: 0.4375rem;
    }

    .quiz-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.5625rem;
    }

    .quiz-card-title {
        font-size: 0.9375rem;
    }

    .quiz-card-stats {
        gap: 0.75rem;
        padding-top: 0.625rem;
    }

    .quiz-stat {
        font-size: 0.6875rem;
        gap: 0.3125rem;
    }

    .quiz-stat svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .qa-filters__list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.15rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .qa-filters__list::-webkit-scrollbar {
        display: none;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .quiz-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }

    .quiz-card-body {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .quiz-card-badges {
        gap: 0.375rem;
    }

    .quiz-badge {
        padding: 0.1875rem 0.4375rem;
        font-size: 0.5625rem;
    }

    .quiz-card-title {
        font-size: 0.875rem;
        line-height: 1.3;
    }

    .quiz-card-stats {
        gap: 0.625rem;
        padding-top: 0.5rem;
    }

    .quiz-stat {
        font-size: 0.625rem;
        gap: 0.25rem;
    }

    .quiz-stat svg {
        width: 11px;
        height: 11px;
    }

    .category-filters-list {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .category-filters-list::-webkit-scrollbar {
        height: 4px;
    }

    .category-filters-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .category-filters-list::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 2px;
    }
}

/* Dark Mode Support */
[data-theme="dark"] .archive-hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
}

[data-theme="dark"] .quiz-card-grid {
    background: rgba(30, 30, 40, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(102, 126, 234, 0.2);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 2px 4px -1px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .quiz-card-grid::before {
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.05) 0%,
        rgba(118, 75, 162, 0.05) 50%,
        rgba(102, 126, 234, 0.05) 100%
    );
    opacity: 0;
}

[data-theme="dark"] .quiz-card-grid::after {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4), rgba(118, 75, 162, 0.4));
    opacity: 0;
    filter: blur(8px);
}

[data-theme="dark"] .quiz-card-grid:hover {
    background: rgba(30, 30, 40, 0.85);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 
        0 10px 20px -5px rgba(0, 0, 0, 0.3),
        0 4px 6px -2px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-6px);
}

[data-theme="dark"] .quiz-card-grid:hover::before {
    opacity: 1;
}

[data-theme="dark"] .quiz-card-grid:hover::after {
    opacity: 1;
}

[data-theme="dark"] .archive-stat-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
}

[data-theme="dark"] .archive-stat-item:hover {
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
}


[data-theme="dark"] .quiz-card-image {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
}

[data-theme="dark"] .quiz-card-overlay {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5) 0%, rgba(118, 75, 162, 0.5) 100%);
}

[data-theme="dark"] .quiz-card-play {
    background: rgba(30, 30, 40, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--accent-primary);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .quiz-card-grid:hover .quiz-card-play {
    box-shadow: 
        0 12px 24px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .quiz-badge-category {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.15);
}

[data-theme="dark"] .quiz-card-grid:hover .quiz-badge-category {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .quiz-badge-difficulty {
    box-shadow: 0 4px 12px rgba(var(--badge-color-rgb), 0.4);
}

[data-theme="dark"] .quiz-card-grid:hover .quiz-badge-difficulty {
    box-shadow: 0 6px 16px rgba(var(--badge-color-rgb), 0.5);
}

[data-theme="dark"] .quiz-card-stats {
    border-top-color: rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .quiz-stat {
    background: rgba(102, 126, 234, 0.08);
}

[data-theme="dark"] .quiz-card-grid:hover .quiz-stat {
    background: rgba(102, 126, 234, 0.15);
}

[data-theme="dark"] .page-numbers a,
[data-theme="dark"] .page-numbers span {
    background: var(--content-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .page-numbers a:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

[data-theme="dark"] .page-numbers .current {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

[data-theme="dark"] .page-numbers .current:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Dark Mode - Category Filters */
[data-theme="dark"] .category-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
    color: var(--text-primary);
}

[data-theme="dark"] .category-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

[data-theme="dark"] .category-filter-btn.active {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

[data-theme="dark"] .category-filter-btn:not(.active) .filter-badge {
    background: rgba(102, 126, 234, 0.2);
    color: var(--accent-primary);
}

[data-theme="dark"] .archive-category-filters {
    border-top-color: rgba(102, 126, 234, 0.3);
}

[data-theme="dark"] .archive-stat-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
}

[data-theme="dark"] .archive-stat-item:hover {
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
}
