/* Blog Styles - ParheliaWeb Studio */
:root {
    --bg-white: #ffffff;
    --bg-soft: #f8fafc;
    --bg-dark-footer: #0f172a;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --accent-blue: #2563eb;
    --accent-orange: #f97316;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
    --card-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.85);
}
[data-theme="dark"] {
    --bg-white: #0f121a;
    --bg-soft: #161b26;
    --bg-dark-footer: #000000;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-orange: #fb923c;
    --border-color: #2d3748;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
    --card-bg: #1a2030;
    --header-bg: rgba(15, 18, 26, 0.85);
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
body { background-color: var(--bg-white); color: var(--text-primary); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; transition: background-color 0.3s, color 0.3s; }
.theme-toggle { position: fixed; bottom: 20px; right: 20px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 8px; cursor: pointer; display: flex; align-items: center; transition: border-color 0.2s; z-index: 9998; box-shadow: var(--shadow-sm); }
.theme-toggle:hover { border-color: var(--accent-blue); }
.theme-toggle svg { width: 20px; height: 20px; stroke: var(--text-secondary); }
.theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: inline-block; }
header { position: fixed; top: 0; width: 100%; background-color: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 15px 40px; display: flex; justify-content: space-between; align-items: center; z-index: 1000; border-bottom: 1px solid var(--border-color); transition: background-color 0.3s, border-color 0.3s; }
.logo-area { position: relative; display: flex; align-items: center; }
.logo-area img { height: 72px; width: auto; z-index: 2; position: relative; transition: transform 0.3s ease; }
.logo-area:hover img { transform: scale(1.05); }
.logo-glow { position: absolute; left: -25px; top: 50%; transform: translateY(-50%); width: 140px; height: 140px; background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(255, 255, 255, 0) 70%); border-radius: 50%; z-index: 1; animation: pulseGlow 5s infinite ease-in-out; }
@keyframes pulseGlow { 0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.5; } 50% { transform: translateY(-50%) scale(1.3); opacity: 0.8; } }
nav ul { display: flex; list-style: none; gap: 30px; }
nav a { color: var(--text-secondary); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.3s ease; position: relative; }
nav a::after { content: ''; position: absolute; width: 0; height: 2px; display: block; margin-top: 4px; right: 0; background: var(--accent-orange); transition: width 0.3s ease; }
nav a:hover { color: var(--text-primary); }
nav a:hover::after { width: 100%; left: 0; }
nav a.active { color: var(--accent-blue); }
.blog-hero { padding: 160px 20px 60px; text-align: center; background-color: var(--bg-white); transition: background-color 0.3s; }
.blog-hero h1 { font-size: 3rem; color: var(--text-primary); margin-bottom: 15px; font-weight: 800; letter-spacing: -1px; }
.blog-hero p { font-size: 1.2rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
.blog-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px 80px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.blog-card { background-color: var(--card-bg); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--text-primary); transition: transform 0.3s, box-shadow 0.3s; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.blog-card-img { height: 200px; background-color: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-img-placeholder { width: 60px; height: 60px; color: var(--accent-blue); opacity: 0.3; }
.blog-card-body { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 10px; display: flex; gap: 15px; flex-wrap: wrap; }
.blog-card h3 { color: var(--text-primary); font-size: 1.3rem; margin-bottom: 10px; line-height: 1.3; }
.blog-card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 20px; flex: 1; }
.blog-card-cta { color: var(--accent-blue); font-weight: 600; font-size: 0.95rem; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.blog-card:hover .blog-card-cta { gap: 10px; }
.post-container { max-width: 800px; margin: 120px auto 80px; padding: 0 20px; }
.post-header { text-align: center; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--border-color); }
.post-header .post-breadcrumb { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 20px; }
.post-header .post-breadcrumb a { color: var(--accent-blue); text-decoration: none; }
.post-header h1 { font-size: 2.5rem; color: var(--text-primary); margin-bottom: 20px; font-weight: 800; line-height: 1.2; }
.post-header .post-meta { font-size: 0.9rem; color: var(--text-secondary); display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.post-featured-img { width: 100%; height: 300px; background-color: var(--bg-soft); border-radius: 12px; margin-bottom: 40px; overflow: hidden; }
.post-featured-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.post-content { font-size: 1.05rem; line-height: 1.8; color: var(--text-primary); }
.post-content h2 { font-size: 1.6rem; color: var(--text-primary); margin: 40px 0 15px; font-weight: 700; scroll-margin-top: 100px; }
.post-content h3 { font-size: 1.2rem; color: var(--text-primary); margin: 30px 0 10px; font-weight: 600; }
.post-content p { margin-bottom: 20px; color: var(--text-secondary); }
.post-content ul, .post-content ol { margin: 0 0 20px 25px; color: var(--text-secondary); }
.post-content li { margin-bottom: 8px; }
.post-content blockquote { border-left: 4px solid var(--accent-orange); padding: 15px 20px; margin: 25px 0; background-color: var(--bg-soft); border-radius: 0 8px 8px 0; font-style: italic; color: var(--text-secondary); }
.post-content code { background-color: var(--bg-soft); padding: 2px 6px; border-radius: 4px; font-family: 'Courier New', monospace; font-size: 0.9em; color: var(--accent-blue); }
.post-content a { color: var(--accent-blue); text-decoration: none; border-bottom: 1px dotted var(--accent-blue); }
.post-content a:hover { border-bottom-style: solid; }
.post-content strong { color: var(--text-primary); font-weight: 700; }
.toc { position: sticky; top: 100px; }
.post-layout { display: grid; grid-template-columns: 1fr 250px; gap: 40px; max-width: 1100px; margin: 0 auto; }
.post-main { min-width: 0; }
.toc-sidebar { display: none; }
@media (min-width: 1024px) { .toc-sidebar { display: block; } }
.toc h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); margin-bottom: 15px; }
.toc ul { list-style: none; padding: 0; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; display: block; padding: 5px 10px; border-left: 2px solid var(--border-color); transition: all 0.2s; }
.toc a:hover, .toc a.active { color: var(--accent-blue); border-left-color: var(--accent-blue); }
.author-box { margin: 50px 0 30px; padding: 25px; background-color: var(--bg-soft); border-radius: 12px; border-left: 4px solid var(--accent-blue); display: flex; gap: 20px; align-items: center; }
.author-box-avatar { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 1.5rem; flex-shrink: 0; }
.author-box-content h4 { color: var(--text-primary); margin-bottom: 5px; }
.author-box-content p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }
.post-cta { background: var(--accent-blue); color: white; padding: 40px; border-radius: 12px; text-align: center; margin: 40px 0; }
[data-theme="dark"] .post-cta { background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%); }
.post-cta h3 { color: white; font-size: 1.5rem; margin-bottom: 10px; }
.post-cta p { color: rgba(255, 255, 255, 0.9); margin-bottom: 20px; }
.post-cta-btn { display: inline-block; background: white; color: var(--accent-blue); padding: 12px 30px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: transform 0.2s, box-shadow 0.2s; }
.post-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); }
footer { background-color: var(--bg-dark-footer); text-align: center; padding: 40px; color: #94a3b8; font-size: 0.9rem; transition: background-color 0.3s; }
footer a { color: #e2e8f0; text-decoration: none; border-bottom: 1px dotted #64748b; transition: color 0.2s; }
footer a:hover { color: var(--accent-orange); border-bottom: 1px solid var(--accent-orange); }
.footer-links { margin-top: 15px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
@media (max-width: 768px) {
    header { padding: 10px 20px; }
    .logo-area img { height: 50px; }
    .logo-glow { width: 90px; height: 90px; left: -15px; }
    nav ul { gap: 15px; font-size: 0.85rem; }
    .blog-hero h1 { font-size: 2rem; }
    .blog-hero { padding: 120px 20px 40px; }
    .post-header h1 { font-size: 1.8rem; }
    .post-layout { grid-template-columns: 1fr; }
    .toc-sidebar { display: none; }
    .post-cta { padding: 25px; }
    .author-box { flex-direction: column; text-align: center; }
}
