/* ==========================================
   TEXTSIGHT.AI BLOG - DARK TEAL THEME
   Matches index.html design system exactly
   Version: 3.0 - Dark Theme
   ========================================== */

/* ==========================================
   CSS VARIABLES - TEAL/CYAN DESIGN SYSTEM
   (Same as index.html)
   ========================================== */
:root {
    /* Primary Colors - TEAL */
    --primary-50: #ecfeff;
    --primary-100: #cffafe;
    --primary-200: #a5f3fc;
    --primary-300: #67e8f9;
    --primary-400: #22d3ee;
    --primary-500: #06b6d4;
    --primary-600: #0891b2;
    --primary-700: #0e7490;
    --primary-800: #155e75;
    --primary-900: #164e63;
    
    /* Background Colors - Navy */
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Border Colors */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --border-glow: rgba(6, 182, 212, 0.5);
    
    /* Semantic Colors */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.1);
    
    /* Gradients - TEAL */
    --gradient-primary: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --gradient-light: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
    --gradient-glow: linear-gradient(135deg, rgba(6, 182, 212, 0.4) 0%, rgba(34, 211, 238, 0.2) 100%);
    --gradient-bg: radial-gradient(ellipse at top, #1e293b 0%, #0f172a 50%, #020617 100%);
    --gradient-hero: radial-gradient(circle at 30% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
                   radial-gradient(circle at 70% 80%, rgba(34, 211, 238, 0.1) 0%, transparent 40%);
    
    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows - TEAL */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 60px rgba(6, 182, 212, 0.3);
    --shadow-glow-lg: 0 0 100px rgba(6, 182, 212, 0.4);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Satoshi', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.gradient-text {
    background: var(--gradient-light);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   BUTTONS - TEAL
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: 17px;
    border-radius: var(--radius-xl);
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* ==========================================
   NAVIGATION (Same as index.html)
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-4) 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Satoshi', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.logo-text {
    color: white;
    letter-spacing: -0.02em;
}

.logo-ai {
    color: #06b6d4;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    background: transparent;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-6);
    z-index: 999;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: var(--space-4) 0;
    font-size: 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    transition: color var(--transition-fast);
}

.mobile-nav a:hover {
    color: var(--primary-400);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

/* ==========================================
   BLOG HERO SECTION
   ========================================== */
.blog-hero {
    position: relative;
    padding: 160px 0 80px;
    background: var(--gradient-bg);
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    pointer-events: none;
}

.blog-hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    color: var(--primary-400);
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-10);
    line-height: 1.6;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    max-width: 500px;
    margin: 0 auto var(--space-8);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-1);
    transition: all var(--transition-base);
}

.search-bar:focus-within {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
}

.search-bar input {
    flex: 1;
    padding: var(--space-4) var(--space-5);
    background: transparent;
    border: none;
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
}

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

.search-btn {
    padding: var(--space-3) var(--space-5);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.search-btn svg {
    width: 20px;
    height: 20px;
    color: white;
}

/* Category Filters */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
}

.filter-btn {
    padding: var(--space-2) var(--space-5);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--primary-500);
    color: var(--primary-400);
    background: rgba(6, 182, 212, 0.1);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

/* ==========================================
   CATEGORY BADGES
   ========================================== */
.category-badge {
    display: inline-flex;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-ai { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }
.badge-guide { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.badge-news { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-product { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-tutorial { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.badge-case-study { background: rgba(236, 72, 153, 0.2); color: #f472b6; }
.badge-tips { background: rgba(99, 102, 241, 0.2); color: #818cf8; }
.badge-research { background: rgba(20, 184, 166, 0.2); color: #2dd4bf; }

/* ==========================================
   FEATURED ARTICLE SECTION
   ========================================== */
.featured-section {
    padding: var(--space-20) 0;
    background: var(--bg-dark);
}

.featured-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-400);
    margin-bottom: var(--space-6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.featured-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

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

.featured-image {
    position: relative;
    height: 100%;
    min-height: 420px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-darker) 100%);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.featured-card:hover .featured-image img {
    transform: scale(1.03);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(15, 23, 42, 0.95) 50%, rgba(34, 211, 238, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    top: -40px;
    right: -40px;
    animation: float-slow 8s ease-in-out infinite;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
    bottom: -30px;
    left: -30px;
    animation: float-slow 8s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10px, -10px) scale(1.1); }
}

/* Category-specific gradient backgrounds */
.badge-ai ~ .image-placeholder,
.article-card[data-category="ai-detection"] .image-placeholder {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, var(--bg-darker) 50%, rgba(6, 182, 212, 0.1) 100%);
}

.badge-guide ~ .image-placeholder,
.article-card[data-category="guides"] .image-placeholder {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, var(--bg-darker) 50%, rgba(139, 92, 246, 0.1) 100%);
}

.badge-tips ~ .image-placeholder,
.article-card[data-category="tips"] .image-placeholder {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, var(--bg-darker) 50%, rgba(99, 102, 241, 0.1) 100%);
}

.badge-news ~ .image-placeholder,
.article-card[data-category="news"] .image-placeholder {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, var(--bg-darker) 50%, rgba(245, 158, 11, 0.1) 100%);
}

.badge-tutorial ~ .image-placeholder,
.article-card[data-category="tutorials"] .image-placeholder {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, var(--bg-darker) 50%, rgba(239, 68, 68, 0.1) 100%);
}

.image-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--primary-400);
    opacity: 0.6;
    margin-bottom: var(--space-2);
    position: relative;
    z-index: 1;
}

