/* FreakLabs News Hub - Main Styles */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.header-left {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo svg {
    width: 22px;
    height: 22px;
    color: var(--accent-primary);
}

.header-center {
    flex: 1;
    max-width: 480px;
}

.search-form {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 8px 16px 8px 40px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.2s;
    outline: none;
}

.search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Theme Dropdown */
.theme-dropdown {
    position: relative;
}

.theme-dropdown-toggle {
    height: 32px;
    padding: 0 8px 0 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
    transition: all 0.2s;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
}

.theme-dropdown-toggle:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.theme-dropdown-toggle svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.theme-chevron {
    transition: transform 0.2s;
}

.theme-dropdown.open .theme-chevron {
    transform: rotate(180deg);
}

.theme-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    padding: 4px;
    min-width: 170px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.15s;
}

.theme-dropdown.open .theme-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.1s;
    text-align: left;
    font-family: inherit;
}

.theme-option:hover {
    background: var(--bg-pill-hover);
    color: var(--text-primary);
}

.theme-option.active {
    color: var(--accent-primary);
    font-weight: 600;
}

.theme-option-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.theme-option-check {
    margin-left: auto;
    width: 14px;
    height: 14px;
    color: var(--accent-primary);
    display: none;
}

.theme-option.active .theme-option-check {
    display: block;
}

.article-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ===== Category Nav ===== */
.category-nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    gap: 0.5rem;
}

.cat-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.825rem;
    font-weight: 500;
    white-space: nowrap;
    color: var(--text-secondary);
    background: var(--bg-pill);
    border: 1px solid var(--border-primary);
    transition: all 0.2s;
}

.cat-pill svg {
    width: 14px;
    height: 14px;
}

.cat-pill:hover {
    background: var(--bg-pill-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.cat-pill.active {
    background: var(--cat-color, var(--accent-primary));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--cat-color, var(--accent-primary)) 40%, transparent);
}

/* ===== Main Content ===== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    min-height: calc(100vh - 200px);
}

/* Search Results Header */
.search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-primary);
}

.search-results-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.clear-search {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--bg-pill);
    transition: all 0.2s;
}

.clear-search:hover {
    background: var(--bg-pill-hover);
    color: var(--text-primary);
}

.clear-search svg {
    width: 14px;
    height: 14px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

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

/* ===== Hero Article ===== */
.article-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    cursor: pointer;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.hero-image {
    position: absolute;
    inset: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image.no-image {
    background: var(--gradient-hero);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    width: 100%;
}

.article-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--cat-color, var(--accent-primary));
    color: #fff;
    margin-bottom: 0.75rem;
}

.article-badge svg {
    width: 12px;
    height: 12px;
}

.article-badge.small {
    font-size: 0.7rem;
    padding: 2px 8px;
}

.article-badge.small svg {
    display: none;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero-excerpt {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
    margin-bottom: 1rem;
    max-width: 700px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.meta-source {
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

/* ===== Article Grid ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-color);
    border-color: var(--border-hover);
}

.card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .card-image img {
    transform: scale(1.05);
}

.card-body {
    padding: 1rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.card-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
}

.card-source {
    font-weight: 600;
    color: var(--text-secondary);
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding: 1.5rem 0;
}

.page-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    transition: all 0.2s;
}

.page-btn:hover {
    background: var(--bg-pill-hover);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.page-btn svg {
    width: 16px;
    height: 16px;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.page-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.page-num:hover {
    background: var(--bg-pill-hover);
    color: var(--text-primary);
}

.page-num.active {
    background: var(--accent-primary);
    color: #fff;
}

.page-dots {
    color: var(--text-muted);
    padding: 0 0.25rem;
}

/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid var(--border-primary);
    margin-top: 2rem;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header-inner {
        height: auto;
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .header-center {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }

    .article-count {
        display: none;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .article-hero {
        min-height: 280px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .hero-excerpt {
        display: none;
    }

    .category-nav-inner {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
    }

    .hero-content {
        padding: 1.25rem;
    }

    .card-image {
        height: 150px;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.article-card {
    animation: fadeIn 0.4s ease forwards;
}

.articles-grid .article-card:nth-child(1) { animation-delay: 0.05s; }
.articles-grid .article-card:nth-child(2) { animation-delay: 0.1s; }
.articles-grid .article-card:nth-child(3) { animation-delay: 0.15s; }
.articles-grid .article-card:nth-child(4) { animation-delay: 0.2s; }
.articles-grid .article-card:nth-child(5) { animation-delay: 0.25s; }
.articles-grid .article-card:nth-child(6) { animation-delay: 0.3s; }

/* ===== Current Events Landing ===== */
.events-landing {
    padding-top: 0.5rem;
}

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

.events-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.02em;
}

.events-title svg {
    width: 24px;
    height: 24px;
    color: #f97316;
}

.events-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.event-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1rem;
}

.event-topic-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 14px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.event-topic-card:hover {
    border-color: #f97316;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.event-topic-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.event-topic-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(249, 115, 22, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-topic-icon svg {
    width: 18px;
    height: 18px;
    color: #f97316;
}

.event-topic-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-pill);
    padding: 3px 10px;
    border-radius: 12px;
}

