/* ============================================================================
   DARON BLOG - READABILITY-FOCUSED REDESIGN
   ============================================================================
   Split Panel Design:
     - Left Sidebar: Dark slate for navigation
     - Right Content: Warm white for optimal reading
   
   Color Palette:
     Sidebar: #0f172a → #1e293b (slate gradient)
     Content: #faf8f5 (warm white)
     Text: #1f2937 (charcoal)
     Accent: #c2715b (terracotta)
   
   Typography:
     Headings: Playfair Display
     Body: Inter
     Code: JetBrains Mono
   ============================================================================ */

/* ========================
   CSS CUSTOM PROPERTIES
   ======================== */
:root {
    /* Sidebar - Slate Dark Theme */
    --sidebar-bg: #0f172a;
    --sidebar-bg-subtle: #1e293b;
    --sidebar-bg-dark: #0f172a;
    --sidebar-bg-light: #1e293b;
    --sidebar-text: #f5f0e8;
    --sidebar-text-primary: #f5f0e8;
    --sidebar-text-secondary: rgba(245, 240, 232, 0.7);
    --sidebar-text-muted: rgba(245, 240, 232, 0.5);
    --sidebar-divider: rgba(245, 240, 232, 0.1);
    --nav-hover-bg: rgba(245, 240, 232, 0.06);
    
    /* Content - Light Theme for Reading (warmer text tones) */
    --content-bg: #faf8f5;
    --content-text: #3d3631;           /* Warmer charcoal for body text */
    --content-text-secondary: #6b635b; /* Warm gray for secondary text */
    --content-heading: #1a1915;        /* Deep warm black for headings */
    
    /* Accents - Terracotta, Amber Gold, Warm Cream */
    --accent: #c2715b;
    --accent-hover: #a85d49;
    --accent-light: #d4a574;
    --accent-secondary: #d4a574;
    --accent-cream: #f5f0e8;
    
    /* Utility Colors */
    --blockquote-bg: #f5f0e8;
    --code-bg: #f3f4f6;
    --code-text: #374151;
    --border-light: #e5e7eb;
    --border-dark: rgba(245, 240, 232, 0.1);
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-code: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    
    /* Spacing & Sizing */
    --content-max-width: 680px;
    --sidebar-width: 240px;
    
    /* ========================
       ENHANCED GLASS EFFECTS (UI Redesign)
       ======================== */
    /* Glass Backgrounds */
    --glass-bg: rgba(15, 23, 42, 0.85);
    --glass-bg-hover: rgba(30, 41, 59, 0.9);
    --glass-bg-active: rgba(15, 23, 42, 0.95);
    
    /* Glass Border Colors */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --glass-border-accent: rgba(194, 113, 91, 0.3);
    
    /* Glow Effects */
    --glow-terracotta: rgba(194, 113, 91, 0.4);
    --glow-terracotta-intense: rgba(194, 113, 91, 0.6);
    --glow-amber: rgba(212, 165, 116, 0.3);
    --glow-cream: rgba(245, 240, 232, 0.1);
    
    /* Accent Gradients */
    --accent-gradient: linear-gradient(135deg, #c2715b 0%, #d4a574 100%);
    --accent-gradient-reverse: linear-gradient(135deg, #d4a574 0%, #c2715b 100%);
    
    /* Listing Page Colors */
    --listing-card-bg: rgba(250, 248, 245, 0.6);
    --listing-card-hover-bg: rgba(250, 248, 245, 0.9);
    --listing-year-color: #c2715b;
    --listing-date-color: #9ca3af;
    
    /* Animation Timing */
    --ease-out-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 0.15s;
    --duration-normal: 0.3s;
    --duration-slow: 0.4s;
    --duration-slower: 0.6s;
}

/* ========================
   BASE STYLES
   ======================== */
html {
    background: var(--content-bg);
    min-height: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--content-text);
    background: var(--content-bg);
    min-height: 100vh;
}

/* ========================
   SIDEBAR STYLES (ENHANCED GLASSMORPHISM)
   ======================== */
nav {
    /* Enhanced Glassmorphism: Gradient with 24px blur */
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(15, 23, 42, 0.85) 50%,
        rgba(30, 41, 59, 0.88) 100%
    ) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    /* Ensure sidebar extends full height */
    min-height: 100vh;
    /* Inner glow effect via box-shadow */
    box-shadow:
        4px 0 40px rgba(0, 0, 0, 0.35),
        inset 0 0 60px rgba(245, 240, 232, 0.02);
    /* Glass edge border */
    border-right: 1px solid var(--glass-border);
    /* Smooth transitions for any state changes */
    transition: box-shadow var(--duration-slow) ease;
}