.image-placeholder span {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.featured-image .category-badge {
    position: absolute;
    top: var(--space-6);
    left: var(--space-6);
}

.featured-content {
    padding: var(--space-12);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: var(--space-4);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

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

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

.featured-excerpt {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

/* ==========================================
   AUTHOR INFO
   ========================================== */
.author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: white;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.author-role {
    font-size: 12px;
    color: var(--text-muted);
}

.meta-divider {
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 14px;
    color: var(--text-secondary);
}

.meta-item svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

/* Read More Button */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-base);
    align-self: flex-start;
    border: none;
    cursor: pointer;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
}

.read-more-btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.read-more-btn:hover svg {
    transform: translateX(4px);
}

/* ==========================================
   ARTICLES GRID SECTION
   ========================================== */
.articles-section {
    padding: var(--space-20) 0;
    background: var(--bg-darker);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-10);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.article-count {
    font-size: 14px;
    color: var(--text-muted);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

/* ==========================================
   ARTICLE CARD
   ========================================== */
.article-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-500);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
}

.article-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-darker) 100%);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-image img {
    transform: scale(1.08);
}

.article-image .image-placeholder {
    height: 100%;
}

.article-image .image-placeholder svg {
    width: 48px;
    height: 48px;
}

.article-image .category-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
}

.article-content {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--space-3);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.article-title a {
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.article-title a:hover {
    color: var(--primary-400);
}

.article-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-5);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 13px;
    color: var(--text-muted);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-color);
}

.article-meta .separator {
    width: 3px;
    height: 3px;
    background: var(--text-muted);
    border-radius: 50%;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.article-meta svg {
    width: 14px;
    height: 14px;
}

/* ==========================================
   LOAD MORE BUTTON
   ========================================== */
.load-more {
    text-align: center;
}

.load-more-btn {
    padding: var(--space-4) var(--space-10);
    background: transparent;
    border: 2px solid var(--primary-500);
    color: var(--primary-400);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: inherit;
}

.load-more-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none;
}

.load-more-btn .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: var(--space-2);
}

/* ==========================================
   NO RESULTS STATE
   ========================================== */
.no-results {
    text-align: center;
    padding: var(--space-20) var(--space-5);
    grid-column: 1 / -1;
}

.no-results svg {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: var(--space-6);
}

.no-results h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.no-results p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.no-results button {
    padding: var(--space-3) var(--space-6);
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.no-results button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

/* ==========================================
   BLOG POST - HERO SECTION
   ========================================== */
.post-hero {
    position: relative;
    padding: 160px 0 60px;
    background: var(--gradient-bg);
    overflow: hidden;
}

.post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    pointer-events: none;
}

.post-hero .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: var(--space-6);
}

.breadcrumb a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

.breadcrumb svg {
    width: 16px;
    height: 16px;
}

.post-hero .category-badge {
    margin-bottom: var(--space-5);
}

.post-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-6);
    letter-spacing: -0.02em;
}

.post-subtitle {
    font-size: 20px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.post-meta .author {
    gap: var(--space-3);
}

.post-meta .author-avatar {
    width: 48px;
    height: 48px;
}

.post-meta .meta-item {
    font-size: 15px;
}

/* ==========================================
   BLOG POST - FEATURED IMAGE
   ========================================== */
.post-featured-image {
    margin-top: -40px;
    margin-bottom: var(--space-16);
    position: relative;
    z-index: 2;
}

.post-featured-image .container {
    max-width: 1000px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-color);
}

