/* ========================================
   Tech Deep Dives - Shared Styles
   ======================================== */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --accent-orange: #f97316;
    --accent-orange-dim: #f9731633;
    --accent-blue: #3b82f6;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-yellow: #eab308;
    --accent-purple: #a855f7;
    --accent-cyan: #06b6d4;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #1e293b;
    --code-bg: #1e1e1e;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: clamp(15px, 1.5vw, 17px);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-yellow);
}

/* ========================================
   Site Header / Navigation
   ======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-primary);
}

.site-logo:hover {
    color: var(--text-primary);
}

.site-logo-icon {
    font-size: 1.5rem;
}

.site-nav {
    display: flex;
    gap: 2rem;
}

.site-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: var(--accent-orange);
}

/* ========================================
   Homepage Hero
   ======================================== */

.home-hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(249, 115, 22, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        var(--bg-primary);
}

.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(249, 115, 22, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249, 115, 22, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

.home-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.home-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.home-hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.home-hero-stat {
    text-align: center;
}

.home-hero-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-orange);
}

.home-hero-stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========================================
   Blog Grid
   ======================================== */

.blogs-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

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

.blogs-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.blogs-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blogs-filter button {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.blogs-filter button:hover,
.blogs-filter button.active {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--bg-primary);
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.blog-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.blog-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(249, 115, 22, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
}

.blog-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.blog-card-tag {
    background: var(--accent-orange-dim);
    color: var(--accent-orange);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.blog-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-card h3 a {
    color: var(--text-primary);
}

.blog-card h3 a:hover {
    color: var(--accent-orange);
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 1rem;
}

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

.blog-card-read-time {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.blog-card-link {
    color: var(--accent-orange);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card-link:hover {
    gap: 0.75rem;
}

/* ========================================
   Site Footer
   ======================================== */

.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
    text-align: center;
}

.site-footer-inner {
    max-width: 800px;
    margin: 0 auto;
}

.site-footer p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.site-footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.site-footer-links a {
    color: var(--text-secondary);
}

/* ========================================
   Blog Post Hero
   ======================================== */

.blog-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(249, 115, 22, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        var(--bg-primary);
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(249, 115, 22, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249, 115, 22, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

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

.blog-back-link {
    position: absolute;
    top: 6rem;
    left: 8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.2s;
    z-index: 10;
}

.blog-back-link:hover {
    color: var(--accent-orange);
    border-color: var(--accent-orange);
    background: rgba(249, 115, 22, 0.1);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-red);
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.status-badge.concept {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--accent-blue);
}

.status-badge.vulnerability {
    background: rgba(234, 179, 8, 0.15);
    border-color: rgba(234, 179, 8, 0.3);
    color: var(--accent-yellow);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.status-dot {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.blog-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.blog-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.blog-hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========================================
   Blog Content
   ======================================== */

.blog-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Table of Contents */
.toc {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 4rem;
}

.toc h2 {
    font-size: 1.2rem;
    color: var(--accent-orange);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.toc-list a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.toc-list a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.toc-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-orange);
    min-width: 28px;
}

/* Sections */
section {
    margin-bottom: 5rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--bg-primary);
    background: var(--accent-orange);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-weight: 600;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--accent-blue);
}

h4 {
    font-size: clamp(1.05rem, 2vw, 1.15rem);
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

/* Info Boxes */
.info-box {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-blue);
    border-radius: 0 12px 12px 0;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.info-box.warning {
    border-left-color: var(--accent-yellow);
    background: rgba(234, 179, 8, 0.05);
}

.info-box.danger {
    border-left-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.05);
}

.info-box.success {
    border-left-color: var(--accent-green);
    background: rgba(34, 197, 94, 0.05);
}

.info-box-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Code Blocks - VSCode Dark+ Theme */
pre {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

code {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-tertiary);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--accent-orange);
}

pre code {
    background: none;
    padding: 0;
    color: #d4d4d4;
}

/* VSCode Dark+ Syntax Highlighting */
.keyword { color: #569cd6; }
.builtin, .type { color: #4ec9b0; }
.number { color: #b5cea8; }
.string { color: #ce9178; }
.comment { color: #6a9955; font-style: italic; }
.function { color: #dcdcaa; }
.variable { color: #9cdcfe; }
.property { color: #9cdcfe; }
.operator { color: #d4d4d4; }
.error-highlight { color: #f44747; font-weight: bold; }
.success-highlight { color: #4ec9b0; font-weight: bold; }

.code-header {
    background: #252526;
    border: 1px solid #333;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 0.75rem 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #858585;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-header + pre {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: none;
}

/* Diagrams */
.diagram {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    overflow-x: auto;
}

.diagram-title {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.flow-diagram {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.flow-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    text-align: center;
    min-width: 120px;
    transition: all 0.3s;
}

.flow-box:hover {
    border-color: var(--accent-orange);
    transform: translateY(-2px);
}

.flow-box.highlight {
    border-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
}

.flow-box-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.flow-box-value {
    font-weight: 600;
    color: var(--text-primary);
}

.flow-arrow {
    color: var(--text-muted);
    font-size: 1.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--bg-primary);
    border: 3px solid var(--accent-orange);
    border-radius: 50%;
}

.timeline-item.error .timeline-dot {
    border-color: var(--accent-red);
}

.timeline-item.success .timeline-dot {
    border-color: var(--accent-green);
}

.timeline-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-orange);
    margin-bottom: 0.25rem;
}

.timeline-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Comparison Tables */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
}

.comparison-table td {
    color: var(--text-secondary);
}

.comparison-table tr:hover td {
    background: var(--bg-secondary);
}

/* Lists */
ul, ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

li {
    margin-bottom: 0.5rem;
}

li::marker {
    color: var(--accent-orange);
}

/* Analogy Box */
.analogy {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.analogy-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--accent-purple);
    margin-bottom: 1rem;
}

.analogy p {
    color: var(--text-secondary);
}

/* Key Takeaway */
.key-takeaway {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-orange);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
}

.key-takeaway::before {
    content: '💡';
    position: absolute;
    top: -1rem;
    left: 1.5rem;
    font-size: 1.5rem;
    background: var(--bg-primary);
    padding: 0 0.5rem;
}

.key-takeaway-title {
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-orange);
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Architecture Diagram */
.architecture {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.arch-layer {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.arch-layer:last-child {
    margin-bottom: 0;
}

.arch-layer-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.arch-layer-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.arch-layer.error {
    border-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.05);
}

.arch-connector {
    text-align: center;
    color: var(--text-muted);
    padding: 0.5rem 0;
}

/* Highlight */
mark {
    background: rgba(249, 115, 22, 0.2);
    color: var(--accent-orange);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
}

/* Blog Footer */
.blog-footer {
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.blog-footer a {
    color: var(--accent-orange);
    text-decoration: none;
}

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

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .flow-diagram {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .blog-hero-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .site-nav {
        display: none;
    }

    .blogs-grid {
        grid-template-columns: 1fr;
    }

    .site-header {
        padding: 0.75rem 1rem;
    }

    .home-hero {
        padding: 6rem 1.5rem 3rem;
    }

    .blog-content {
        padding: 2rem 1rem;
    }

    /* Blog Hero - Mobile */
    .blog-back-link {
        position: static;
        margin-bottom: 1.5rem;
        width: fit-content;
    }

    .blog-hero {
        padding: 5rem 1.5rem 2rem;
    }

    /* Table of Contents - Mobile */
    .toc {
        padding: 1.25rem;
        margin-bottom: 2rem;
        border-radius: 12px;
    }

    .toc h2 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .toc-list {
        gap: 0.5rem;
    }

    .toc-list a {
        padding: 0.5rem;
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .toc-number {
        font-size: 0.75rem;
        min-width: 24px;
    }

    /* Blog Cards - Mobile */
    .blogs-section {
        padding: 3rem 1rem;
    }

    .blog-card {
        margin: 0 0.5rem;
    }

    .blog-card-content {
        padding: 1.25rem;
    }

    /* Info Boxes - Mobile */
    .info-box {
        padding: 1.25rem;
        margin: 1.25rem 0;
    }

    .key-takeaway {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .diagram {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }

    .architecture {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }

    pre {
        font-size: 0.85rem;
        padding: 1rem;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent-orange);
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
    background: #fb923c;
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.share-button.twitter {
    background: #1DA1F2;
    color: white;
}

.share-button.linkedin {
    background: #0077B5;
    color: white;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