/* Desktop sidebar fixed positioning */
@media only screen and (min-width: 900px) {
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: var(--sidebar-width);
        height: 100vh;
        overflow-y: auto;
        z-index: 100;
    }
}

.site-title {
    margin-bottom: 1em;
}

.site-title a {
    font-family: var(--font-heading) !important;
    color: var(--sidebar-text) !important;
    text-decoration: none !important;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-size: 1.5em;
}

.site-title a:hover {
    color: var(--accent) !important;
}

.site-title a:visited {
    color: var(--sidebar-text) !important;
}

/* Navigation Menu */
.nav-menu a {
    color: var(--sidebar-text-muted) !important;
    text-decoration: none !important;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: var(--accent) !important;
}

.nav-menu a:visited {
    color: var(--sidebar-text-muted) !important;
}

.nav-link {
    position: relative;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Color Link (pagination, etc in sidebar context) */
.color-link {
    color: var(--accent) !important;
    font-family: var(--font-body);
    font-weight: 500;
    text-decoration: none;
}

.color-link:hover {
    color: var(--accent-light) !important;
}

.color-link:visited {
    color: var(--accent) !important;
}

.color-link .color-arrow {
    fill: var(--accent);
    transition: fill 0.2s ease;
}

.color-link:hover .color-arrow {
    fill: var(--accent-light);
}

/* Description */
.description {
    color: var(--sidebar-text-muted) !important;
    font-style: italic;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

/* ========================
   CONTENT AREA (LIGHT - READING OPTIMIZED)
   ======================== */
.content-container {
    background: var(--content-bg) !important;
    min-height: 100vh;
    /* Ensure full height even with little content */
    padding-bottom: 3em;
}

/* Desktop: offset content for fixed sidebar */
@media only screen and (min-width: 900px) {
    .content-container {
        margin-left: calc(var(--sidebar-width) + 36px);
        /* Remove the border - use shadow on sidebar instead */
        border-left: none;
        /* Add padding for breathing room */
        padding-left: 2em;
        padding-right: 2em;
    }
}

/* ========================
   TYPOGRAPHY - HEADINGS
   ======================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--content-heading);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

h1 {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2em;      /* Reduced spacing above */
    margin-bottom: 0.6em;
    padding-top: 0;
    border-top: none;
}

/* H2 in article content */
article h2,
.article-content h2 {
    margin-top: 2.25em !important;  /* Moderate separation above */
    margin-bottom: 0.75em !important;
    padding-top: 0 !important;
    border-top: none !important;
}

/* First h2 in article */
.article-content > h2:first-child {
    margin-top: 1.25em !important;
}

h2 a {
    color: var(--content-heading) !important;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    background: none !important;
    transition: color 0.2s ease;
}

h2 a:hover {
    color: var(--accent) !important;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.75em;
    margin-bottom: 0.5em;
}

h4, h5, h6 {
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.95rem; }

/* ========================
   TYPOGRAPHY - BODY TEXT (Clean, readable Inter)
   ======================== */
p {
    color: #3d3631 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.75 !important;
    margin-bottom: 1.1em !important;  /* Reduced paragraph spacing */
    font-size: 1.0625rem !important;
    letter-spacing: -0.01em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Article specific - optimal reading with Inter */
article p,
.article-content p,
.content-container p {
    color: #3d3631 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-weight: 400 !important;
    font-size: 1.0625rem !important;
    line-height: 1.75 !important;
    margin-bottom: 1.1em !important;  /* Reduced paragraph spacing */
    letter-spacing: -0.01em;
}

/* First paragraph - slightly emphasized */
.article-content > p:first-of-type,
article > p:first-of-type {
    font-size: 1.125rem !important;
    line-height: 1.75 !important;
    color: #2d2622 !important;
}

/* Blockquotes */
blockquote p {
    font-style: italic !important;
    font-weight: 400 !important;
    font-size: 1rem !important;
}

/* ========================
   LINKS - Subtle but visible
   ======================== */
a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(194, 113, 91, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
    text-decoration-color: var(--accent-hover);
}

a:visited {
    color: var(--accent);
}

/* Article links */
article p a,
.article-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(194, 113, 91, 0.3);
    text-underline-offset: 3px;
}

article p a:hover,
.article-content a:hover {
    color: var(--accent-hover);
    text-decoration-color: var(--accent-hover);
}

li a {
    text-decoration: none;
}

li a:hover {
    text-decoration: underline;
    text-decoration-color: var(--accent);
}

/* ========================
   TIMESTAMPS & METADATA
   ======================== */
time {
    color: var(--content-text-secondary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
}

/* ========================
   TAGS - Modern Pill Style
   ======================== */
.tag {
    display: inline-flex;
    align-items: center;
    color: var(--accent) !important;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none !important;
    background: rgba(194, 113, 91, 0.08);
    padding: 0.4em 0.9em;
    border-radius: 50px;
    margin-right: 0.5em;
    margin-bottom: 0.5em;
    transition: all 0.2s ease;
    border: 1px solid rgba(194, 113, 91, 0.15);
}

.tag:visited {
    color: var(--accent) !important;
}

.tag:hover {
    color: white !important;
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
}

/* Tag container styling */
.post-footer .tag,
article .tag {
    display: inline-flex;
}

/* ========================
   HORIZONTAL RULES
   ======================== */
hr {
    border: 0;
    height: 1px;
    background: var(--border-light);
    margin: 2.5em 0;
}

/* ========================
   LISTS (Clean, readable styling)
   ======================== */
ul, ol {
    color: #3d3631;
    margin: 1.5em 0;
    padding-left: 1.5em;
}

li {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.8;
    margin-bottom: 0.5em;
    font-size: 1.0625rem;
    color: #3d3631;
}

li::marker {
    color: var(--accent);
}

/* Nested lists */
li ul, li ol {
    margin: 0.5em 0 0.5em 0;
}

li li {
    font-size: 1rem;
}

/* ========================
   BLOCKQUOTES
   ======================== */
blockquote {
    background: var(--blockquote-bg);
    border-left: 4px solid var(--accent);
    padding: 1.25em 1.5em;
    margin: 1.5em 0;
    border-radius: 0 8px 8px 0;
}

blockquote p {
    color: var(--content-text-secondary) !important;
    font-style: italic !important;
    margin-bottom: 0.75em !important;  /* Allow spacing between multiple paragraphs */
    font-size: 1rem !important;
    line-height: 1.65 !important;
}

blockquote p:last-child {
    margin-bottom: 0 !important;
}

/* Let blockquote text wrap naturally */
blockquote * {
    white-space: normal !important;
    word-wrap: break-word !important;
}

/* ========================
   MARK / HIGHLIGHT
   ======================== */
mark {
    background: rgba(212, 165, 116, 0.3);
    color: var(--content-text);
    padding: 0.1em 0.3em;
    border-radius: 3px;
}

/* ========================
   CODE STYLES
   ======================== */
code, pre, kbd {
    font-family: var(--font-code);
}

/* Inline code - subtle and readable */
p code, li code, kbd {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    border: 1px solid var(--border-light);
}

/* Code blocks */
pre {
    background: #f8fafc !important;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.25em;
    overflow-x: auto;
    margin: 1.5em 0;
}

pre code {
    background: transparent;
    color: var(--code-text);
    padding: 0;
    border: none;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========================
   TABLES - Modern Minimal Design
   ======================== */
.table-wrapper {
    overflow-x: auto;
    margin: 2em 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 1rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

/* Table Header */
table thead {
    background: var(--sidebar-bg);
}

table thead th {
    color: var(--accent-cream);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1em 1.25em;
    border-bottom: none;
}

table thead th:first-child {
    border-radius: 12px 0 0 0;
}

table thead th:last-child {
    border-radius: 0 12px 0 0;
}

/* Table Body */
table tbody {
    background: white;
}

table th, table td {
    padding: 1em 1.25em;
    border-bottom: 1px solid var(--border-light);
    color: var(--content-text);
    font-size: 0.95rem;
}

table tbody tr:last-child td {
    border-bottom: none;
}

table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 12px;
}

table tbody tr:last-child td:last-child {
    border-radius: 0 0 12px 0;
}

/* Hover effect */
table tbody tr {
    transition: background-color 0.2s ease;
}

table tbody tr:hover {
    background: rgba(194, 113, 91, 0.06);
}

/* Alternate row colors for better readability */
table tbody tr:nth-child(even) {
    background: rgba(245, 240, 232, 0.4);
}

table tbody tr:nth-child(even):hover {
    background: rgba(194, 113, 91, 0.08);
}

/* Links in tables */
table a {
    color: var(--accent);
    text-decoration: none;
}

table a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Responsive table adjustments */
@media only screen and (max-width: 600px) {
    table thead th,
    table th, table td {
        padding: 0.75em 0.75em;
        font-size: 0.9rem;
    }
    
    table thead th {
        font-size: 0.8rem;
    }
}

/* ========================
   IMAGES
   ======================== */
.article-content img,
.article-image,
article img {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

.article-figure {
    margin: 2em 0;
}

/* ========================
   PAGINATOR
   ======================== */
.paginator {
    border-top: 1px solid var(--border-light);
    padding-top: 1.5em;
    margin-top: 3em;
}

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

.paginator a:hover {
    color: var(--accent-hover);
}

.paginator p {
    color: var(--content-text-secondary);
}

/* ========================
   FOOTERS
   ======================== */
.post-footer {
    color: var(--content-text-secondary);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 2em;
    margin-top: 2em;
    font-size: 0.95rem;
}

.post-footer a {
    color: var(--content-text-secondary);
    text-decoration: none;
}

.post-footer a:hover {
    color: var(--accent);
}

.page-footer {
    color: var(--content-text-secondary);
    font-size: 0.9rem;
}

.page-footer a {
    color: var(--content-text-secondary);
    text-decoration: none;
}

.page-footer a:hover {
    color: var(--accent);
}

.page-footer a:visited {
    color: var(--content-text-secondary);
}

/* ========================
   MAIN FOOTER (in sidebar)
   ======================== */
footer .social-icons a {
    display: inline-block;
    transition: transform 0.2s ease;
}

footer .social-icons a:hover {
    transform: translateY(-2px);
}

footer .social-icon > svg {
    fill: var(--sidebar-text-muted);
    transition: fill 0.2s ease;
}

footer .social-icon > svg:hover {
    fill: var(--accent);
}

footer a {
    color: var(--sidebar-text-muted);
    text-decoration: none;
}

footer a:hover {
    color: var(--accent);
}

footer a:visited {
    color: var(--sidebar-text-muted);
}

.footer-divider {
    color: var(--border-dark);
}

/* Mobile footer */
.footer-mobile {
    background: var(--content-bg);
}

.footer-mobile a {
    color: var(--content-text-secondary);
}

.footer-mobile a:hover {
    color: var(--accent);
}

.footer-mobile .divider-bar {
    color: var(--border-light);
}

/* ========================
   ARCHIVES PAGE - ENHANCED LISTING DESIGN
   ======================== */

/* Year Headings - Focal Points with Decorative Underline */
.archives-year,
.content-container > div > h3 {
    font-family: var(--font-heading) !important;
    font-size: 1.75rem !important;
    font-weight: 600;
    color: var(--listing-year-color) !important;
    margin-top: 0.6em !important;
    margin-bottom: 0.4em !important;
    padding-bottom: 0.35em;
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
}

/* First year heading reduced top margin */
.content-container > div > h3:first-of-type,
.archives-year:first-of-type {
    margin-top: 0.5em !important;
}

/* Decorative gradient underline for year headings */
.archives-year::after,
.content-container > div > h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* Subtle year glow on hover */
.archives-year:hover,
.content-container > div > h3:hover {
    text-shadow: 0 0 40px rgba(194, 113, 91, 0.2);
}

/* Post List - Glassmorphism Cards */
.archives-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5em 0;
}

.archives-list-item {
    display: flex;
    align-items: baseline;
    gap: 1em;
    padding: 6px 16px !important;
    margin: 0 -16px 1px -16px !important;
    border-radius: 10px;
    color: var(--content-text);
    font-size: 1rem;
    line-height: 1.5;
    /* Subtle glass base */
    background: transparent;
    border: 1px solid transparent;
    transition:
        background var(--duration-normal) ease,
        border-color var(--duration-normal) ease,
        box-shadow var(--duration-normal) ease,
        transform 0.2s ease;
}

/* Glass card effect on hover */
.archives-list-item:hover {
    background: rgba(194, 113, 91, 0.04);
    border-color: rgba(194, 113, 91, 0.1);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateX(8px);
}

/* Date styling with hover transition */
.archives-list-item-date {
    font-family: var(--font-body);
    font-size: 0.85rem !important;
    font-weight: 400;
    color: var(--listing-date-color) !important;
    min-width: 55px;
    flex-shrink: 0;
    transition: color var(--duration-normal) ease;
}

/* Date transitions to amber gold on hover */
.archives-list-item:hover .archives-list-item-date {
    color: #d4a574 !important;
}

/* Post title link with underline animation */
.archives-list-item a {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--content-text);
    text-decoration: none;
    line-height: 1.4;
    position: relative;
    transition: color var(--duration-normal) ease;
}

.archives-list-item a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--duration-normal) ease;
}

