/* public/styles.css */

/* --- Root Variables & Theme Configuration --- */
:root {
    --primary-color: #6B4EE6;
    --primary-hover: #5B3ED6;
    --secondary-color: #8B5CF6;
    --accent-color: #14B8A6;
    --accent-deep: #0F766E;
    --text-dark: #111827;
    --text-medium: #4B5563;
    --text-light: #9CA3AF;
    --bg-body: #f6f5f2;
    --bg-white: #FFFFFF;
    --container-max: 80rem;
    --header-height: 4rem;
    --transition-normal: 0.3s ease-in-out;
}

/* --- Global Resets --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Figtree', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

.site-page,
.home-page {
    --bg-body: #f6f5f2;
    background-color: var(--bg-body);
}

.font-hero {
    font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif !important;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.font-heading {
    font-family: 'Figtree', system-ui, sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Figtree', system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

h1.font-hero,
h2.font-hero,
.page-title,
.site-display {
    font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif !important;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.site-section {
    padding-top: 1.25rem;
    padding-bottom: 1.75rem;
}

.site-container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .site-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
    .site-container { padding-left: 2rem; padding-right: 2rem; }
}

.site-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-deep);
    margin-bottom: 0.35rem;
}

.site-lede {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.65;
    max-width: 40rem;
}

.home-reveal {
    animation: homeFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.home-btn-primary:hover {
    transform: translateY(-1px);
}

.home-hero-panel {
    animation: homeFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.home-hero-glass {
    position: relative;
    overflow: hidden;
}

.home-hero-glass::after {
    content: '';
    position: absolute;
    inset: -40% auto auto -30%;
    width: 55%;
    height: 180%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: translateX(-120%) rotate(18deg);
    animation: heroShine 4.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroShine {
    0%, 55% { transform: translateX(-140%) rotate(18deg); opacity: 0; }
    65% { opacity: 0.8; }
    80%, 100% { transform: translateX(280%) rotate(18deg); opacity: 0; }
}

.hero-stat-card {
    animation: heroCardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both, heroCardFloat 4.5s ease-in-out infinite;
    animation-delay: var(--d, 0s), calc(var(--d, 0s) + 0.7s);
    will-change: transform;
}

.hero-stat-card:nth-child(2),
.hero-stat-card:nth-child(4) {
    animation-name: heroCardIn, heroCardFloatAlt;
}

@keyframes heroCardIn {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

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

.hero-chip {
    animation: heroChipPulse 2.8s ease-in-out infinite;
}

@keyframes heroChipPulse {
    0%, 100% { transform: translateY(0); box-shadow: none; }
    50% { transform: translateY(-2px); box-shadow: 0 6px 14px -10px rgba(107, 78, 230, 0.55); }
}

.home-float {
    animation: homeFloat 3.2s ease-in-out infinite;
}

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

.home-scroll-cue {
    animation: homeFadeUp 1s ease both 0.55s;
}

.home-scroll-cue-label {
    animation: homeScrollCueGlow 2.2s ease-in-out 1.4s infinite;
}

.home-scroll-cue-icon {
    animation: homeScrollCueBounce 1.35s cubic-bezier(0.33, 1, 0.68, 1) 1.4s infinite;
}

@keyframes homeScrollCueBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    45% { transform: translateY(7px); opacity: 0.75; }
}

@keyframes homeScrollCueGlow {
    0%, 100% { opacity: 0.85; letter-spacing: 0.16em; }
    50% { opacity: 1; letter-spacing: 0.2em; }
}

.home-section {
    scroll-margin-top: 4.5rem;
}

.h-4\.5 { height: 1.125rem; }
.w-4\.5 { width: 1.125rem; }


/* Fixed black header offset (not library sticky pages, not home hero) */
body:has(#main-header):not(.home-page) {
    padding-top: 4rem;
}

.home-page .subject-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -12px rgba(107, 78, 230, 0.28);
}

.home-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -18px rgba(15, 118, 110, 0.28);
}

@media (prefers-reduced-motion: reduce) {
    .hero-stat-card,
    .hero-chip,
    .home-float,
    .home-hero-glass::after,
    .home-scroll-cue,
    .home-scroll-cue-label,
    .home-scroll-cue-icon {
        animation: none !important;
    }
}

/* --- Typography --- */
a { text-decoration: none; color: inherit; transition: color var(--transition-normal); }
button { cursor: pointer; font-family: inherit; }

/* --- Site header: always black, white text --- */
#main-header,
#library-header {
    background-color: #000000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.35);
    color: #ffffff;
}

#main-header a,
#main-header button,
#main-header .logo-text,
#main-header .nav-link,
#library-header a,
#library-header button,
#library-header span {
    color: inherit;
}

