/* 
 * Premium Urdu Blog - Modern Cyber Dark Theme
 * A sophisticated dark theme with cool cyan accents
 * RTL Support with beautiful typography
 */

/* ========================================
   CSS Variables - Cool Cyber Color Palette
   ======================================== */
:root {
    /* Deep Dark Backgrounds with cool undertones */
    --bg-primary: #0a0d12;
    --bg-secondary: #0d1117;
    --bg-tertiary: #111820;
    --bg-card: rgba(17, 24, 32, 0.85);
    --bg-card-solid: #151c25;
    --bg-card-hover: rgba(22, 30, 40, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    /* Primary Accent - Cool Cyan/Teal */
    --accent-primary: #22d3ee;
    --accent-secondary: #67e8f9;
    --accent-tertiary: #06b6d4;
    --accent-glow: rgba(34, 211, 238, 0.12);
    --accent-glow-strong: rgba(34, 211, 238, 0.22);
    --accent-border: rgba(34, 211, 238, 0.25);
    --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #22d3ee 50%, #67e8f9 100%);
    
    /* Secondary Accent - Soft Violet */
    --purple-primary: #a78bfa;
    --purple-secondary: #c4b5fd;
    --purple-glow: rgba(167, 139, 250, 0.12);
    --purple-border: rgba(167, 139, 250, 0.25);
    
    /* Text Colors */
    --text-primary: #f0f6fc;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --text-dim: #4b5563;
    
    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.15);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 40px rgba(34, 211, 238, 0.12);
    --shadow-glow-strong: 0 0 60px rgba(34, 211, 238, 0.2);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    
    /* Layout */
    --sidebar-width: 300px;
    --header-height: 72px;
    --max-width: 1440px;
    
    /* Typography */
    --font-display: 'Noto Nastaliq Urdu', serif;
    --font-body: 'Noto Nastaliq Urdu', 'IBM Plex Sans Arabic', serif;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    direction: rtl;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background - Subtle mesh gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 10% -20%, rgba(34, 211, 238, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 90% 10%, rgba(167, 139, 250, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 70% 40% at 50% 120%, rgba(34, 211, 238, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Subtle noise texture overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: -1;
}

/* ========================================
   Layout Structure
   ======================================== */
.layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   Modern Header
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(10, 13, 18, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-normal);
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-tertiary) 30%, 
        var(--accent-primary) 50%, 
        var(--accent-tertiary) 70%, 
        transparent 100%);
    opacity: 0.5;
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--shadow-sm), 0 0 20px rgba(34, 211, 238, 0.25);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
}

.logo-icon svg {
    stroke: var(--bg-primary);
    position: relative;
    z-index: 1;
}

.logo:hover .logo-icon {
    box-shadow: var(--shadow-md), 0 0 35px rgba(34, 211, 238, 0.4);
    transform: scale(1.05) rotate(-2deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.site-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    position: relative;
    z-index: 2;
    padding-bottom: 0.5rem;
}

.site-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    margin-right: 2rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-normal);
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    background: var(--accent-glow);
    border-color: var(--accent-border);
    color: var(--accent-primary);
}

/* ========================================
   Main Container
   ======================================== */
.main-container {
    flex: 1;
    display: flex;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding: 2rem;
    gap: 2.5rem;
}

/* ========================================
   Modern Sidebar
   ======================================== */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    height: fit-content;
    max-height: calc(100vh - var(--header-height) - 4rem);
    overflow-y: auto;
    padding-left: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-light) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 2px;
}

.sidebar-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.sidebar-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--border-medium) 50%, 
        transparent 100%);
}

.sidebar-section:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 35px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 1px;
}

.sidebar-title svg {
    color: var(--accent-primary);
    opacity: 0.9;
}

.sidebar-title span:last-child {
    color: var(--text-primary);
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.sidebar-link:hover {
    background: var(--accent-glow);
    color: var(--accent-primary);
    border-color: var(--accent-border);
    transform: translateX(-4px);
}

.sidebar-link.active {
    background: var(--accent-glow-strong);
    color: var(--accent-primary);
    border-color: var(--accent-border);
}

.sidebar-link .count {
    background: var(--bg-primary);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    font-weight: 500;
}

.about-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 2;
}