.archives-list-item a:hover {
    color: var(--accent);
}

.archives-list-item a:hover::after {
    width: 100%;
}

.archives-list-item a:visited {
    color: var(--content-text);
}

/* Focus state for accessibility */
.archives-list-item:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Year count badge (optional enhancement) */
.year-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.75em;
    padding: 2px 10px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(194, 113, 91, 0.8);
    background: rgba(194, 113, 91, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(194, 113, 91, 0.2);
    vertical-align: middle;
}

/* Main title enhancement with decorative bar */
.content-container > h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    margin-top: 0.5em;
}

/* ========================
   404 PAGE
   ======================== */
.not-found-title {
    color: var(--content-heading);
    font-family: var(--font-heading);
}

/* ========================
   SOCIAL EMBEDS
   ======================== */
.twitter-tweet {
    border-left-color: var(--accent) !important;
    background: var(--blockquote-bg);
    padding: 1em 1.5em !important;
    border-radius: 0 8px 8px 0;
}

.twitter-tweet p {
    color: var(--content-text);
}

.twitter-tweet a {
    color: var(--accent) !important;
}

.twitter-tweet a:hover {
    color: var(--accent-hover) !important;
}

.__h_instagram.card {
    font-family: var(--font-body) !important;
    border-color: var(--border-light);
    background: var(--content-bg);
}

