/* CSS Custom Properties for Theme Colors */
:root {
    --primary: #2563eb; /* Modern blue - better contrast */
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --accent: #10b981; /* Green accent for success states */
    --warning: #f59e0b; /* Amber for warnings */
    --error: #ef4444; /* Red for errors */
    
    /* Light theme colors - WCAG AA compliant */
    --bg-primary-light: #ffffff;
    --bg-secondary-light: #f8fafc;
    --bg-tertiary-light: #f1f5f9;
    --text-primary-light: #1e293b; /* Dark gray for better contrast */
    --text-secondary-light: #475569; /* Medium gray, still accessible */
    --text-tertiary-light: #64748b;
    --border-light: #e2e8f0;
    --border-focus-light: #3b82f6;
    
    /* Dark theme colors - WCAG AA compliant */
    --bg-primary-dark: #0f172a;
    --bg-secondary-dark: #1e293b;
    --bg-tertiary-dark: #334155;
    --text-primary-dark: #f8fafc; /* Light for better contrast on dark */
    --text-secondary-dark: #cbd5e1; /* Medium light gray */
    --text-tertiary-dark: #94a3b8;
    --border-dark: #475569;
    --border-focus-dark: #60a5fa;
    
    /* Focus and interaction states */
    --focus-ring: 0 0 0 3px rgba(59, 130, 246, 0.5);
    --focus-ring-dark: 0 0 0 3px rgba(96, 165, 250, 0.5);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    
    /* Shadows for depth */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Typography scale */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* Theme switching */
[data-theme="light"] {
    --bg-primary: var(--bg-primary-light);
    --bg-secondary: var(--bg-secondary-light);
    --bg-tertiary: var(--bg-tertiary-light);
    --text-primary: var(--text-primary-light);
    --text-secondary: var(--text-secondary-light);
    --text-tertiary: var(--text-tertiary-light);
    --border: var(--border-light);
    --border-focus: var(--border-focus-light);
    --focus-ring: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

[data-theme="dark"] {
    --bg-primary: var(--bg-primary-dark);
    --bg-secondary: var(--bg-secondary-dark);
    --bg-tertiary: var(--bg-tertiary-dark);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --text-tertiary: var(--text-tertiary-dark);
    --border: var(--border-dark);
    --border-focus: var(--border-focus-dark);
    --focus-ring: 0 0 0 3px rgba(96, 165, 250, 0.5);
}

/* Focus styles for accessibility */
*:focus {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* Ensure keyboard navigation is visible */
*:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

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

/* Home Page Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.home-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin-top: 2rem;
}

.main-content {
    min-width: 0;
}

/* Header */
.site-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.header-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.header-avatar img:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.title-content {
    display: flex;
    flex-direction: column;
}

.site-title a {
    color: var(--primary);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
}

.site-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

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

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.theme-toggle {
    background: none;
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--primary);
    transform: scale(1.1);
}

.theme-toggle-icon {
    font-size: 1.2rem;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    min-width: 140px;
    justify-content: center;
}

.cta-button:not(.secondary) {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-button:not(.secondary):hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

.avatar {
    margin-bottom: 2rem;
}

.avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

/* Post Grid */
.recent-posts {
    margin-bottom: 3rem;
}

.recent-posts h2 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 2rem;
}

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

.post-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.15);
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    margin-bottom: 0.5rem;
}

.post-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h3 a:hover {
    color: var(--primary);
}

.post-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.category, .tag {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-block;
}

.category:hover, .tag:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Improved link styles */
a {
    color: var(--primary);
    transition: color 0.3s ease;
}

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

/* Button base styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px; /* Touch target size */
    gap: 0.5rem;
}

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

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

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
}