.event-topic-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.event-topic-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
}

.kw-pill {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 6px;
    background: var(--bg-pill);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
}

.kw-or {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 2px;
}

.kw-group {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 6px;
    background: var(--bg-pill);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
}

.event-topic-latest {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
    padding-top: 0.4rem;
    border-top: 1px solid var(--border-subtle);
}

.event-topic-latest svg {
    margin-top: 1px;
}

.event-topic-arrow {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--border-primary);
    transition: color 0.2s, transform 0.2s;
}

.event-topic-card:hover .event-topic-arrow {
    color: #f97316;
    transform: translateY(-50%) translateX(3px);
}

.event-topic-arrow svg {
    width: 20px;
    height: 20px;
}

/* ===== Event Drilldown Header ===== */
.event-drilldown-header {
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.15s;
    margin-bottom: 0.75rem;
}

.back-link:hover {
    background: var(--bg-pill);
    color: var(--accent-primary);
}

.back-link svg {
    width: 16px;
    height: 16px;
}

.event-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.event-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.event-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.event-keywords-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
    padding-top: 0.3rem;
}

@media (max-width: 768px) {
    .event-topics-grid {
        grid-template-columns: 1fr;
    }

    .event-topic-arrow {
        display: none;
    }

    .event-title-row {
        flex-direction: column;
    }
}

/* ===== View Toggle & Auth Header ===== */
.view-toggle {
    display: flex;
    background: var(--bg-pill);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.view-tab {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.view-tab svg { width: 14px; height: 14px; }

.view-tab:hover { color: var(--text-primary); }

.view-tab.active {
    background: var(--accent-primary);
    color: #fff;
}

.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: var(--text-muted);
    transition: all 0.15s;
}

.header-btn:hover {
    background: var(--bg-pill);
    color: var(--text-primary);
}

.header-btn svg { width: 18px; height: 18px; }

.header-btn-text {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s;
}

.header-btn-text:hover { color: var(--text-primary); background: var(--bg-pill); }

.header-btn-primary {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--accent-primary);
    color: #fff;
    text-decoration: none;
    transition: all 0.15s;
}

.header-btn-primary:hover { opacity: 0.9; }

/* ===== Auth Pages ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-primary);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 2.5rem;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.auth-logo svg { width: 24px; height: 24px; color: var(--accent-primary); }

.auth-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.auth-error svg { width: 16px; height: 16px; flex-shrink: 0; }

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

.auth-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.15s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.auth-btn {
    width: 100%;
    padding: 0.7rem;
    background: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
    font-family: inherit;
    margin-top: 0.5rem;
}

.auth-btn:hover { opacity: 0.9; }

.auth-switch {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 1.25rem;
}

.auth-switch a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .view-toggle { display: none; }
    .header-btn-text, .header-btn-primary { font-size: 0.75rem; padding: 5px 10px; }
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