/* ========================
   KOFI BUTTON
   ======================== */
.kofi-button {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.5em 1em;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.kofi-button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* ========================
   BUTTONS (GENERAL)
   ======================== */
button, .button, .btn,
input[type="submit"],
input[type="button"] {
    font-family: var(--font-body);
    font-weight: 500;
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 0.75em 1.5em;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover, .button:hover, .btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

button:active, .button:active, .btn:active,
input[type="submit"]:active,
input[type="button"]:active {
    transform: translateY(0);
}

/* ========================
   FORM ELEMENTS
   ======================== */
input, textarea, select {
    font-family: var(--font-body);
    background: white;
    border: 1px solid var(--border-light);
    color: var(--content-text);
    padding: 0.75em;
    border-radius: 6px;
    transition: border-color 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(194, 113, 91, 0.1);
}

input::placeholder, textarea::placeholder {
    color: var(--content-text-secondary);
}

/* ========================
   SELECTION HIGHLIGHT
   ======================== */
::selection {
    background: rgba(194, 113, 91, 0.2);
    color: var(--content-text);
}

::-moz-selection {
    background: rgba(194, 113, 91, 0.2);
    color: var(--content-text);
}

/* ========================
   SCROLLBAR STYLING
   ======================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 5px;
}

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

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db var(--content-bg);
}

/* ========================
   TABLE OF CONTENTS - Compact Panel (Content-wrapped) with Glassmorphism
   ======================== */
#TableOfContentsDiv {
    /* Override theme positioning completely */
    position: fixed !important;
    top: 120px !important;
    /* Position to the right of the content area (sidebar 310px + content ~680px = ~1010px) */
    left: 1020px !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    
    /* Content-sized dimensions - no scroll, exact content size */
    display: inline-block !important;
    width: auto !important;
    min-width: 180px !important;
    max-width: 240px !important;
    height: auto !important;
    /* No max-height or overflow - panel sizes to content */
    overflow: visible !important;
    
    /* Box model */
    box-sizing: border-box !important;
    
    /* GLASSMORPHISM STYLING - Semi-transparent with blur */
    background: rgba(15, 23, 42, 0.85) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 1.25em 1.5em !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    
    /* Z-index to stay above content */
    z-index: 50 !important;
}

/* Ensure ALL child elements have transparent backgrounds */
#TableOfContentsDiv * {
    background: transparent !important;
    background-color: transparent !important;
}

