/* ============================================
   LicensePrep.ai - Public Site Styles
   Color Scheme: Navy Blue & Yellow
   ============================================ */

/* CSS Variables */
:root {
    --color-primary: #1e3a5f;       /* Navy blue */
    --color-primary-dark: #152a45;  /* Darker navy */
    --color-primary-light: #2d4a6f; /* Lighter navy */
    --color-accent: #f5b800;        /* Yellow/gold */
    --color-accent-dark: #d9a400;   /* Darker yellow */
    --color-accent-light: #ffc61a;  /* Lighter yellow */

    --color-text: #1f2937;          /* Dark gray */
    --color-text-light: #6b7280;    /* Medium gray */
    --color-text-muted: #9ca3af;    /* Light gray */

    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-dark: #f1f5f9;

    --color-border: #e2e8f0;
    --color-success: #10b981;
    --color-error: #ef4444;

    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-size-base: 16px;
    --line-height: 1.7;

    --max-width: 1200px;
    --content-width: 800px;
    --spacing: 1rem;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height);
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-primary-light);
}

/* ============================================
   Header & Navigation
   ============================================ */

.site-header {
    background: var(--color-primary);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo:hover {
    color: var(--color-accent);
}

.logo-icon {
    color: var(--color-accent);
    font-size: 1.75rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: rgba(255,255,255,0.9);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.2s;
}

.nav-link:hover {
    color: white;
    background: var(--color-primary-light);
}

.nav-link.active {
    background: var(--color-primary-dark);
    color: white;
}

.btn-nav {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    margin-left: 0.5rem;
}

.btn-nav:hover {
    background: var(--color-accent-light);
    color: var(--color-primary-dark);
}

/* Auth navigation containers */
#guestNav, #authNav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Mobile menu toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--color-primary);
        flex-direction: column;
        padding: 1rem;
        gap: 0.25rem;
        border-top: 1px solid var(--color-primary-light);
    }

    .main-nav.open {
        display: flex;
    }

    .nav-link, .btn-nav {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }

    .btn-nav {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    #guestNav, #authNav {
        flex-direction: column;
        width: 100%;
    }
}

/* ============================================
   Main Content
   ============================================ */

.main-content {
    flex: 1;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

.content-narrow {
    max-width: var(--content-width);
    margin: 0 auto;
}

/* ============================================
   Exam Article Page
   ============================================ */

.exam-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 3rem 0;
}

.exam-hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.exam-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.exam-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    opacity: 0.9;
}

.exam-meta-item strong {
    color: var(--color-accent);
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    margin: 0 0.5rem;
}

/* Article Content */
.article-wrapper {
    padding: 3rem 0;
}

.article-content {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.article-content h2 {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin: 2.5rem 0 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.article-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-content h3 {
    font-size: 1.35rem;
    color: var(--color-primary);
    margin: 2rem 0 0.75rem 0;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content strong {
    color: var(--color-primary);
}

.article-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-underline-offset: 2px;
}

.article-content a:hover {
    color: var(--color-accent-dark);
}

.article-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--color-text-light);
}

/* Sidebar */
.exam-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

.exam-sidebar {
    position: sticky;
    top: 80px;
}

@media (max-width: 1024px) {
    .exam-layout {
        grid-template-columns: 1fr;
    }

    .exam-sidebar {
        order: -1;
        position: static !important; /* Remove sticky on mobile - was causing overlay issues */
    }
}

.sidebar-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-card h3 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-accent);
}

.quick-facts {
    list-style: none;
    padding: 0;
}

.quick-facts li {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--color-border);
}

.quick-facts li:last-child {
    border-bottom: none;
}

.quick-facts .label {
    color: var(--color-text-light);
}

.quick-facts .value {
    font-weight: 600;
    color: var(--color-primary);
}

/* CTA Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

.btn-primary:hover {
    background: var(--color-accent-light);
    color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--color-primary);
    color: white;
}

.btn-secondary:hover {
    background: var(--color-primary-light);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.cta-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Sidebar Links (for Official Resources etc.) */
.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    margin-bottom: 0.625rem;
}

.sidebar-links li:last-child {
    margin-bottom: 0;
}

.sidebar-links a {
    color: var(--color-primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: color 0.2s;
}

.sidebar-links li:last-child a {
    border-bottom: none;
}

.sidebar-links a:hover {
    color: var(--color-accent-dark);
}

.sidebar-links a i {
    color: var(--color-accent);
    width: 1rem;
    text-align: center;
}

.sidebar-links a {
    flex-wrap: wrap;
}

.related-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    margin-left: auto;
}

.related-badge.required {
    background: #fef2f2;
    color: #dc2626;
}

.related-badge.recommended {
    background: #eff6ff;
    color: #2563eb;
}

.related-note {
    display: block;
    width: 100%;
    font-size: 0.8rem;
    color: var(--color-text-light);
    padding-left: 1.5rem;
    margin-top: -0.25rem;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--color-accent);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
}

.footer-bottom a:hover {
    color: white;
}

/* ============================================
   Homepage
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .exam-hero h1 {
        font-size: 1.75rem;
    }
}

/* Category Cards */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 2.5rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.category-icon i {
    color: var(--color-accent);
}