.post-featured-image .image-placeholder {
    height: 400px;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-color);
}

/* ==========================================
   BLOG POST - CONTENT AREA
   ========================================== */
.post-content-wrapper {
    display: grid;
    grid-template-columns: 1fr minmax(0, 720px) 1fr;
    gap: var(--space-12);
    padding: 0 var(--space-6) var(--space-20);
}

/* Table of Contents Sidebar */
.toc-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.toc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
}

.toc-card h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: var(--space-2);
}

.toc-list a {
    display: block;
    padding: var(--space-2) var(--space-3);
    font-size: 14px;
    color: var(--text-secondary);
    border-left: 2px solid transparent;
    transition: all var(--transition-fast);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.toc-list a:hover {
    color: var(--primary-400);
    background: rgba(6, 182, 212, 0.1);
    border-left-color: var(--primary-500);
}

.toc-list a.active {
    color: var(--primary-400);
    background: rgba(6, 182, 212, 0.1);
    border-left-color: var(--primary-500);
    font-weight: 500;
}

.toc-list .toc-h3 {
    padding-left: var(--space-6);
    font-size: 13px;
}

/* Main Article Content */
.post-content {
    max-width: 720px;
}

.post-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-top: var(--space-12);
    margin-bottom: var(--space-5);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-color);
    letter-spacing: -0.02em;
}

.post-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.post-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
    letter-spacing: -0.01em;
}

.post-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
}

.post-content p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: var(--space-6);
    color: var(--text-secondary);
}

.post-content a {
    color: var(--primary-400);
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

.post-content ul,
.post-content ol {
    margin-bottom: var(--space-6);
    padding-left: var(--space-6);
}

.post-content li {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: var(--space-3);
    color: var(--text-secondary);
}

.post-content blockquote {
    margin: var(--space-8) 0;
    padding: var(--space-6) var(--space-8);
    background: rgba(6, 182, 212, 0.1);
    border-left: 4px solid var(--primary-500);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.post-content blockquote p {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 0;
    color: var(--text-primary);
}

.post-content img {
    width: 100%;
    border-radius: var(--radius-lg);
    margin: var(--space-8) 0;
    border: 1px solid var(--border-color);
}

/* Code Blocks */
.post-content pre {
    margin: var(--space-8) 0;
    padding: var(--space-6);
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    position: relative;
}

.post-content pre code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.post-content code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9em;
    padding: 2px 8px;
    background: var(--bg-card);
    border-radius: 4px;
    color: var(--primary-400);
}

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

/* Share Sidebar */
.share-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.share-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
}

.share-card h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.share-btn:hover {
    border-color: var(--primary-500);
    color: var(--primary-400);
    background: rgba(6, 182, 212, 0.1);
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

/* ==========================================
   POST TAGS
   ========================================== */
.post-tags {
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-color);
}

.post-tags h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tag {
    padding: var(--space-2) var(--space-4);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.tag:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--primary-500);
    color: var(--primary-400);
}

/* ==========================================
   AUTHOR BIO BOX
   ========================================== */
.author-bio {
    margin-top: var(--space-12);
    padding: var(--space-8);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    display: flex;
    gap: var(--space-6);
}

.author-bio .author-avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    font-size: 24px;
}

.author-bio-content h4 {
    font-size: 18px;
    margin-bottom: var(--space-1);
}

.author-bio-content .author-title {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: var(--space-3);
}

.author-bio-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.author-social {
    display: flex;
    gap: var(--space-3);
}

.author-social a {
    width: 36px;
    height: 36px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.author-social a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.author-social svg {
    width: 18px;
    height: 18px;
}

/* ==========================================
   RELATED ARTICLES SECTION
   ========================================== */
.related-section {
    padding: var(--space-20) 0;
    background: var(--bg-darker);
}

.related-section .section-title {
    text-align: center;
    margin-bottom: var(--space-12);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

/* ==========================================
   NEWSLETTER SECTION
   ========================================== */
.newsletter-section {
    padding: var(--space-24) 0;
    background: var(--bg-card);
    text-align: center;
}

.newsletter-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.newsletter-section p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto var(--space-8);
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: var(--space-3);
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: var(--space-4) var(--space-6);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: all var(--transition-fast);
    font-family: inherit;
}

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

.newsletter-form input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
}

