/* ========== CSS VARIABLES ========== */
:root {
    --primary: #0284C7;
    --primary-dark: #0369a1;
    --primary-light: #e0f2fe;
    --primary-lighter: #f0f9ff;
    --white: #ffffff;
    --black: #0b1e2e;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-primary: 0 8px 20px rgba(2, 132, 199, 0.12);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-fast: 0.15s ease;
    --transition: 0.25s ease;
    --transition-slow: 0.35s ease;
    --max-width: 1400px;
    --content-max-width: 800px;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.floating-actions {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    display: flex;
    gap: 0.75rem;
    z-index: 140;
}

.floating-btn {
    border: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--primary);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
}

.floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(2, 132, 199, 0.18);
}

.back-btn {
    background: var(--gray-800);
}

.scroll-btn {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

.scroll-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .floating-actions {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        justify-content: space-between;
    }

    .floating-btn span {
        display: none;
    }

    .floating-btn {
        padding: 0.75rem;
    }
}

/* ========== HEADER / NAVBAR ========== */
.navbar {
    background: var(--white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    padding: 0.6rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow var(--transition);
    border-bottom: 1px solid rgba(2, 132, 199, 0.08);
}

.navbar:hover {
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.10);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
}

/* ----- Logo ----- */
.logo-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--black);
    font-weight: 700;
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    letter-spacing: -0.4px;
    transition: transform 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-brand:hover {
    transform: translateY(-1px);
}

.logo-brand .qa {
    background-color: var(--primary);
    padding: 5px 8px;
    border-radius: 5px;
    color: var(--primary-light);
    font-size: 0.9em;
}

.logo-brand .quick {
    color: var(--black);
}

.logo-brand .answer {
    color: var(--primary);
    margin-left: -6px;
}

/* ----- Desktop Nav Links ----- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-800);
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    border-radius: 60px;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.nav-links a i {
    font-size: 0.9rem;
    color: var(--gray-600);
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-links a:hover i {
    color: var(--primary);
}

/* ----- Category Dropdown ----- */
.dropdown {
    position: relative;
}

.dropdown > a {
    cursor: pointer;
}

.dropdown > a .dropdown-arrow {
    font-size: 0.65rem;
    margin-left: 4px;
    transition: transform var(--transition);
}

.dropdown.open > a .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    padding: 0.7rem 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.1);
    border: 1px solid rgba(2, 132, 199, 0.06);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    z-index: 200;
}

.dropdown.open .dropdown-menu,
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0px);
}

.dropdown-menu a {
    padding: 0.5rem 1.4rem;
    border-radius: 0;
    color: var(--gray-800);
    font-weight: 450;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
    display: block;
}

.dropdown-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-left: 3px solid var(--primary);
    border-radius: 0;
}

/* ----- Desktop Search + Create Post ----- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: 60px;
    padding: 0.25rem 0.25rem 0.25rem 1rem;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.search-wrapper:focus-within {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.search-wrapper input {
    border: none;
    background: transparent;
    padding: 0.3rem 0.2rem;
    font-size: 0.9rem;
    outline: none;
    width: 140px;
    transition: width 0.2s;
    color: var(--black);
    font-family: inherit;
}

.search-wrapper input::placeholder {
    color: var(--gray-400);
}

.search-wrapper input:focus {
    width: 180px;
    border: none;
    outline: none;
    box-shadow: none;
}

.search-wrapper button {
    background: var(--primary);
    border: none;
    color: white;
    border-radius: 60px;
    padding: 0.45rem 0.8rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-wrapper button:hover {
    background: var(--primary-dark);
    transform: scale(0.96);
}

.create-btn {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 60px !important;
    font-weight: 600;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.create-btn:hover {
    background: var(--primary-dark) !important;
    transform: scale(0.96);
    color: white !important;
}

/* ----- Mobile Elements ----- */
.mobile-actions {
    display: none;
    align-items: center;
    gap: 0.6rem;
}

.mobile-nav-toggle {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--black);
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-toggle:hover {
    color: var(--primary);
    transform: rotate(4deg);
}

