/* CSS Custom Properties for JavaScript Theme */
:root {
    --primary-color: #f7df1e;
    --secondary-color: #323330;
    --accent-color: #61dafb;
    --accent-secondary: #21a3c4;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-card: #ffffff;
    --bg-dark: #1a202c;
    --border-color: #e2e8f0;
    --shadow-light: rgba(0,0,0,0.08);
    --shadow-medium: rgba(0,0,0,0.1);
    --shadow-heavy: rgba(0,0,0,0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Source Code Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    font-feature-settings: 'kern' 1, 'liga' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 1.8rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.3rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.2rem); }

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--text-primary);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top var(--transition-fast);
    font-weight: 500;
}

.skip-link:focus {
    top: 6px;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width var(--transition-normal);
    border-radius: 0 2px 2px 0;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.content {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow:
        0 4px 20px var(--shadow-light),
        0 1px 3px var(--shadow-medium);
    overflow: hidden;
    margin: 2rem auto;
    max-width: min(900px, 95vw);
    position: relative;
}

.content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

/* Article Header */
.article-header {
    background: var(--gradient-accent);
    color: var(--text-primary);
    padding: clamp(2rem, 8vw, 3rem) clamp(1rem, 4vw, 2rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(97, 218, 251, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.6; }
}

.article-header h1 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.category {
    background: rgba(247, 223, 30, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    border: 1px solid rgba(247, 223, 30, 0.3);
}

/* Article Content */
.article-content {
    padding: clamp(2rem, 6vw, 3rem) clamp(1rem, 4vw, 2rem);
}

.article-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    text-align: justify;
    hyphens: auto;
}

.article-content h2 {
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
    font-weight: 600;
    margin: 3rem 0 1.5rem 0;
    color: var(--text-primary);
    position: relative;
    scroll-margin-top: 2rem;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width var(--transition-normal);
}

.article-content h2:hover::after {
    width: 80px;
}

.article-content h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-content h3::before {
    content: '⚡';
    font-size: 1.1em;
}

.article-content ul {
    margin: 1.5rem 0 2rem 1.5rem;
    padding-left: 1rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 0.5rem;
    color: var(--text-secondary);
}

.article-content li::before {
    content: '▸';
    position: absolute;
    left: -1.5rem;
    top: 0.1em;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
}

/* Table of Contents */
.table-of-contents {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: clamp(1.5rem, 4vw, 2rem);
    margin: 3rem 0;
    border-left: 4px solid var(--primary-color);
    position: sticky;
    top: 2rem;
    box-shadow: 0 2px 12px var(--shadow-light);
}

.table-of-contents h2 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-of-contents h2::before {
    content: '📋';
    font-size: 1.2em;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1rem;
}

.table-of-contents li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.table-of-contents li:hover::before {
    transform: scale(1.5);
}

.table-of-contents a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-weight: 500;
    display: block;
    padding: 0.25rem 0;
    border-radius: 4px;
}

.table-of-contents a:hover,
.table-of-contents a.active {
    color: var(--primary-color);
    background: rgba(247, 223, 30, 0.1);
    transform: translateX(4px);
    font-weight: 600;
}

/* Code Blocks - Enhanced for JavaScript */
code {
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

code:hover {
    background: rgba(247, 223, 30, 0.1);
    border-color: var(--primary-color);
    cursor: pointer;
}

pre {
    background: var(--bg-dark);
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 1.5rem 0;
    position: relative;
    border: 1px solid #4a5568;
    box-shadow: 0 4px 12px var(--shadow-heavy);
    transition: all var(--transition-fast);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

pre:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(247, 223, 30, 0.2);
}

.copy-button {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(247, 223, 30, 0.9);
    color: var(--text-primary);
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    opacity: 0;
    transform: translateY(-5px);
}

pre:hover .copy-button {
    opacity: 1;
    transform: translateY(0);
}

.copy-button:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.copy-button:active {
    transform: scale(0.95);
}

.copy-button.copied {
    background: #28ca42;
    color: white;
}

.copy-button.copied::after {
    content: ' ✓';
}

.copy-button::before {
    content: 'Copy code';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    margin-bottom: 5px;
}

.copy-button:hover::before {
    opacity: 1;
}

pre::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f57;
    box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #28ca42;
}

pre code {
    background: none;
    padding: 0;
    border: none;
    color: inherit;
    font-size: 0.95em;
    line-height: 1.6;
    counter-reset: line;
}

pre code::before {
    counter-increment: line;
    content: counter(line);
    display: inline-block;
    width: 2rem;
    margin-right: 1rem;
    text-align: right;
    color: #718096;
    font-size: 0.8em;
    user-select: none;
}

/* Call to Action */
.cta {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    margin: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(247, 223, 30, 0.1) 0%, transparent 70%);
    animation: cta-glow 6s ease-in-out infinite;
}

@keyframes cta-glow {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 0.6; }
}

.cta p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.cta ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta a::before {
    content: '🚀';
    font-size: 1.1em;
}

.cta a:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: #e2e8f0;
    padding: 2.5rem 0 1.5rem 0;
    text-align: center;
    margin-top: 5rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4a5568, transparent);
}