/* TOC Heading - "JUMP TO..." section */
#TableOfContentsDiv h2 {
    font-family: var(--font-body) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: var(--sidebar-text-muted) !important;
    margin: 0 0 1em 0 !important;
    padding: 0 0 0.75em 0 !important;
    /* Add subtle bottom border to header */
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    background: transparent !important;
    /* Reset any inherited styles */
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* TOC Navigation Container - Override inherited nav styles */
#TableOfContentsDiv nav {
    font-family: var(--font-body);
    /* Critical: Override inherited height: 100% from main nav */
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    /* Transparent background - parent has the glass effect */
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    /* Override main nav glassmorphism */
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    /* Reset border-right from main nav */
    border-right: none !important;
}

/* TOC List Styling */
#TableOfContentsDiv nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

#TableOfContentsDiv nav ul ul {
    margin-left: 1em !important;
    margin-top: 0.35em !important;
    /* Nested list left border for indentation indicator */
    border-left: 2px solid var(--sidebar-divider) !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    padding-left: 0.75em !important;
}

/* TOC List Items */
#TableOfContentsDiv nav li {
    margin-bottom: 0.4em !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
}

#TableOfContentsDiv nav li:last-child {
    margin-bottom: 0 !important;
}

/* TOC Links */
#TableOfContentsDiv nav a {
    color: var(--sidebar-text-secondary) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    display: inline-block;
    padding: 2px 0 !important;
}