/* Mobile Menu Drawer */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--white);
    padding: 1.2rem 1.5rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.04);
    margin-top: 0.6rem;
    gap: 0.5rem;
    border-top: 1px solid var(--gray-200);
    animation: fadeSlide 0.28s ease;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--gray-800);
    font-weight: 500;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-menu a i {
    width: 1.6rem;
    color: var(--gray-600);
    transition: color var(--transition-fast);
}

.mobile-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.mobile-menu a:hover i {
    color: var(--primary);
}

.mobile-category-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    background: transparent;
    border: none;
    color: var(--gray-800);
    font-weight: 500;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
    font-family: inherit;
    width: 100%;
    text-align: left;
}

.mobile-category-toggle:hover,
.mobile-category-toggle:focus-visible {
    background: var(--primary-light);
    color: var(--primary);
    outline: none;
}

.mobile-category-toggle i:first-child {
    color: var(--gray-600);
    transition: color var(--transition-fast);
}

.mobile-category-toggle:hover i:first-child {
    color: var(--primary);
}

.mobile-category-toggle i:last-child {
    color: var(--gray-600);
    transition: transform var(--transition-fast);
    margin-left: auto;
}

.mobile-category-toggle[aria-expanded="true"] i:last-child {
    transform: rotate(180deg);
}

.mobile-sub {
    padding-left: 1.8rem;
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    border-left: 2px solid var(--gray-200);
    margin-left: 0.8rem;
}

.mobile-sub.open {
    display: flex;
    animation: fadeSlide 0.2s ease;
}

.mobile-sub a {
    font-weight: 400;
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
}

.create-btn-mobile {
    background: var(--primary);
    color: white !important;
    justify-content: center;
    margin-top: 0.3rem;
}

.create-btn-mobile i {
    color: white !important;
}

.create-btn-mobile:hover {
    background: var(--primary-dark) !important;
}

@keyframes fadeSlide {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ========== MAIN ARTICLE ========== */
.article-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    width: 100%;
    flex: 1;
}

/* ----- Breadcrumb ----- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--gray-500);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb i {
    font-size: 0.7rem;
    color: var(--gray-400);
}

.breadcrumb span {
    color: var(--gray-700);
    font-weight: 500;
}

/* ----- Article Header ----- */
.article-header {
    margin-bottom: 2rem;
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 600;
}

.category-badge i {
    font-size: 0.8rem;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 600;
}

.featured-badge i {
    font-size: 0.75rem;
}

.article-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--black);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.95rem;
}

.author-bio {
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.4;
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.article-stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-stats i {
    color: var(--gray-400);
    font-size: 0.85rem;
}

/* ----- Snippet Box ----- */
.snippet-box {
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--primary-light) 100%);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.snippet-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.snippet-header i {
    font-size: 1rem;
}

.snippet-text {
    color: var(--gray-700);
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 500;
}

/* ----- Article Content ----- */
.article-content {
    margin-bottom: 2.5rem;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
    scroll-margin-top: 100px;
}

.article-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 2rem 0 0.75rem;
    scroll-margin-top: 100px;
}

.article-content p {
    color: var(--gray-700);
    margin-bottom: 1.25rem;
    line-height: 1.8;
    font-size: 1rem;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.5rem 1.5rem;
    color: var(--gray-700);
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content li {
    margin-bottom: 0.6rem;
    line-height: 1.7;
    padding-left: 0.5rem;
}

.article-content li::marker {
    color: var(--primary);
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: var(--white);
}

.article-content thead {
    background: var(--primary-light);
}

.article-content th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary);
    white-space: nowrap;
}

.article-content td {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
    vertical-align: top;
}

.article-content tbody tr:hover {
    background: var(--gray-50);
}

.article-content tbody tr:last-child td {
    border-bottom: none;
}

/* Blockquote */
.article-content blockquote {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid var(--warning);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    position: relative;
}