#main-header.scrolled {
    background-color: #000000 !important;
}

#main-header.scrolled .nav-link,
#main-header.scrolled .logo-text,
#main-header.scrolled #mobile-menu-btn {
    color: #FFFFFF !important;
}

#main-header.scrolled .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF !important;
}

/* --- Mobile Menu Animation --- */
#mobile-menu { transform-origin: top; transition: all var(--transition-normal); }
#mobile-menu.hidden { display: none; opacity: 0; transform: translateY(-10px); }
#mobile-menu:not(.hidden) { display: block; opacity: 1; transform: translateY(0); animation: slideDown 0.3s ease-out forwards; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Hero Animations --- */
@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}
.animate-blob { animation: blob 7s infinite; }
.animation-delay-2000 { animation-delay: 2s; }

/* --- Exam Library Interactive Styles --- */
.exam-tab { transition: all 0.2s ease; }
.exam-tab.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 78, 230, 0.3);
}
.subject-card { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.subject-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(107, 78, 230, 0.15);
    border-color: rgba(107, 78, 230, 0.4);
}
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* --- Testimonial Slider Animation --- */
.testimonial-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: scroll-testimonials 40s linear infinite;
}
.testimonial-track:hover {
    animation-play-state: paused;
}
@keyframes scroll-testimonials {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Moves half the track (since we duplicate content) */
}

/* --- Footer & Utilities --- */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    background-color: #000000 !important;
    color: #ffffff !important;
}
footer a { color: rgba(255, 255, 255, 0.8) !important; }
footer a:hover { color: #ffffff !important; }
footer p,
footer span { color: rgba(255, 255, 255, 0.7); }
.container-custom { max-width: var(--container-max); margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 1024px) { .container-custom { padding-left: 2rem; padding-right: 2rem; } }
:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
/* Add to public/styles.css */

/* --- Library header stays black like site chrome --- */
.library-header,
#library-header {
    background-color: #000000 !important;
    backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.35);
}

/* --- Library Sidebar & Topics --- */
.topic-link {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}
.topic-link:hover, .topic-link.active {
    color: var(--primary-color);
    background-color: rgba(107, 78, 230, 0.05);
    border-left-color: var(--primary-color);
    padding-left: calc(1rem - 3px); /* Adjust for border */
}

/* --- Sample Question Accordion/List --- */
.question-item {
    transition: background-color 0.2s ease;
}
.question-item:hover {
    background-color: #F9FAFB;
}
.question-item:hover .chevron-icon {
    color: var(--primary-color);
    transform: translateX(4px);
}

/* --- Action Cards Hover Effects --- */
.action-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(107, 78, 230, 0.1), 0 10px 10px -5px rgba(107, 78, 230, 0.04);
    border-color: rgba(107, 78, 230, 0.4);
}
/* Add to public/styles.css */

/* --- Quiz Interface Specifics --- */
.quiz-sidebar {
    background-color: rgba(255, 255, 255, 0.98);
    border-right: 1px solid #E5E7EB;
}

.question-nav-btn {
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.question-nav-btn:hover {
    background-color: #F3F4F6;
}
.question-nav-btn.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 78, 230, 0.3);
}
.question-nav-btn.answered {
    background-color: #ECFDF5; /* Emerald-50 */
    color: #059669; /* Emerald-600 */
    border-color: #A7F3D0;
}

/* Custom Radio Button Styling */
.option-radio:checked + .option-label {
    border-color: var(--primary-color);
    background-color: rgba(107, 78, 230, 0.05);
}
.option-radio:checked + .option-label .radio-indicator {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}
.option-radio:checked + .option-label .radio-indicator::after {
    transform: scale(1);
}