.category-card h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Exam Cards (Browse) */
.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.exam-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.exam-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.exam-card h3 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.exam-card .excerpt {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex: 1;
}

.exam-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.exam-card .btn {
    margin-top: auto;
}

/* ============================================
   Utilities
   ============================================ */

.text-center { text-align: center; }
.text-muted { color: var(--color-text-light); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ============================================
   Reviews Section
   ============================================ */

.reviews-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-border);
}

.reviews-section h2 {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

/* Review Stats */
.review-stats {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
}

.review-average {
    text-align: center;
    min-width: 120px;
}

.average-rating {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stars-display {
    margin: 0.5rem 0;
}

.total-reviews {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.rating-bars {
    flex: 1;
    max-width: 300px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.rating-label {
    width: 50px;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.rating-bar {
    flex: 1;
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: var(--color-accent);
    border-radius: 4px;
    transition: width 0.3s;
}

.rating-count {
    width: 24px;
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-align: right;
}

/* Star Display */
.star {
    color: var(--color-border);
    font-size: 1.2rem;
}

.star.filled {
    color: var(--color-accent);
}

/* Reviews List */
.reviews-list {
    margin-bottom: 2rem;
}

.no-reviews {
    color: var(--color-text-light);
    font-style: italic;
    padding: 1rem 0;
}

.review-card {
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    background: white;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.review-rating .star {
    font-size: 1rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.review-author {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.review-text {
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

/* Submit Review Form */
.submit-review {
    padding: 1.5rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
}

.submit-review h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.submit-review .form-group {
    margin-bottom: 1rem;
}

.submit-review label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.submit-review input[type="text"],
.submit-review input[type="email"],
.submit-review textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.submit-review input:focus,
.submit-review textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.submit-review small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    gap: 0.25rem;
}

.star-rating-input .star {
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
}

.star-rating-input .star:hover,
.star-rating-input .star.hover {
    color: var(--color-accent-light);
    transform: scale(1.1);
}

.star-rating-input .star.selected {
    color: var(--color-accent);
}

/* Review Message */
.review-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.review-message:empty {
    display: none;
}

.review-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.review-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .review-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .review-average {
        display: flex;
        align-items: center;
        gap: 1rem;
        min-width: auto;
    }

    .rating-bars {
        width: 100%;
        max-width: none;
    }
}

/* ============================================
   Page Hero (Simpler variant for index pages)
   ============================================ */

.page-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 2.5rem 0;
}

.page-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
}

.page-hero .breadcrumb {
    margin-bottom: 1rem;
}

/* ============================================
   States Grid
   ============================================ */

.state-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
}

.state-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.2s;
    border: 2px solid transparent;
    text-decoration: none;
}

.state-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.state-abbr {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.state-card h3 {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.state-card .exam-count {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ============================================
   Books Grid
   ============================================ */

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.book-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    border: 2px solid transparent;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.book-icon {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.book-card h3 {
    font-size: 1.05rem;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.book-edition {
    font-size: 0.9rem;
    color: var(--color-text);
    margin: 0;
}

.book-publisher {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0.25rem 0 0 0;
}

.book-description {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin: 0.5rem 0 0 0;
    line-height: 1.5;
}

.book-about {
    margin-bottom: 2rem;
}

.book-about p {
    color: var(--color-text-light);
    line-height: 1.7;
}

.book-meta {
    margin-top: auto;
    padding-top: 0.75rem;
}

.book-meta .exam-count {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ============================================
   Category Sections
   ============================================ */

.category-section {
    margin-bottom: 3rem;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-title i {
    color: var(--color-accent);
}

/* ============================================
   Exam List (for book detail)
   ============================================ */

.exam-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.exam-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--color-border);
}

.exam-list-item:hover {
    background: white;
    border-color: var(--color-accent);
    box-shadow: var(--shadow);
}

.exam-list-info {
    flex: 1;
}

.exam-list-info h3 {
    font-size: 1rem;
    color: var(--color-primary);
    margin: 0 0 0.25rem 0;
}

.region-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(30, 58, 95, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.exam-list-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.exam-list-item i.fa-chevron-right {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

/* ============================================
   Empty States
   ============================================ */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-light);
}

.empty-state i {
    font-size: 4rem;
    color: var(--color-border);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

.empty-state-inline {
    padding: 2rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    text-align: center;
}

.empty-state-inline p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

/* ============================================
   Info Card
   ============================================ */

.info-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.info-card p {
    margin-bottom: 1rem;
}

.info-card p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Sidebar Link Text (non-link version)
   ============================================ */

.sidebar-link-text {
    color: var(--color-text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.sidebar-links li:last-child .sidebar-link-text {
    border-bottom: none;
}

.sidebar-link-text i {
    color: var(--color-accent);
    width: 1rem;
    text-align: center;
}

/* ============================================
   Background Alt Section
   ============================================ */

.bg-alt {
    background: var(--color-bg-alt);
}

/* Book short name in hero */
.book-short-name {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .site-header,
    .site-footer,
    .exam-sidebar,
    .btn {
        display: none !important;
    }

    .exam-layout {
        grid-template-columns: 1fr;
    }

    .article-content {
        box-shadow: none;
        padding: 0;
    }
}
