/* =====================================================
   AI TOOLS HUB - Premium Blog Design System
   Modern, Professional, AdSense-Ready
   ===================================================== */

/* CSS Variables */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #111128;
    --bg-card: #161633;
    --bg-card-hover: #1c1c42;
    --bg-elevated: #1e1e45;
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --accent-light: rgba(139, 92, 246, 0.12);
    --accent-glow: rgba(139, 92, 246, 0.4);
    --accent2: #06b6d4;
    --accent2-light: rgba(6, 182, 212, 0.12);
    --green: #10b981;
    --green-light: rgba(16, 185, 129, 0.12);
    --yellow: #f59e0b;
    --red: #ef4444;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --border: rgba(148, 163, 184, 0.1);
    --border-hover: rgba(139, 92, 246, 0.4);
    --glass: rgba(22, 22, 51, 0.8);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-accent: 0 4px 20px rgba(139, 92, 246, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent); color: white; }

/* Utility */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}
.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
}
.logo:hover { transform: scale(1.02); }
.logo-img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.3);
    transition: var(--transition);
}
.logo:hover .logo-img { box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5); }
.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.accent { color: var(--accent); }

/* Desktop Nav */
.main-nav { display: flex; gap: 2px; align-items: center; }
.main-nav a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}
.main-nav a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}
.main-nav a.active {
    color: var(--accent);
    background: var(--accent-light);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    flex-direction: column;
    gap: 5px;
    transition: var(--transition);
}
.mobile-toggle:hover { border-color: var(--accent); }
.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding-top: 90px;
}
.mobile-overlay.active { display: flex; justify-content: center; align-items: flex-start; }
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 90%;
    max-width: 360px;
}
.mobile-nav a {
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 500;
    padding: 16px 20px;
    border-radius: 12px;
    transition: var(--transition);
}
.mobile-nav a:hover {
    background: var(--accent-light);
    color: var(--accent);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    text-align: center;
    padding: 80px 24px 60px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(transparent, var(--bg-primary));
    z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--accent-light);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}
.hero-badge svg { width: 14px; height: 14px; }
.hero h1 {
    font-size: 52px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -1.5px;
    line-height: 1.1;
}
.hero h1 .accent {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 19px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 28px;
    line-height: 1.6;
}
.search-box {
    max-width: 540px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px;
    transition: var(--transition);
}
.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}
.search-box input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
}
.search-box input::placeholder { color: var(--text-dim); }
.search-box button {
    padding: 12px 28px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    color: white;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    white-space: nowrap;
}
.search-box button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-accent);
}

/* Stats Bar */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.hero-stat {
    text-align: center;
}
.hero-stat .num {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
}
.hero-stat .label {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 2px;
}

/* =====================================================
   SECTION
   ===================================================== */
.section { padding: 60px 0; }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.section-title .highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 4px;
}
.section-link {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.section-link:hover { gap: 8px; }

/* =====================================================
   ARTICLE GRID & CARDS
   ===================================================== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Featured Article (Large) */
.article-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}
.article-card.featured .card-image { min-height: 280px; }

/* Standard Article Card */
.article-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-accent);
}

/* Card Image */
.card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.article-card:hover .card-image img {
    transform: scale(1.08);
}
.card-image .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(10, 10, 26, 0.9));
}

/* Card Content */
.card-content {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-content .tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    width: fit-content;
}
.card-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-content h3 a { color: inherit; }
.card-content h3 a:hover { color: var(--accent); }
.card-content .excerpt {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.card-content .meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-dim);
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.card-content .meta .read-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* =====================================================
   CATEGORY CARDS
   ===================================================== */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    display: block;
    position: relative;
}
.cat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-accent);
}
.cat-card-image {
    height: 160px;
    overflow: hidden;
    position: relative;
}
.cat-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.cat-card:hover .cat-card-image img {
    transform: scale(1.08);
}
.cat-card-image .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(10, 10, 26, 0.9));
}
.cat-card-body {
    padding: 20px 22px 22px;
    position: relative;
}
.cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
    position: absolute;
    top: -48px;
    left: 22px;
    border: 3px solid var(--bg-card);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.cat-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.cat-card:hover h3 { color: var(--accent); }
.cat-card .count {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.cat-card .explore {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.cat-card:hover .explore { gap: 8px; }

/* =====================================================
   ARTICLE DETAIL
   ===================================================== */
.article-detail { padding: 32px 0 60px; }
.breadcrumb {
    margin-bottom: 28px;
    font-size: 14px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 4px;
}
.breadcrumb a:hover { color: var(--accent); background: var(--accent-light); }
.breadcrumb .sep { color: var(--text-dim); }

.article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}
.article-main {}
.article-main .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.article-main h1 {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 8px;
    margin: 20px 0;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.share-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.share-twitter { background: #1da1f2; }
.share-linkedin { background: #0077b5; }
.share-facebook { background: #1877f2; }
.share-copy { background: var(--bg-elevated); border: 1px solid var(--border); }

/* Article Body */
.article-body {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-secondary);
}
.article-body h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 36px 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-light);
    position: relative;
}
.article-body h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent);
}
.article-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 28px 0 12px;
}
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin-bottom: 18px; padding-left: 28px; }
.article-body li { margin-bottom: 8px; line-height: 1.7; }
.article-body li::marker { color: var(--accent); }
.article-body strong { color: var(--text-primary); font-weight: 600; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--accent-hover); }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; border-radius: var(--radius-sm); overflow: hidden; }
.article-body th, .article-body td { padding: 12px 16px; border: 1px solid var(--border); text-align: left; font-size: 14px; }
.article-body th { background: var(--bg-card); color: var(--text-primary); font-weight: 700; }
.article-body tr:hover { background: rgba(139, 92, 246, 0.04); }
.article-body blockquote {
    border-left: 4px solid var(--accent);
    padding: 16px 20px;
    margin: 20px 0;
    background: var(--accent-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-muted);
    font-style: italic;
}
.article-body code {
    background: var(--bg-elevated);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--accent);
}
.article-body pre {
    background: var(--bg-elevated);
    padding: 20px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--border);
}
.article-body pre code {
    background: none;
    padding: 0;
    color: var(--text-secondary);
}