.post-summary {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* Single Post Layout */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.post-single {
    min-width: 0; /* Prevent grid overflow */
}

.post-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.toc-widget {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
}

.toc-widget h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.toc-content {
    font-size: 0.9rem;
}

.toc-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.toc-content li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.toc-content li:hover {
    border-left-color: var(--primary);
}

.toc-content a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.toc-content a:hover {
    color: var(--primary);
}

/* Nested TOC items */
.toc-content ul ul {
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.toc-content ul ul li {
    font-size: 0.85rem;
    opacity: 0.8;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.post-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-featured-image {
    margin-bottom: 3rem;
}

.post-featured-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}



.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.post-content h1, .post-content h2, .post-content h3, 
.post-content h4, .post-content h5, .post-content h6 {
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
}

.post-content h2 {
    color: var(--primary);
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.post-content code {
    background: var(--bg-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9em;
}

.post-content pre {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--border);
}

.post-content pre code {
    background: none;
    padding: 0;
}

/* Post Footer */
.post-footer {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    margin-top: 3rem;
}

.post-tags {
    margin-bottom: 2rem;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.prev-post, .next-post {
    flex: 1;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.prev-post:hover, .next-post:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.next-post {
    text-align: right;
}

/* List Pages */
.list-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.list-header h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.post-count {
    color: var(--text-secondary);
}

.post-list {
    max-width: 800px;
    margin: 0 auto;
}

.post-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.post-thumbnail {
    flex-shrink: 0;
    width: 200px;
}

.post-thumbnail img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.post-info {
    flex: 1;
}

.post-item .post-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-item .post-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.post-item .post-title a:hover {
    color: var(--primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
}

.pagination-prev, .pagination-next, .pagination-number {
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.pagination-prev:hover, .pagination-next:hover, .pagination-number:hover {
    background: var(--primary);
    color: white;
}

.pagination-current {
    padding: 0.75rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    font-weight: bold;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

/* Sidebar Widgets */
.sidebar {
    margin-top: 3rem;
}

.widget {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.widget:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.widget h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    margin-bottom: 0.75rem;
}

.widget a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* Specific widget styles */
.about-widget p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white !important;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

/* Brand-specific hover colors for sidebar */
.social-link.social-brand-github:hover {
    background: #333;
}

.social-link.social-brand-twitter:hover {
    background: #1da1f2;
}

.social-link.social-brand-linkedin:hover {
    background: #0077b5;
}

/* Social link styling with perfect centering */
.social-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white !important;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
}

.social-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.count {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    font-weight: normal;
}

.rss-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--accent);
    color: white !important;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.rss-link:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Screen reader only class for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Search Widget Styles */
.search-widget {
    margin-bottom: 2rem;
}

.search-form {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: var(--background);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    width: 100%;
    min-width: 0; /* Allow input to shrink */
}

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

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Prevent button from shrinking */
    width: 44px; /* Fixed width for button */
    height: auto;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.search-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.search-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .search-form {
        border-radius: 6px;
    }
    
    .search-input {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .search-btn {
        padding: 0.625rem;
        width: 40px;
    }
    
    .search-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .site-title {
        justify-content: center;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 250px;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-item {
        flex-direction: column;
    }
    
    .post-thumbnail {
        width: 100%;
    }
    
    .post-nav {
        flex-direction: column;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    /* Single post responsive */
    .post-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .post-sidebar {
        position: static;
        order: -1; /* Show TOC before content on mobile */
    }
    
    .toc-widget {
        margin-bottom: 2rem;
    }
    
    /* Home page responsive */
    .home-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .home-sidebar {
        order: -1; /* Show sidebar before main content on mobile */
    }
    
    /* Footer responsive */
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
        text-align: left;
    }
    
    .footer-social {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .header-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .site-title a {
        font-size: 1.5rem;
    }
    
    .site-subtitle {
        font-size: 0.8rem;
    }
    
    /* Footer responsive fixes */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .footer-social-link {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .footer-social-link svg {
        width: 16px;
        height: 16px;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-section ul {
        font-size: 0.9rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .main-nav {
        gap: 0.75rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .theme-toggle {
        width: 35px;
        height: 35px;
    }
}

/* Social icon base styles */
.social-icon {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    stroke: currentColor;
}

/* Additional brand-specific hover colors */
.social-brand-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%) !important;
    color: white !important;
}

.social-brand-youtube:hover {
    background: #ff0000 !important;
    color: white !important;
}

.social-brand-facebook:hover {
    background: #1877f2 !important;
    color: white !important;
}

.social-brand-discord:hover {
    background: #5865f2 !important;
    color: white !important;
}

.social-rss:hover {
    background: #ff6600 !important;
    color: white !important;
}

.social-mail:hover {
    background: var(--accent) !important;
    color: white !important;
}

.social-website:hover {
    background: var(--primary) !important;
    color: white !important;
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
    color: var(--text-secondary);
}

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

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

.footer-section p {
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

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

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

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    color: var(--text-primary) !important;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.footer-social-link:hover {
    background: var(--primary);
    color: white !important;
    transform: translateY(-2px);
    border-color: var(--primary);
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}