#TableOfContentsDiv nav a:hover {
    color: var(--accent) !important;
}

#TableOfContentsDiv nav a:visited {
    color: var(--sidebar-text-secondary) !important;
}

/* Nested links (h3, h4) are slightly smaller */
#TableOfContentsDiv nav ul ul a {
    font-size: 0.85rem !important;
    color: var(--sidebar-text-muted) !important;
}

#TableOfContentsDiv nav ul ul a:hover {
    color: var(--accent) !important;
}

/* Hide TOC on mobile - show inline above content */
@media only screen and (max-width: 1200px) {
    #TableOfContentsDiv {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 2em !important;
    }
}

/* ========================
   SYNTAX HIGHLIGHTING
   ======================== */
.highlight {
    background: #f8fafc !important;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin: 1.5em 0;
}

.highlight pre {
    margin: 0;
    background: transparent !important;
    border: none;
}

/* Comment */
.highlight .c,
.highlight .c1,
.highlight .cm {
    color: #6b7280;
    font-style: italic;
}

/* Keyword */
.highlight .k,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr {
    color: #7c3aed;
    font-weight: 500;
}

/* String */
.highlight .s,
.highlight .s1,
.highlight .s2,
.highlight .sb,
.highlight .sc,
.highlight .sd,
.highlight .se,
.highlight .sh,
.highlight .si,
.highlight .sx {
    color: #059669;
}

/* Number */
.highlight .m,
.highlight .mi,
.highlight .mf,
.highlight .mh,
.highlight .mo {
    color: #0891b2;
}

/* Function */
.highlight .nf {
    color: #c2715b;
}

/* Variable */
.highlight .nv,
.highlight .vi,
.highlight .vg {
    color: #0369a1;
}

/* Type/Class */
.highlight .nc,
.highlight .nn {
    color: #0d9488;
}

/* Operator */
.highlight .o,
.highlight .ow {
    color: var(--content-text);
}

/* Punctuation */
.highlight .p {
    color: var(--content-text);
}

/* ========================
   RESPONSIVE - MOBILE
   ======================== */
@media only screen and (max-width: 899px) {
    /* Mobile: Stack layout */
    nav {
        background: linear-gradient(180deg, var(--sidebar-bg-dark) 0%, var(--sidebar-bg-light) 100%) !important;
        position: relative;
        min-height: auto;
        width: 100%;
    }
    
    .content-container {
        background: var(--content-bg) !important;
        margin-left: 0;
        padding: 1em 1.5em 3em 1.5em;
    }
    
    /* Adjust typography for mobile */
    body {
        font-size: 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.35rem;
    }
    
    h3 {
        font-size: 1.15rem;
    }
    
    p, li {
        font-size: 1rem;
        line-height: 1.75;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    /* Mobile footer uses light theme */
    .footer-mobile {
        background: var(--content-bg);
        border-top: 1px solid var(--border-light);
    }
}

/* ========================
   MODERN MINIMAL SIDEBAR
   ======================== */

/* Sidebar Container */
.sidebar {
    display: flex;
    flex-direction: column;
    padding: 48px 24px 24px 24px !important;
    min-height: 100vh;
}

/* Sidebar Header - Profile Area */
.sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0;
}

@media only screen and (min-width: 900px) {
    .sidebar-header {
        align-items: flex-start;
        text-align: left;
    }
}

/* Profile Photo - Enhanced Terracotta Glow Effect */
.profile-photo {
    margin-bottom: 16px;
    position: relative;
}

/* Glow ring container via ::before pseudo-element */
.profile-photo::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: var(--accent-gradient);
    opacity: 0;
    filter: blur(12px);
    transition: opacity var(--duration-slow) ease, filter var(--duration-slow) ease;
    z-index: -1;
}

.profile-photo:hover::before {
    opacity: 0.6;
    filter: blur(16px);
}

.profile-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    /* Enhanced ring border - 2px accent color */
    border: 3px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition:
        border-color var(--duration-normal) ease,
        box-shadow var(--duration-slow) ease,
        transform var(--duration-normal) ease;
    position: relative;
    z-index: 1;
}

.profile-photo:hover img {
    border-color: rgba(194, 113, 91, 0.6);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 30px var(--glow-terracotta),
        0 0 0 1px rgba(194, 113, 91, 0.2);
    transform: scale(1.03);
}