.newsletter-form button {
    padding: var(--space-4) var(--space-8);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: inherit;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.newsletter-success {
    display: none;
    color: var(--success);
    font-size: 14px;
    margin-top: var(--space-3);
}

.newsletter-success.show {
    display: block;
}

/* ==========================================
   FOOTER (Same as index.html)
   ========================================== */
.footer {
    background: var(--bg-darker);
    padding: var(--space-16) 0 var(--space-8);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand .logo {
    margin-bottom: var(--space-4);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--space-3);
}

.footer-column a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 14px;
    transition: color var(--transition-fast);
}

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

/* ==========================================
   INFO BOXES (Blog Post)
   ========================================== */
.info-box {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin: var(--space-8) 0;
    border: 1px solid;
}

.info-box > svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box-content p {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.7;
}

.info-box.tip {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.3);
}

.info-box.tip > svg {
    color: var(--primary-400);
}

.info-box.tip .info-box-content p {
    color: var(--text-secondary);
}

.info-box.tip strong {
    color: var(--primary-400);
}

.info-box.warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
}

.info-box.warning > svg {
    color: #fbbf24;
}

.info-box.warning .info-box-content p {
    color: var(--text-secondary);
}

.info-box.warning strong {
    color: #fbbf24;
}

/* ==========================================
   MOBILE NAV BUTTONS
   ========================================== */
.mobile-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-color);
}

.mobile-nav-buttons .btn {
    text-align: center;
    justify-content: center;
}

/* ==========================================
   COOKIE CONSENT
   ========================================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: var(--space-4) var(--space-6);
    z-index: 10000;
    display: none;
}

.cookie-consent.show {
    display: block;
}

.cookie-consent-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.cookie-consent-text p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.cookie-consent-text a {
    color: var(--primary-400);
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: var(--space-3);
    flex-shrink: 0;
}

.cookie-btn {
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    font-family: inherit;
}

.cookie-btn-decline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.cookie-btn-decline:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

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

.cookie-btn-accept:hover {
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.slide-up {
    animation: slideUp 0.5s ease forwards;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 72px;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 1001;
    transition: width 0.1s ease;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1200px) {
    .post-content-wrapper {
        grid-template-columns: 1fr minmax(0, 720px);
        gap: var(--space-8);
    }
    
    .share-sidebar {
        display: none;
    }
}

@media (max-width: 1024px) {
    .nav-links,
    .nav-buttons {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .articles-grid,
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-card {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        min-height: 300px;
    }
    
    .featured-content {
        padding: var(--space-8);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .post-content-wrapper {
        grid-template-columns: 1fr;
        max-width: 720px;
        margin: 0 auto;
    }
    
    .toc-sidebar {
        display: none;
    }
    
    .hero-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .post-title {
        font-size: 32px;
    }
    
    .hero-subtitle,
    .post-subtitle {
        font-size: 17px;
    }
    
    .articles-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-title {
        font-size: 24px;
    }
    
    .section-header {
        flex-direction: column;
        gap: var(--space-3);
        align-items: flex-start;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-section h2 {
        font-size: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-5);
        text-align: center;
    }
    
    .post-content h2 {
        font-size: 24px;
    }
    
    .post-content h3 {
        font-size: 20px;
    }
    
    .post-content p,
    .post-content li {
        font-size: 16px;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-social {
        justify-content: center;
    }
    
    .post-meta {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    .blog-hero,
    .post-hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .post-title {
        font-size: 26px;
    }
    
    .category-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: var(--space-2);
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
    
    .featured-content {
        padding: var(--space-6);
    }
    
    .article-content {
        padding: var(--space-5);
    }
    
    .article-title {
        font-size: 18px;
    }
    
    .search-bar {
        flex-direction: column;
        padding: var(--space-2);
    }
    
    .search-bar input {
        width: 100%;
        padding: var(--space-3) var(--space-4);
    }
    
    .search-btn {
        width: 100%;
        padding: var(--space-3);
    }
    
    .post-content-wrapper {
        padding: 0 var(--space-4) var(--space-16);
    }
    
    .post-content blockquote {
        padding: var(--space-5);
    }
    
    .post-content pre {
        padding: var(--space-4);
        margin-left: calc(-1 * var(--space-4));
        margin-right: calc(-1 * var(--space-4));
        border-radius: 0;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .navbar,
    .footer,
    .newsletter-section,
    .share-sidebar,
    .toc-sidebar,
    .related-section,
    .reading-progress {
        display: none;
    }
    
    .post-content-wrapper {
        display: block;
    }
    
    .post-content {
        max-width: 100%;
    }
    
    .post-hero {
        padding-top: 0;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .post-content p,
    .post-content li {
        color: black;
    }
}