/* ==============================================================================
   NexaTools - Modern SaaS & Editorial Stylesheet
   Pure CSS3 with Modern Variables, Bento Grids, Light/Dark Modes, and Responsive Layouts
   ============================================================================== */

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --accent: #0ea5e9;
    --accent-light: #f0f9ff;
    
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --bg-muted: #f1f5f9;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;
    
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-pill: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.06);
    
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-light: #1e293b;
    --accent: #38bdf8;
    --accent-light: #0f172a;
    
    --bg-base: #090d16;
    --bg-surface: #111827;
    --bg-surface-elevated: #1f2937;
    --bg-muted: #1a2234;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
    
    --border: #1f2937;
    --border-hover: #374151;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.6);
}

/* Base Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-base);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

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

button, input, textarea, select {
    font: inherit;
    color: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

[data-theme="dark"] .site-header {
    background-color: rgba(17, 24, 39, 0.85);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.brand-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    font-weight: 800;
    font-size: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.brand-name {
    font-weight: 800;
}

.brand-img {
    max-height: 40px;
}

.main-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.25rem;
}

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

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.6rem 0.85rem;
    color: var(--text-main);
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
}

.dropdown-menu li a:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    background-color: var(--bg-surface);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

[data-theme="light"] .dark-icon { display: none; }
[data-theme="light"] .light-icon { display: inline-block; }
[data-theme="dark"] .light-icon { display: none; }
[data-theme="dark"] .dark-icon { display: inline-block; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn .bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-surface);
    box-shadow: var(--shadow-xl);
    z-index: 100;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.drawer-title {
    font-weight: 700;
    font-size: 1.2rem;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
}

.drawer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.drawer-nav a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.05rem;
    display: block;
    padding: 0.5rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-main);
    border-color: var(--border);
}

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

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    padding: 4.5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 350px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(14, 165, 233, 0.05) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 840px;
    margin: 0 auto;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.25rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-8 { grid-column: span 8; }
.bento-col-12 { grid-column: span 12; }

.bento-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.bento-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.bento-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.bento-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.bento-card-link {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Sections */
.section {
    padding: 4.5rem 0;
}

.section-bg {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title-wrap {
    max-width: 600px;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.article-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.article-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-xl);
    transform: translateY(-3px);
}

.article-thumb-link {
    display: block;
    aspect-ratio: 16 / 9;
    background-color: var(--bg-muted);
    overflow: hidden;
    position: relative;
}

.article-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-thumb {
    transform: scale(1.04);
}

.article-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-subtle);
    margin-bottom: 0.75rem;
}

.article-category {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.article-title a {
    color: var(--text-main);
}

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

.article-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Smart Text Studio Styles */
.text-studio-container {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.studio-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background-color: var(--bg-muted);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.studio-actions-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tool-action-btn {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tool-action-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.studio-editor-wrap {
    position: relative;
}

.studio-textarea {
    width: 100%;
    min-height: 280px;
    padding: 1.25rem;
    border: none;
    outline: none;
    resize: vertical;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.6;
    background-color: var(--bg-surface);
    color: var(--text-main);
}

.studio-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    padding: 1.25rem;
    background-color: var(--bg-muted);
    border-top: 1px solid var(--border);
}

.stat-item {
    background-color: var(--bg-surface);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: center;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Studio Details Panels */
.studio-analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.analysis-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.analysis-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.analysis-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.keyword-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.keyword-table th, .keyword-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.keyword-table th {
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.keyword-table tr:not(:last-child) td {
    border-bottom: 1px solid var(--border);
}

.density-bar-wrap {
    width: 60px;
    height: 6px;
    background-color: var(--bg-muted);
    border-radius: var(--radius-pill);
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

.density-bar {
    height: 100%;
    background-color: var(--primary);
    border-radius: var(--radius-pill);
}

.suggestions-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.suggestion-item {
    background-color: var(--bg-muted);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

/* Article Public View Layout */
.article-header {
    padding: 3rem 0 2rem;
    max-width: 820px;
    margin: 0 auto;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-subtle);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs span {
    color: var(--text-main);
}

.article-main-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
}

.article-lead {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.article-author-strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-pill);
    background-color: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 700;
}

.article-date-read {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-featured-media {
    max-width: 960px;
    margin: 2rem auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.article-featured-media img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.article-content-wrapper {
    max-width: 820px;
    margin: 0 auto;
    padding: 1rem 0 4rem;
}

/* Article Prose Typography */
.article-prose {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-main);
}

.article-prose h2 {
    font-size: 1.85rem;
    font-weight: 800;
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.02em;
    scroll-margin-top: 90px;
}

.article-prose h3 {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    letter-spacing: -0.01em;
    scroll-margin-top: 90px;
}

.article-prose p {
    margin-bottom: 1.5rem;
}

.article-prose ul, .article-prose ol {
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
}

.article-prose li {
    margin-bottom: 0.5rem;
}

.article-prose blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    background-color: var(--bg-muted);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-main);
}

.article-prose pre {
    background-color: #0f172a;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    margin: 2rem 0;
}

.article-prose code {
    font-family: var(--font-mono);
    background-color: var(--bg-muted);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

.article-prose pre code {
    background-color: transparent;
    padding: 0;
}

.article-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.article-prose th, .article-prose td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
}

.article-prose th {
    background-color: var(--bg-muted);
    font-weight: 700;
}

/* Table of Contents */
.article-toc {
    background-color: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem 0;
}

.toc-header {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.toc-item-main a {
    font-weight: 600;
    color: var(--text-main);
}

.toc-item-sub {
    padding-left: 1.25rem;
}

.toc-item-sub a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Tags & Share */
.article-tags-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 2.5rem 0 1.5rem;
}

.tag-badge {
    background-color: var(--bg-muted);
    color: var(--text-muted);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

.tag-badge:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.article-share-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Author Box */
.author-box {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.author-box-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.author-box-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.author-box-bio {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Ad Placements */
.ad-placement {
    margin: 2rem auto;
    text-align: center;
    background-color: var(--bg-muted);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    max-width: 728px;
}

.ad-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

/* Newsletter Section */
.section-newsletter {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(14, 165, 233, 0.06));
    border-top: 1px solid var(--border);
}

.newsletter-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.newsletter-content {
    max-width: 540px;
}

.newsletter-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.newsletter-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 440px;
}

.newsletter-input {
    flex-grow: 1;
    padding: 0.8rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background-color: var(--bg-surface);
    color: var(--text-main);
    outline: none;
}

.newsletter-input:focus {
    border-color: var(--primary);
}

/* Footer */
.site-footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 4.5rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

.footer-about {
    max-width: 320px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.social-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

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

.footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-admin-link a {
    color: var(--text-subtle);
    font-weight: 600;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .bento-col-4 { grid-column: span 6; }
    .bento-col-8 { grid-column: span 12; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .main-nav, .header-cta { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero-title { font-size: 2.3rem; }
    .bento-col-4, .bento-col-6 { grid-column: span 12; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .newsletter-form { flex-direction: column; }
    .author-box { flex-direction: column; }
}