/* ========================================
   Content Area
   ======================================== */
.content {
    flex: 1;
    min-width: 0;
}

/* ========================================
   Hero Featured Post Section
   ======================================== */
.hero-featured {
    margin-bottom: 2.5rem;
    position: relative;
}

.featured-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent-glow);
    border: 1px solid var(--accent-border);
    border-radius: 30px;
    font-size: 0.75rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.featured-label svg {
    width: 14px;
    height: 14px;
}

.featured-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    position: relative;
    transition: var(--transition-normal);
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

.featured-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(34, 211, 238, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.featured-card:hover {
    border-color: var(--accent-border);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-6px);
}

.featured-content {
    padding: 2.5rem;
    position: relative;
    z-index: 1;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.featured-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.featured-date svg {
    width: 15px;
    height: 15px;
    opacity: 0.7;
}

.featured-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.featured-category {
    background: var(--purple-glow);
    color: var(--purple-primary);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--purple-border);
    transition: var(--transition-fast);
}

.featured-category:hover {
    background: var(--purple-primary);
    color: var(--bg-primary);
}

.featured-title {
    font-family: var(--font-display);
    font-size: 1.85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    position: relative;
}

.featured-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-normal);
}

.featured-title a:hover {
    color: var(--accent-primary);
}

.featured-excerpt {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 1.75rem;
    max-width: 90%;
}

.featured-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    background: var(--accent-gradient);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm), 0 0 20px rgba(34, 211, 238, 0.25);
    position: relative;
    overflow: hidden;
}

.featured-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
}

.featured-link:hover {
    box-shadow: var(--shadow-md), 0 0 35px rgba(34, 211, 238, 0.4);
    transform: translateY(-2px);
    gap: 1rem;
}

.featured-link svg {
    transition: var(--transition-fast);
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.section-title svg {
    color: var(--accent-primary);
}

/* ========================================
   Breadcrumb
   ======================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.625rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    width: fit-content;
}

.breadcrumb a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.breadcrumb svg {
    opacity: 0.5;
}

/* ========================================
   Search Container
   ======================================== */
.search-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
}

.search-box {
    flex: 1;
    max-width: 420px;
    position: relative;
}

.search-box svg {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: var(--transition-fast);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    padding-right: 3.25rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    transition: var(--transition-normal);
}

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

.search-input:focus {
    outline: none;
    border-color: var(--accent-border);
    box-shadow: 0 0 0 3px var(--accent-glow), 0 0 20px rgba(34, 211, 238, 0.1);
}

.search-input:focus + svg {
    color: var(--accent-primary);
}

.posts-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    white-space: nowrap;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

/* ========================================
   Posts Grid
   ======================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

/* ========================================
   Modern Post Card
   ======================================== */
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-normal);
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    position: relative;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition-normal);
}

.post-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at bottom left, rgba(34, 211, 238, 0.03) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition-normal);
    pointer-events: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(34, 211, 238, 0.08);
}

.post-card:hover::before {
    opacity: 1;
}

.post-card:hover::after {
    opacity: 1;
}

.card-content {
    padding: 1.5rem;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.card-categories {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.card-category {
    background: var(--purple-glow);
    color: var(--purple-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.post-card:hover .card-category {
    border-color: var(--purple-border);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 0.875rem;
}

.card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-normal);
}

.card-title a:hover {
    color: var(--accent-primary);
}

.card-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 2;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4rem 0;
    transition: var(--transition-normal);
    position: relative;
}

.card-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-normal);
}

.card-link:hover {
    gap: 0.875rem;
}

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

/* ========================================
   Single Post Page
   ======================================== */
.post-single {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    position: relative;
}

.post-single::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.post-header {
    padding: 2.5rem;
    position: relative;
    background: linear-gradient(180deg, 
        rgba(34, 211, 238, 0.03) 0%, 
        transparent 100%);
}

.post-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2.5rem;
    right: 2.5rem;
    height: 1px;
    background: var(--border-subtle);
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.post-date svg {
    opacity: 0.7;
}