/* Tags */
.tags {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-pill {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: var(--transition);
}
.tag-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar {}
.sidebar-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}
.sidebar-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-light);
    position: relative;
}
.sidebar-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}
.sidebar-article {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: var(--transition);
}
.sidebar-article:last-child { border-bottom: none; }
.sidebar-article h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.4;
    transition: var(--transition);
}
.sidebar-article:hover h4 { color: var(--accent); }
.sidebar-article .date {
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Sidebar Category List */
.sidebar-cat-list { list-style: none; }
.sidebar-cat-list li { margin-bottom: 6px; }
.sidebar-cat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}
.sidebar-cat-list a:hover {
    background: var(--accent-light);
    color: var(--accent);
}
.sidebar-cat-list .count-badge {
    background: var(--bg-elevated);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* =====================================================
   AD SLOTS
   ===================================================== */
.ad-slot {
    background: var(--accent-light);
    border: 1px dashed rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 500;
    margin: 28px 0;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* =====================================================
   NEWSLETTER
   ===================================================== */
.newsletter {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-glow), transparent);
    border-radius: 50%;
    pointer-events: none;
}
.newsletter h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    position: relative;
}
.newsletter p {
    color: var(--text-muted);
    margin-bottom: 24px;
    position: relative;
}
.newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 460px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}
.newsletter-form input {
    flex: 1;
    min-width: 220px;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: white;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button {
    padding: 14px 28px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    color: white;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}
.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

/* =====================================================
   STATIC PAGES
   ===================================================== */
.static-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px;
}
.static-page h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.static-page .page-subtitle {
    color: var(--text-muted);
    font-size: 17px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.static-page h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 32px 0 14px;
    padding-left: 14px;
    border-left: 3px solid var(--accent);
}
.static-page p { margin-bottom: 16px; line-height: 1.8; }
.static-page ul { margin: 0 0 16px 28px; }
.static-page li { margin-bottom: 8px; line-height: 1.7; }
.static-page li::marker { color: var(--accent); }

/* Contact Form */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}
.form-group textarea { min-height: 150px; resize: vertical; }
.btn-primary {
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    border: none;
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    color: white;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
    transition: var(--transition);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

/* Alert */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}
.alert-success {
    background: var(--green-light);
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.alert-error {
    background: rgba(239, 68, 68, 0.12);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-top: 12px;
    max-width: 320px;
}
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 16px;
    transition: var(--transition);
}
.footer-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
    transform: translateY(-2px);
}
.footer-col h3 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 18px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom p { color: var(--text-dim); font-size: 13px; }
.footer-domain { font-size: 12px; color: var(--text-dim); }

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}
.pagination a, .pagination span {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: var(--transition);
}
.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}
.pagination .current {
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    color: white;
    border-color: var(--accent);
}

/* =====================================================
   BACK TO TOP
   ===================================================== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-accent);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
    font-size: 18px;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; }
    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .article-card.featured { grid-column: span 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-toggle { display: flex; }
    .hero { padding: 50px 20px 40px; }
    .hero h1 { font-size: 32px; letter-spacing: -1px; }
    .hero p { font-size: 16px; }
    .hero-stats { gap: 24px; }
    .hero-stat .num { font-size: 22px; }
    .article-grid { grid-template-columns: 1fr; }
    .article-card.featured { grid-column: span 1; grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .article-main h1 { font-size: 26px; }
    .sidebar { grid-template-columns: 1fr; }
    .section { padding: 40px 0; }
    .newsletter { padding: 32px 20px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .search-box { flex-direction: column; }
    .search-box button { width: 100%; }
    .newsletter-form { flex-direction: column; }
    .hero h1 { font-size: 28px; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .share-buttons { flex-wrap: wrap; }
}

/* =====================================================
   SCROLLBAR
   ===================================================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4b5563; }

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.article-card { animation: fadeInUp 0.4s ease-out; }
.cat-card { animation: fadeInUp 0.4s ease-out; }

/* Stagger animation delay for cards */
.article-card:nth-child(2) { animation-delay: 0.05s; }
.article-card:nth-child(3) { animation-delay: 0.1s; }
.article-card:nth-child(4) { animation-delay: 0.15s; }
.article-card:nth-child(5) { animation-delay: 0.2s; }
.article-card:nth-child(6) { animation-delay: 0.25s; }
