/* Blog Post Styles - Shared across all blog posts */

:root {
    --orange: #E85D04;
    --orange-light: #F48C06;
    --orange-dark: #D00000;
    --charcoal: #1A1A1A;
    --slate: #2D3436;
    --concrete: #636E72;
    --silver: #B2BEC3;
    --cloud: #DFE6E9;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'Outfit', sans-serif;
    --container-width: min(800px, 90vw);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--off-white); color: var(--charcoal); line-height: 1.7; overflow-x: hidden; font-weight: 400; }
::selection { background: var(--orange); color: var(--white); }

/* Navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1rem 2.5rem; display: flex; justify-content: space-between; align-items: center; background: rgba(250, 250, 250, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 4px 30px rgba(0,0,0,0.06); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.nav-logo img { height: 52px; width: auto; transition: transform 0.3s ease; }
.nav-logo:hover img { transform: scale(1.05); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--slate); font-size: 0.95rem; font-weight: 500; transition: all 0.3s ease; position: relative; letter-spacing: 0.01em; }
.nav-links a::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--orange), var(--orange-light)); transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.social-link { display: flex; align-items: center; justify-content: center; color: var(--slate); transition: all 0.3s ease; }
.social-link:hover { color: var(--orange); transform: translateY(-2px); }
.social-link::after { display: none; }
.lang-toggle { display: flex; gap: 0.25rem; padding: 0.25rem; background: rgba(223, 230, 233, 0.7); border-radius: 6px; border: 1px solid rgba(178, 190, 195, 0.3); }
.lang-btn { padding: 0.4rem 0.85rem; border: none; background: transparent; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; cursor: pointer; border-radius: 4px; transition: all 0.3s ease; color: var(--concrete); letter-spacing: 0.05em; }
.lang-btn.active { background: var(--white); color: var(--charcoal); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.lang-btn:hover:not(.active) { color: var(--charcoal); }
.nav-mobile-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; padding: 8px; border-radius: 4px; transition: background 0.2s ease; }
.nav-mobile-toggle:hover { background: rgba(0,0,0,0.05); }
.nav-mobile-toggle span { width: 24px; height: 2px; background: var(--charcoal); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); border-radius: 1px; }

.container { width: var(--container-width); margin: 0 auto; }

/* Article Header */
.article-header { padding-top: 8rem; padding-bottom: 3rem; background: var(--white); border-bottom: 1px solid var(--cloud); }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--orange); text-decoration: none; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; margin-bottom: 2.5rem; transition: gap 0.3s ease; letter-spacing: 0.02em; }
.back-link:hover { gap: 0.85rem; }
.back-link svg { width: 16px; height: 16px; stroke: currentColor; transition: transform 0.3s ease; }
.back-link:hover svg { transform: translateX(-4px); }
.article-title { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; color: var(--concrete); font-size: 0.9rem; }
.article-meta-item { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.article-meta-item svg { width: 16px; height: 16px; stroke: var(--concrete); }
.article-category { display: inline-block; font-family: var(--font-mono); font-size: 0.65rem; padding: 0.4rem 0.75rem; background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%); color: var(--white); border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; box-shadow: 0 4px 12px rgba(232, 93, 4, 0.3); }