.post-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-category {
    background: var(--purple-glow);
    color: var(--purple-primary);
    padding: 0.35rem 0.9rem;
    border-radius: 25px;
    font-size: 0.8rem;
    text-decoration: none;
    border: 1px solid var(--purple-border);
    transition: var(--transition-normal);
    font-weight: 500;
}

.post-category:hover {
    background: var(--purple-primary);
    color: var(--bg-primary);
}

.post-title {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.55;
    color: var(--text-primary);
    position: relative;
}

/* Post Content */
.post-content {
    padding: 2.5rem;
    font-size: 1.1rem;
    line-height: 2.3;
}

.post-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.post-content a {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-border);
    transition: var(--transition-fast);
}

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

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.post-content blockquote {
    position: relative;
    border-right: 4px solid var(--accent-primary);
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
    background: var(--bg-glass);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    color: var(--text-secondary);
    font-style: italic;
}

.post-content blockquote::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    right: 0.75rem;
    font-size: 3.5rem;
    color: var(--accent-primary);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.post-content h2, 
.post-content h3, 
.post-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
}

.post-content h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    right: 0;
    width: 45px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* Post Navigation */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    padding: 1.75rem 2.5rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
}

.nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.125rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition-normal);
}

.nav-link:hover {
    border-color: var(--accent-border);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.nav-prev {
    text-align: right;
}

.nav-next {
    text-align: left;
}

.nav-label {
    font-size: 0.7rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.nav-title {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.6;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: var(--accent-gradient);
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.site-footer a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* ========================================
   Hero Featured Animation
   ======================================== */
#featured-post-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#featured-post-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header Scroll State */
.site-header.scrolled {
    background: rgba(10, 13, 18, 0.95);
    box-shadow: var(--shadow-md);
}

/* ========================================
   Sidebar Overlay (Mobile)
   ======================================== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    transition: var(--transition-normal);
}

.sidebar-overlay.open {
    display: block;
    opacity: 1;
}

/* ========================================
   Hidden Class
   ======================================== */
.hidden {
    display: none !important;
}

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

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

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

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

/* ========================================
   Selection Styling
   ======================================== */
::selection {
    background: var(--accent-glow-strong);
    color: var(--accent-primary);
}

/* ========================================
   Focus States for Accessibility
   ======================================== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .main-container {
        padding: 1.75rem;
        gap: 2rem;
    }
    
    .sidebar {
        width: 260px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        max-height: 100vh;
        background: var(--bg-secondary);
        z-index: 100;
        padding: 1.5rem;
        padding-top: calc(var(--header-height) + 1.5rem);
        transition: right var(--transition-normal);
        border-left: 1px solid var(--border-subtle);
    }
    
    .sidebar.open {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .featured-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    :root {
        --header-height: 64px;
    }
    
    .header-content {
        padding: 0 1.25rem;
    }
    
    .site-title {
        font-size: 1.05rem;
    }
    
    .main-container {
        padding: 1.25rem;
    }
    
    .search-container {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .hero-featured {
        margin-bottom: 1.75rem;
    }
    
    .featured-content {
        padding: 1.5rem;
    }
    
    .featured-title {
        font-size: 1.3rem;
    }
    
    .featured-excerpt {
        font-size: 0.95rem;
        max-width: 100%;
    }
    
    .post-header {
        padding: 1.75rem;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .post-content {
        padding: 1.75rem;
        font-size: 1rem;
    }
    
    .post-nav {
        grid-template-columns: 1fr;
        padding: 1.25rem 1.75rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
    
    .logo-icon {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }
    
    .card-content {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .featured-link {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .posts-count {
        display: none;
    }
    
    .posts-grid {
        gap: 1rem;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
    }
    50% {
        box-shadow: 0 0 35px rgba(34, 211, 238, 0.4);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Loading skeleton animation */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-card) 25%,
        var(--bg-card-hover) 50%,
        var(--bg-card) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

/* Animate sidebar sections on load */
.sidebar-section {
    animation: fadeInUp 0.5s ease forwards;
}

.sidebar-section:nth-child(1) { animation-delay: 0.1s; }
.sidebar-section:nth-child(2) { animation-delay: 0.2s; }
.sidebar-section:nth-child(3) { animation-delay: 0.3s; }
