/* ============================================
   APUSH Prep Hub - Global Styles
   ============================================ */

/* CSS Variables for Theme */
:root {
    --primary-navy: #1e3c72;
    --secondary-navy: #2a5298;
    --light-gray: #f5f7fa;
    --medium-gray: #e9ecef;
    --gold: #d4af37;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-navy: #2a5298;
    --secondary-navy: #3d6bb3;
    --light-gray: #1a1a2e;
    --medium-gray: #16213e;
    --white: #0f1419;
    --text-dark: #e9ecef;
    --text-light: #adb5bd;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.5);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-gray);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-navy);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--secondary-navy);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* Header & Navigation */
header {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

[data-theme="dark"] header {
    background: var(--medium-gray);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="dark"] .logo {
    color: var(--gold);
}

.logo::before {
    content: "📚";
    font-size: 1.75rem;
}

nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    transition: var(--transition);
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary-navy);
    color: var(--white);
    text-decoration: none;
}

[data-theme="dark"] .nav-links a {
    color: var(--text-dark);
}

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
    background: var(--secondary-navy);
    color: var(--white);
}

/* Dark Mode Toggle */
.theme-toggle {
    background: var(--medium-gray);
    border: 2px solid var(--primary-navy);
    color: var(--text-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

[data-theme="dark"] .theme-toggle {
    background: var(--white);
    border-color: var(--gold);
}

.theme-toggle:hover {
    background: var(--primary-navy);
    color: var(--white);
    transform: scale(1.05);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-navy);
    border-radius: 3px;
    transition: var(--transition);
}

[data-theme="dark"] .hamburger span {
    background: var(--text-dark);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 15px;
    margin: 2rem auto;
    box-shadow: 0 10px 30px var(--shadow-lg);
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--gold);
    color: var(--primary-navy);
}

.btn-primary:hover {
    background: #c19d2e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-navy);
    text-decoration: none;
}

/* Countdown Timer */
.countdown-container {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    margin: 3rem auto;
    text-align: center;
}

[data-theme="dark"] .countdown-container {
    background: var(--medium-gray);
}

.countdown-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-navy);
}

[data-theme="dark"] .countdown-title {
    color: var(--gold);
}

.countdown-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.countdown-unit {
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-navy));
    color: var(--white);
    padding: 2rem 1rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
}

.countdown-unit:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-lg);
}

.countdown-value {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.motivational-text {
    font-size: 1.25rem;
    color: var(--gold);
    font-weight: 600;
    margin-top: 1rem;
    animation: pulse 2s infinite;
}

/* Cards & Grids */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

[data-theme="dark"] .card {
    background: var(--medium-gray);
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-lg);
}

.card h3 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

[data-theme="dark"] .card h3 {
    color: var(--gold);
}

/* Progress Dashboard */
.progress-dashboard {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-lg);
    width: 250px;
    z-index: 100;
    transition: var(--transition);
}

[data-theme="dark"] .progress-dashboard {
    background: var(--medium-gray);
}

.progress-dashboard h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-navy);
    text-align: center;
}

[data-theme="dark"] .progress-dashboard h3 {
    color: var(--gold);
}

.progress-stat {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--medium-gray);
}

.progress-stat:last-child {
    border-bottom: none;
}

.progress-stat span:last-child {
    font-weight: 600;
    color: var(--gold);
}

/* Footer */
footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;
}

[data-theme="dark"] footer {
    background: var(--medium-gray);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--gold);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    margin-top: 2rem;
}

/* Tips Carousel */
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    background: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

[data-theme="dark"] .carousel-slide {
    background: var(--medium-gray);
}

.carousel-slide h3 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

[data-theme="dark"] .carousel-slide h3 {
    color: var(--gold);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.carousel-btn {
    background: var(--primary-navy);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--secondary-navy);
    transform: scale(1.05);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--medium-gray);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--gold);
    transform: scale(1.2);
}

/* Search Bar */
.search-bar {
    width: 100%;
    max-width: 500px;
    margin: 2rem auto;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--medium-gray);
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--text-dark);
}

[data-theme="dark"] .search-bar input {
    background: var(--medium-gray);
    border-color: var(--primary-navy);
    color: var(--text-dark);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.search-bar::before {
    content: "🔍";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
}

/* Select/Dropdown Styling */
select {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--primary-navy);
    border-radius: 10px;
    color: var(--text-dark);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

[data-theme="dark"] select {
    background: var(--medium-gray);
    border-color: var(--gold);
    color: var(--text-dark);
}

select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

[data-theme="dark"] select option {
    background: var(--medium-gray);
    color: var(--text-dark);
}

/* Flashcard Controls */
.flashcard-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    align-items: center;
    justify-content: center;
}