/* Article Hero */
.article-hero { width: 100%; max-width: 1000px; margin: 0 auto; padding: 2rem; }
.article-hero-image { background: linear-gradient(135deg, var(--charcoal) 0%, #1f2428 100%); border-radius: 16px; aspect-ratio: 21/9; position: relative; overflow: hidden; }
.article-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.article-hero-image::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(232,93,4,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(232,93,4,0.05) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; opacity: 0.5; }

/* Article Content */
.article-content { padding: 3rem 0 5rem; }
.article-body { font-size: 1.05rem; line-height: 1.9; color: var(--slate); }
.article-body h2 { font-family: var(--font-display); font-size: 1.6rem; margin: 3rem 0 1.5rem; color: var(--charcoal); font-weight: 700; letter-spacing: -0.01em; }
.article-body h3 { font-family: var(--font-display); font-size: 1.25rem; margin: 2.5rem 0 1rem; color: var(--charcoal); font-weight: 600; }
.article-body p { margin-bottom: 1.5rem; }
.article-body ul, .article-body ol { margin: 1.5rem 0; padding-left: 1.5rem; }
.article-body li { margin-bottom: 0.75rem; }
.article-body blockquote { margin: 2rem 0; padding: 1.5rem 2rem; background: var(--white); border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; font-style: italic; color: var(--slate); box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.article-body pre { margin: 2rem 0; padding: 1.5rem; background: var(--charcoal); color: var(--cloud); border-radius: 12px; overflow-x: auto; font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.6; }
.article-body a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; transition: color 0.2s; }
.article-body a:hover { color: var(--orange-dark); }
.article-body .highlight-box { margin: 2rem 0; padding: 1.75rem 2rem; background: linear-gradient(135deg, rgba(232,93,4,0.05) 0%, rgba(232,93,4,0.1) 100%); border-radius: 12px; border: 1px solid rgba(232,93,4,0.2); }
.article-body .highlight-box h4 { font-family: var(--font-display); font-size: 1.05rem; color: var(--orange); margin-bottom: 0.75rem; font-weight: 700; }
.article-body figure { margin: 2rem 0; }
.article-body figure img { width: 100%; border-radius: 12px; }
.article-body figcaption { font-size: 0.85rem; color: var(--concrete); text-align: center; margin-top: 0.75rem; font-style: italic; }

/* Article Tags */
.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--cloud); }
.article-tag { font-family: var(--font-mono); font-size: 0.7rem; padding: 0.45rem 0.85rem; background: var(--off-white); color: var(--slate); border-radius: 6px; text-decoration: none; transition: all 0.3s ease; border: 1px solid var(--cloud); font-weight: 500; }
.article-tag:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }

/* Article Author */
.article-author { display: flex; gap: 1.5rem; margin-top: 3rem; padding: 2rem; background: var(--white); border-radius: 16px; border: 1px solid var(--cloud); transition: all 0.4s ease; }
.article-author:hover { border-color: rgba(232, 93, 4, 0.2); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.author-avatar { width: 80px; height: 80px; background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; box-shadow: 0 8px 25px rgba(232, 93, 4, 0.3); }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-avatar svg { width: 32px; height: 32px; stroke: var(--white); }
.author-info h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.25rem; font-weight: 700; }
.author-info .role { color: var(--orange); font-size: 0.9rem; margin-bottom: 0.5rem; font-weight: 600; }
.author-info p { color: var(--concrete); font-size: 0.9rem; line-height: 1.7; }

/* Related Posts */
.related-posts { padding: 4rem 0; background: var(--white); border-top: 1px solid var(--cloud); }
.related-posts h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 2rem; text-align: center; font-weight: 700; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 1000px; margin: 0 auto; padding: 0 2rem; }
.related-card { background: var(--off-white); border-radius: 16px; padding: 1.75rem; border: 1px solid var(--cloud); transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); text-decoration: none; color: inherit; }
.related-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-color: rgba(232, 93, 4, 0.2); }
.related-card-category { font-family: var(--font-mono); font-size: 0.65rem; color: var(--orange); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.75rem; font-weight: 600; }
.related-card h4 { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.4; margin-bottom: 0.5rem; font-weight: 600; }
.related-card p { color: var(--concrete); font-size: 0.9rem; }

/* Mobile Menu */
.mobile-menu { display: none; position: fixed; inset: 0; background: var(--white); z-index: 999; padding: 7rem 2.5rem 2rem; flex-direction: column; gap: 0.5rem; }
.mobile-menu.active { display: flex; animation: menuSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes menuSlideIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.mobile-menu a { font-size: 1.75rem; font-family: var(--font-display); font-weight: 600; color: var(--charcoal); text-decoration: none; padding: 1.25rem 0; border-bottom: 1px solid var(--cloud); transition: all 0.3s ease; }
.mobile-menu a:hover { color: var(--orange); padding-left: 0.5rem; }

/* Footer */
.footer { background: #111315; color: var(--silver); padding: 3.5rem 0 2rem; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.footer-logo img { height: 28px; filter: brightness(0) invert(1); opacity: 0.8; transition: opacity 0.3s ease; }
.footer-logo:hover img { opacity: 1; }
.footer-text { font-size: 0.85rem; font-weight: 400; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--silver); text-decoration: none; font-size: 0.85rem; transition: color 0.3s ease; font-weight: 500; }
.footer-links a:hover { color: var(--orange); }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-mobile-toggle { display: flex; }
    .nav { padding: 1rem 1.5rem; }
    .related-grid { grid-template-columns: 1fr; }
    .article-author { flex-direction: column; text-align: center; }
    .author-avatar { margin: 0 auto; }
    .article-header { padding-top: 7rem; }
}

/* Animations */
.fade-in { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