/* Profile Info */
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Profile Name Enhancement with Gradient Hover */
.profile-name {
    font-family: var(--font-heading) !important;
    font-size: 1.4em !important;
    font-weight: 500 !important;
    color: var(--sidebar-text-primary) !important;
    text-decoration: none !important;
    line-height: 1.3;
    letter-spacing: -0.01em;
    background: linear-gradient(
        135deg,
        var(--sidebar-text-primary) 0%,
        rgba(245, 240, 232, 0.85) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all var(--duration-normal) ease;
}

.profile-name:hover {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 30px rgba(194, 113, 91, 0.3);
}

.profile-name:visited {
    color: var(--sidebar-text-primary) !important;
}

/* Sidebar Divider - Gradient with Center Accent Point */
.sidebar-divider {
    width: 100%;
    height: 1px;
    border: none;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(245, 240, 232, 0.15) 20%,
        rgba(194, 113, 91, 0.3) 50%,
        rgba(245, 240, 232, 0.15) 80%,
        transparent 100%
    );
    margin: 32px 0 24px 0;
    position: relative;
}

/* Subtle glow to divider center */
.sidebar-divider::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 20%;
    right: 20%;
    height: 5px;
    background: radial-gradient(
        ellipse at center,
        rgba(194, 113, 91, 0.15) 0%,
        transparent 70%
    );
    filter: blur(2px);
}

/* Navigation Menu - Refined */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}

@media only screen and (max-width: 899px) {
    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
    }
}

.nav-menu .nav-link {
    display: block;
    padding: 10px 14px;
    margin: 0 -12px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(245, 240, 232, 0.6) !important;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    /* Glass base - subtle */
    background: transparent;
    border: 1px solid transparent;
    /* Smooth transitions */
    transition:
        color var(--duration-normal) ease,
        background var(--duration-normal) ease,
        border-color var(--duration-normal) ease,
        box-shadow var(--duration-normal) ease,
        transform 0.2s ease;
}

/* Hide the underline animation on nav links (use bar instead) */
.nav-menu .nav-link::after {
    display: none;
}

/* Left accent bar animation */
.nav-menu .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: height var(--duration-normal) ease;
    box-shadow: 0 0 8px var(--glow-terracotta);
}

/* Hover state with glassmorphism */
.nav-menu .nav-link:hover {
    color: var(--sidebar-text-primary) !important;
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

/* Show accent bar on hover */
.nav-menu .nav-link:hover::before {
    height: 60%;
}

/* Active state */
.nav-menu .nav-link--active {
    color: var(--sidebar-text-primary) !important;
    font-weight: 500;
    background: rgba(194, 113, 91, 0.08);
    border-color: rgba(194, 113, 91, 0.15);
}

/* Active link always shows the accent bar */
.nav-menu .nav-link--active::before {
    height: 60%;
}

/* Focus state for accessibility */
.nav-menu .nav-link:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media only screen and (max-width: 899px) {
    .nav-menu .nav-link {
        padding: 8px 14px;
        margin: 0;
        border-radius: 20px;
    }
    
    /* Disable translateX on mobile */
    .nav-menu .nav-link:hover {
        transform: none;
    }
    
    /* Hide accent bar on mobile */
    .nav-menu .nav-link::before {
        display: none;
    }
    
    .nav-menu .nav-link--active::before {
        display: none;
    }
    
    .nav-menu .nav-link--active {
        background: rgba(255, 255, 255, 0.08);
        border-radius: 20px;
    }
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

@media only screen and (min-width: 900px) {
    .sidebar-footer {
        align-items: flex-start;
    }
}

/* Social Icons - Enhanced with Lift Effect & Terracotta Glow */
.sidebar-footer .social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 !important;
}

.sidebar-footer .social-icon {
    padding: 8px;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    transition:
        background var(--duration-normal) ease,
        border-color var(--duration-normal) ease,
        transform 0.2s ease,
        box-shadow var(--duration-normal) ease;
}

/* Lift effect (-3px translateY) and terracotta glow on hover */
.sidebar-footer .social-icon:hover {
    background: rgba(194, 113, 91, 0.1);
    border-color: rgba(194, 113, 91, 0.2);
    transform: translateY(-3px);
    box-shadow:
        0 6px 20px rgba(194, 113, 91, 0.2),
        0 0 0 1px rgba(194, 113, 91, 0.1);
}

.sidebar-footer .social-icon svg {
    width: 22px;
    height: 22px;
    fill: rgba(245, 240, 232, 0.5);
    transition: fill var(--duration-normal) ease, filter var(--duration-normal) ease;
}

/* Fill color transition to accent with glow */
.sidebar-footer .social-icon:hover svg {
    fill: #c2715b;
    filter: drop-shadow(0 0 6px var(--glow-terracotta));
}

/* Individual icon color variations (optional) */
.sidebar-footer .social-icon[title="LinkedIn"]:hover svg {
    fill: #0A66C2;
    filter: drop-shadow(0 0 6px rgba(10, 102, 194, 0.4));
}

.sidebar-footer .social-icon[title="GitHub"]:hover svg {
    fill: #f0f0f0;
    filter: drop-shadow(0 0 6px rgba(240, 240, 240, 0.3));
}

.sidebar-footer .social-icon[title="Twitter"]:hover svg {
    fill: #1DA1F2;
    filter: drop-shadow(0 0 6px rgba(29, 161, 242, 0.4));
}

/* CTA Button - Glassmorphism with Gradient Overlay & Pulsing Glow */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(245, 240, 232, 0.9) !important;
    text-decoration: none !important;
    width: 100%;
    max-width: 180px;
    position: relative;
    overflow: hidden;
    /* Glassmorphism base */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* Subtle inner shine */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.2);
    transition:
        background var(--duration-slow) ease,
        border-color var(--duration-normal) ease,
        color var(--duration-normal) ease,
        box-shadow var(--duration-slow) ease,
        transform var(--duration-normal) ease;
    /* Pulsing glow animation */
    animation: cta-pulse 3s ease-in-out infinite;
}