/* Question Card Animation */
.question-card {
    animation: fadeIn 0.4s ease-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Add to public/styles.css */

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

.animation-delay-600 {
    animation-delay: 0.6s;
}

.animation-delay-800 {
    animation-delay: 0.8s;
}

/* --- Counter Animation --- */
.counter {
    display: inline-block;
}

/* --- Testimonials: full-width fade stage (no side gaps) --- */
.testimonial-stage {
    width: 100%;
}

.testimonial-stage-inner {
    position: relative;
    width: 100%;
}

.testimonial-fade-viewport {
    position: relative;
    width: 100%;
    min-height: 280px;
    background: linear-gradient(145deg, #ffffff 0%, #f0fdfa 55%, #f5f3ff 100%);
    border: 1px solid rgba(107, 78, 230, 0.12);
    border-radius: 1.5rem;
    padding: 2rem 3.5rem;
    overflow: hidden;
    box-shadow: 0 18px 40px -28px rgba(30, 10, 94, 0.35);
}

.testimonial-fade-card {
    position: absolute;
    inset: 0;
    padding: 2rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.5s;
    pointer-events: none;
}

.testimonial-fade-card.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 2;
}

.testimonial-fade-card.is-leaving {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    z-index: 1;
}

.testimonial-fade-quote {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    line-height: 1.55;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.testimonial-fade-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    z-index: 5;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px -10px rgba(0,0,0,0.25);
    transition: all 0.25s ease;
}

.testimonial-nav:hover {
    border-color: rgba(107, 78, 230, 0.35);
    color: #6B4EE6;
}

.testimonial-nav-next {
    left: auto;
    right: 0.75rem;
}

.testimonial-avatars {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.35rem;
}

.testimonial-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #6B4EE6, #14B8A6);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0.45;
    transform: scale(0.92);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonial-avatar.is-active {
    opacity: 1;
    transform: scale(1.08);
    border-color: #fff;
    box-shadow: 0 0 0 2px #6B4EE6;
}

.testimonial-avatar:hover {
    opacity: 0.85;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 640px) {
    .testimonial-fade-viewport,
    .testimonial-fade-card {
        padding: 1.5rem 2.75rem;
        min-height: 320px;
    }

    .testimonial-fade-quote {
        font-size: 1.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-reveal,
    .home-hero-panel,
    .testimonial-fade-card {
        animation: none !important;
        transition: none !important;
    }
}

/* --- Category Toggle --- */
.category-toggle:hover .chevron-icon {
    transform: rotate(180deg);
}

/* --- Enhanced Subject Cards --- */
.subject-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.subject-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(107, 78, 230, 0.2);
}

/* --- Enhanced Buttons --- */
button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #6B4EE6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5B3ED6;
}
/* Question Type Pages Styles */
.question-type-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(107, 78, 230, 0.15), 0 10px 10px -5px rgba(107, 78, 230, 0.1);
}

.sidebar-link {
    position: relative;
    transition: all 0.2s ease;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(107, 78, 230, 0.1), transparent);
    border-left: 3px solid #6B4EE6;
    transition: width 0.2s ease;
    opacity: 0;
}

.sidebar-link.active::before {
    width: 100%;
    opacity: 1;
}

/* Mobile sidebar toggle */
@media (max-width: 1024px) {
    .mobile-sidebar {
        display: none;
    }
    
    .mobile-sidebar.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        background: white;
    }
}

/* Animation for cards */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-type-card {
    animation: slideIn 0.4s ease-out forwards;
}
/* Modal Overlay Styles */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: white;
    border-radius: 1rem;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to right, #f5f3ff, #eef2ff);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    background-color: #f9fafb;
}

/* Exam Sets Grid */
.exam-sets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

.exam-set-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    background: white;
    color: #1f2937;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.exam-set-button:hover {
    transform: translateY(-2px);
    border-color: rgba(107, 78, 230, 0.45);
    box-shadow: 0 12px 24px -8px rgba(107, 78, 230, 0.25);
    background: linear-gradient(135deg, #faf5ff 0%, #ffffff 100%);
}

.exam-set-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, #6B4EE6 0%, #A78BFA 100%);
    color: white;
    flex-shrink: 0;
}

.exam-set-label {
    line-height: 1.4;
    flex: 1;
    text-align: left;
}

/* Responsive */
@media (max-width: 640px) {
    .exam-sets-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-container {
        max-height: 95vh;
    }
}
/* Quiz Page Styles */
.question-option {
    transition: all 0.2s ease;
}

.question-option:hover {
    transform: translateX(4px);
}

.question-option.selected {
    border-color: #6B4EE6;
    background-color: rgba(107, 78, 230, 0.05);
}

.question-option.selected .option-indicator {
    border-color: #6B4EE6;
    background-color: #6B4EE6;
}

.question-option.correct {
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.05);
}

.question-option.incorrect {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}

.option-indicator {
    transition: all 0.2s ease;
}

/* Progress Circle Animation */
#progress-circle {
    transition: stroke-dashoffset 0.7s ease-out;
}

/* Question List Item */
.question-list-item {
    transition: all 0.2s ease;
}

.question-list-item:hover {
    background-color: rgba(107, 78, 230, 0.05);
}

.question-list-item.active {
    background-color: rgba(107, 78, 230, 0.1);
    border-color: #6B4EE6;
}

/* Modal Animation */
#free-limit-modal {
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Timer Pulse */
.timer-active {
    animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Bookmark Active State */
.bookmarked {
    color: #6B4EE6;
}

.bookmarked svg {
    fill: #6B4EE6;
}

/* Flag Active State */
.flagged {
    color: #f59e0b;
}

.flagged svg {
    fill: #f59e0b;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .question-text {
        font-size: 1.125rem;
    }
}

/* Loading State */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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