.article-content blockquote i {
    color: var(--warning);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.article-content blockquote p {
    margin: 0;
    color: var(--gray-800);
    font-style: italic;
    font-weight: 500;
}

/* ----- Tags Section ----- */
.tags-section {
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.tags-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tags-section h4 i {
    color: var(--primary);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 0.4rem 1rem;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.tag:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateY(-1px);
}

/* ----- Share Section ----- */
.share-section {
    margin-bottom: 2rem;
}

.share-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.share-section h4 i {
    color: var(--primary);
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.facebook {
    background: #4267B2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.copy {
    background: var(--gray-600);
}

.share-btn.copy:hover {
    background: var(--primary);
}

/* ----- Author Box ----- */
.author-box {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-sm);
}

.author-avatar-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.author-box-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.author-box-content p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--primary-light);
    border-top: 1px solid rgba(2, 132, 199, 0.08);
    padding: 2.5rem 2rem 1.8rem;
    margin-top: auto;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.02);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1.2fr;
    gap: 2.5rem;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1.2rem;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col h4 i {
    color: var(--primary);
}

.footer-col p,
.footer-col a {
    color: var(--gray-700);
    line-height: 1.7;
    font-size: 0.95rem;
    text-decoration: none;
    display: block;
    transition: all var(--transition-fast);
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.footer-logo i {
    color: var(--primary);
    font-size: 2rem;
}

.footer-logo span {
    color: var(--primary);
}

.footer-description {
    margin-top: 0.4rem;
    max-width: 260px;
    color: var(--gray-600);
}

.footer-location {
    margin-top: 0.8rem;
    color: var(--gray-500);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-location i {
    color: var(--primary);
}

.footer-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 1rem;
}

.footer-categories a {
    width: auto;
    padding: 0.1rem 0;
}

.footer-contact a {
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact i {
    width: 1.4rem;
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    margin-top: 2.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid #eef2f6;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.footer-bottom i {
    color: var(--primary);
    font-size: 0.8rem;
}

/* ========== TOAST NOTIFICATION ========== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gray-800);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transform: translateY(120px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.1);
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast i {
    color: var(--success);
    font-size: 1.1rem;
}

/* ========== RESPONSIVE ========== */
@media screen and (max-width: 1120px) {
    .nav-links,
    .nav-actions {
        display: none;
    }
    .mobile-actions {
        display: flex;
    }
    .navbar {
        padding: 0.5rem 1rem;
    }
    .mobile-menu.open {
        display: flex;
    }
    .search-wrapper input {
        width: 100px;
    }
    .search-wrapper input:focus {
        width: 130px;
    }
}

@media screen and (max-width: 768px) {
    .article-container {
        padding: 1.5rem 1rem 2rem;
    }
    .article-meta {
        gap: 0.75rem;
    }
    .article-stats {
        gap: 0.75rem;
    }
    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .snippet-box {
        padding: 1.25rem;
    }
    .snippet-text {
        font-size: 1rem;
    }
    .article-content h2 {
        font-size: 1.3rem;
    }
    .article-content h3 {
        font-size: 1.1rem;
    }
    .article-content table {
        font-size: 0.85rem;
    }
    .article-content th,
    .article-content td {
        padding: 0.75rem;
    }
}

@media screen and (max-width: 700px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
    .footer-col {
        text-align: left;
    }
    .footer-description {
        max-width: 100%;
    }
    .footer-categories {
        flex-direction: column;
        gap: 0.2rem;
    }
    .footer-contact a {
        justify-content: flex-start;
    }
}

@media screen and (max-width: 480px) {
    .logo-brand {
        font-size: 1rem;
        gap: 0.3rem;
        white-space: nowrap;
    }
    .logo-brand .qa {
        padding: 3px 6px;
        font-size: 0.8em;
    }
    .mobile-actions .search-wrapper {
        height: 36px;
    }
    .mobile-actions .search-wrapper input {
        width: 70px;
        font-size: 0.8rem;
    }
    .mobile-actions .search-wrapper input:focus {
        width: 90px;
    }
    .mobile-actions .search-wrapper button {
        padding: 0.3rem 0.6rem;
    }
    .mobile-nav-toggle i {
        font-size: 1.4rem;
    }
    .article-title {
        font-size: 1.6rem;
    }
    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        justify-content: center;
    }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: var(--primary-light);
    color: var(--primary-dark);
}