/* Gradient overlay on hover */
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--duration-slow) ease;
    border-radius: inherit;
    z-index: -1;
}

.cta-button:hover {
    color: white !important;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow:
        0 8px 32px rgba(194, 113, 91, 0.5),
        0 0 20px rgba(194, 113, 91, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: none;
}

.cta-button:hover::before {
    opacity: 1;
}

/* Active/pressed state */
.cta-button:active {
    transform: translateY(-1px);
    box-shadow:
        0 4px 16px rgba(194, 113, 91, 0.4),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-button:visited {
    color: rgba(245, 240, 232, 0.9) !important;
}

.cta-button:hover:visited {
    color: white !important;
}

/* Pulsing glow animation keyframes */
@keyframes cta-pulse {
    0%, 100% {
        box-shadow:
            0 4px 16px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow:
            0 4px 20px rgba(194, 113, 91, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

/* Sidebar Footer Links - Enhanced with Underline Animation */
.sidebar-footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
}

.sidebar-footer-links .footer-link {
    color: rgba(245, 240, 232, 0.45) !important;
    text-decoration: none !important;
    font-family: var(--font-body);
    font-weight: 400;
    padding: 4px 0;
    position: relative;
    transition: color var(--duration-normal) ease;
}

/* Underline animation from left */
.sidebar-footer-links .footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--duration-normal) ease;
}

.sidebar-footer-links .footer-link:hover {
    color: var(--accent) !important;
}

.sidebar-footer-links .footer-link:hover::after {
    width: 100%;
}

.sidebar-footer-links .footer-link:visited {
    color: rgba(245, 240, 232, 0.45) !important;
}

.sidebar-footer-links .footer-divider {
    color: rgba(245, 240, 232, 0.2);
    font-weight: 300;
}

/* Override old site-title styles in sidebar context */
.sidebar .site-title,
.sidebar header .site-title {
    display: none;
}

/* Hide old coaching button SVG */
.coaching-button {
    display: none !important;
}

/* Mobile Sidebar Adjustments */
@media only screen and (max-width: 899px) {
    nav.sidebar {
        background: linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(30, 41, 59, 0.9) 100%
        ) !important;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .sidebar {
        padding: 32px 20px 24px 20px !important;
        min-height: auto;
    }
    
    .sidebar-header {
        align-items: center;
        text-align: center;
    }
    
    .profile-photo img {
        width: 100px;
        height: 100px;
    }
    
    .profile-name {
        font-size: 1.25em !important;
    }
    
    .sidebar-divider {
        margin: 24px 0 20px 0;
    }
    
    .sidebar-footer {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .cta-button {
        max-width: 200px;
    }
    
    .sidebar-footer-links {
        width: 100%;
        justify-content: center;
    }
    
    /* Mobile listing adjustments - disable translateX */
    .archives-list-item {
        padding: 5px 12px !important;
        margin: 0 -12px 1px -12px !important;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .archives-list-item:hover {
        transform: none;
    }
    
    .archives-list-item-date {
        font-size: 0.8rem !important;
        min-width: 50px;
    }
    
    .archives-list-item a {
        font-size: 1rem;
    }
}

/* ========================
   PRINT STYLES
   ======================== */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .content-container {
        background: white !important;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    nav, footer, .footer-mobile {
        display: none;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
    }
}

/* ========================
   ACCESSIBILITY - REDUCED MOTION SUPPORT
   ======================== */
@media (prefers-reduced-motion: reduce) {
    /* Disable CTA pulse animation */
    .cta-button {
        animation: none;
    }
    
    /* Disable all transitions and animations */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 0.5em 1em;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}