footer p {
    margin-bottom: 0.75rem;
    opacity: 0.8;
    font-size: 0.95rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

footer a:hover {
    color: #90cdf4;
    text-decoration: underline;
}

/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-sm);
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a, a:visited {
        text-decoration: underline;
    }

    .no-print {
        display: none;
    }

    .content {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }

    .article-content {
        padding: 2rem 1.5rem;
    }

    .table-of-contents {
        position: static;
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .cta ul {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .article-header {
        padding: 2rem 1rem;
    }

    .article-header h1 {
        font-size: clamp(1.6rem, 8vw, 2rem);
    }

    .meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cta {
        padding: 2rem 1.5rem;
    }

    pre {
        padding: 1rem;
        font-size: 0.85em;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #ffff00;
        --secondary-color: #000000;
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --bg-primary: #000000;
        --bg-secondary: #333333;
        --bg-card: #000000;
        --bg-dark: #000000;
        --border-color: #ffffff;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f7fafc;
        --text-secondary: #e2e8f0;
        --text-muted: #a0aec0;
        --bg-primary: #1a202c;
        --bg-secondary: #2d3748;
        --bg-card: #1a202c;
        --bg-dark: #0f1419;
        --border-color: #4a5568;
        --shadow-light: rgba(0,0,0,0.3);
        --shadow-medium: rgba(0,0,0,0.4);
        --shadow-heavy: rgba(0,0,0,0.5);
    }

    .content {
        background: var(--bg-card);
        color: var(--text-primary);
    }
}

/* Loading animations for better perceived performance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-content section {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.article-content section:nth-child(1) { animation-delay: 0.1s; }
.article-content section:nth-child(2) { animation-delay: 0.2s; }
.article-content section:nth-child(3) { animation-delay: 0.3s; }
.article-content section:nth-child(4) { animation-delay: 0.4s; }
.article-content section:nth-child(5) { animation-delay: 0.5s; }
.article-content section:nth-child(6) { animation-delay: 0.6s; }
.article-content section:nth-child(7) { animation-delay: 0.7s; }
.article-content section:nth-child(8) { animation-delay: 0.8s; }
.article-content section:nth-child(9) { animation-delay: 0.9s; }
.article-content section:nth-child(10) { animation-delay: 1.0s; }
.article-content section:nth-child(11) { animation-delay: 1.1s; }

/* Compatibility Grid Styles */
.compatibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.compat-item {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 6px var(--shadow-light);
}

.compat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-medium);
    border-color: var(--primary-color);
}

.compat-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.support-level {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.support-level.full {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.support-level.partial {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.support-level.none {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

/* Advanced Features Section Enhancements */
#advanced-features h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    position: relative;
}

#advanced-features h3::before {
    content: '⚡';
    position: absolute;
    left: -2rem;
    top: 0;
    font-size: 1.2rem;
}

#browser-support {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin: 2rem 0;
}

#performance-tips {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin: 2rem 0;
}

#performance-tips h3 {
    color: var(--accent-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

#performance-tips ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

#performance-tips li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

#performance-tips li strong {
    color: var(--primary-color);
}

/* Code block enhancements for advanced sections */
#advanced-features pre,
#browser-support pre,
#performance-tips pre {
    background: var(--bg-dark);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    position: relative;
}

#advanced-features pre::before,
#browser-support pre::before,
#performance-tips pre::before {
    content: 'JS';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.2rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced focus states for accessibility */
.compat-item:focus-within,
.support-level:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Search Functionality Styles */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#content-search {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: all var(--transition-normal);
    outline: none;
}

#content-search:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(247, 223, 30, 0.1);
}

#clear-search {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all var(--transition-fast);
    display: none;
}

#clear-search:hover {
    background: var(--text-primary);
    transform: scale(1.1);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px var(--shadow-medium);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.search-result-item:hover,
.search-result-item:focus {
    background: var(--bg-secondary);
    outline: none;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.search-result-preview {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Highlight search terms */
.highlight {
    background: rgba(247, 223, 30, 0.3);
    padding: 0.1rem 0.2rem;
    border-radius: 2px;
    font-weight: 600;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--secondary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px var(--shadow-medium);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 20px var(--shadow-heavy);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top svg {
    width: 20px;
    height: 20px;
}

/* Print styles for documentation */
@media print {
    .compatibility-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .compat-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .search-container {
        display: none;
    }
    
    #back-to-top {
        display: none;
    }
}

/* Smooth transitions for interactive elements */
* {
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* Further Resources Section Enhancements */
#resources {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2px 12px var(--shadow-light);
    padding: 2.5rem 2rem;
    margin: 3rem 0;
    border-left: 4px solid var(--primary-color);
}

#resources h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#resources h2::before {
    content: '📚';
    font-size: 1.3em;
}

#resources ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#resources li {
    background: rgba(247, 223, 30, 0.08);
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.2rem;
    padding: 1rem 1.5rem;
    font-size: 1.08rem;
    color: var(--text-secondary);
    box-shadow: 0 1px 4px var(--shadow-light);
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#resources li:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 4px 16px var(--shadow-medium);
}

#resources a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 2px;
}

#resources a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
}