/* Flashcards */
.flashcard-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.flashcard-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flashcard {
    perspective: 1000px;
    height: 280px;
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flashcard.flipped .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px var(--shadow);
    background: var(--white);
}

[data-theme="dark"] .flashcard-front {
    background: var(--medium-gray);
}

.flashcard-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-navy));
    color: var(--white);
}

.flashcard-front h3 {
    color: var(--primary-navy);
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .flashcard-front h3 {
    color: var(--gold);
}

.flashcard-front p {
    color: var(--text-light);
    text-align: center;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.flashcard-back p {
    color: var(--white);
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
}

.flashcard-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    width: 100%;
}

.flashcard-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    font-weight: 600;
}

.flashcard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.btn-known {
    background: #28a745;
    color: var(--white);
    flex: 1;
}

.btn-known:hover {
    background: #218838;
}

.btn-unknown {
    background: #dc3545;
    color: var(--white);
    flex: 1;
}

.btn-unknown:hover {
    background: #c82333;
}

.flashcard-wrapper.known .flashcard {
    opacity: 0.6;
}

.flashcard-wrapper.known .btn-known {
    background: #1e7e34;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
}

/* Quiz Styles */
.quiz-container {
    max-width: 800px;
    margin: 2rem auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
}

[data-theme="dark"] .quiz-container {
    background: var(--medium-gray);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--medium-gray);
}

.timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.question {
    margin-bottom: 2rem;
}

.question h3 {
    margin-bottom: 1rem;
    color: var(--primary-navy);
}

[data-theme="dark"] .question h3 {
    color: var(--gold);
}

.options {
    list-style: none;
}

.option {
    background: var(--light-gray);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

[data-theme="dark"] .option {
    background: var(--white);
}

.option:hover {
    background: var(--medium-gray);
    border-color: var(--gold);
}

.option.selected {
    background: var(--primary-navy);
    color: var(--white);
    border-color: var(--gold);
}

.option.correct {
    background: #28a745;
    color: var(--white);
}

.option.incorrect {
    background: #dc3545;
    color: var(--white);
}

.explanation {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 10px;
    border-left: 4px solid var(--gold);
}

[data-theme="dark"] .explanation {
    background: var(--white);
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-navy);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
}

[data-theme="dark"] .timeline-item {
    background: var(--medium-gray);
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
    top: 2rem;
    border: 4px solid var(--white);
}

[data-theme="dark"] .timeline-item::before {
    border-color: var(--medium-gray);
}

.timeline-item:nth-child(odd)::before {
    right: -10px;
}

.timeline-item:nth-child(even)::before {
    left: -10px;
}

/* Accordion */
.accordion {
    margin: 2rem 0;
}

.accordion-item {
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px var(--shadow);
    overflow: hidden;
}

[data-theme="dark"] .accordion-item {
    background: var(--medium-gray);
}

.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    background: var(--light-gray);
}

[data-theme="dark"] .accordion-header {
    background: var(--white);
}

.accordion-header:hover {
    background: var(--medium-gray);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding: 1.5rem;
}

.accordion-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-toggle {
    transform: rotate(180deg);
}

/* Chapter Grid */
.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.chapter-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

[data-theme="dark"] .chapter-card {
    background: var(--medium-gray);
}

.chapter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-lg);
    border-color: var(--gold);
}

.chapter-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-navy);
}

[data-theme="dark"] .chapter-card h3 {
    color: var(--gold);
}

.chapter-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.chapter-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.chapter-link {
    padding: 0.5rem 1rem;
    background: var(--primary-navy);
    color: var(--white);
    border-radius: 5px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.chapter-link:hover {
    background: var(--gold);
    color: var(--primary-navy);
    text-decoration: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes confetti {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 2rem;
        box-shadow: 0 5px 15px var(--shadow);
        transition: left 0.3s ease;
        z-index: 999;
        gap: 1rem;
    }

    [data-theme="dark"] .nav-links {
        background: var(--medium-gray);
    }

    .nav-links.active {
        left: 0;
    }

    .theme-toggle {
        margin-top: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .countdown-display {
        grid-template-columns: repeat(2, 1fr);
    }

    .countdown-value {
        font-size: 2rem;
    }

    .progress-dashboard {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin: 2rem 0;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 3rem !important;
        padding-right: 1rem !important;
    }

    .timeline-item::before {
        left: 10px !important;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .countdown-display {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .chapter-grid,
    .flashcard-container {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .flashcard-actions {
        flex-direction: row;
    }

    .flashcard-btn {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-navy);
    color: var(--white);
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

*:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

