/* ═══════════════════════════════════════════════
   ValueMyIdea.com — Blog Stylesheet
   ═══════════════════════════════════════════════ */

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

:root {
    --bg: #0c0b0e;
    --surface: #14131a;
    --surface2: #1c1b24;
    --border: #2e2d3a;
    --text: #e2e0ec;
    --text-secondary: #a8a6b8;
    --text-muted: #6b697a;
    --accent: #f5a623;
    --accent-light: #ffd080;
    --accent-dim: #c4841c;
    --green: #34d399;
    --serif: 'DM Serif Display', Georgia, serif;
    --sans: 'DM Sans', -apple-system, sans-serif;
    --mono: 'IBM Plex Mono', monospace;
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.75;
}

/* ── Layout ── */
.blog-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ── Nav ── */
.blog-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.5rem;
}

.blog-nav .logo {
    font-family: var(--serif);
    font-size: 1.3rem;
    text-decoration: none;
    color: var(--text);
}

.blog-nav .logo span { color: var(--accent); }

.blog-nav .nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
}

.blog-nav .nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.blog-nav .nav-links a:hover { color: var(--accent); }

/* ── Article Header ── */
.article-header { margin-bottom: 2.5rem; }

.article-category {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.article-header h1 {
    font-family: var(--serif);
    font-size: 2.2rem;
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--mono);
}

/* ── Article Body ── */
.article-body p {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.article-body h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    color: var(--text);
}

.article-body h3 {
    font-family: var(--sans);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
}

.article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: var(--accent-dim);
    text-underline-offset: 2px;
}

.article-body a:hover { text-decoration-color: var(--accent); }

.article-body strong { color: #fff; }

.article-body blockquote {
    border-left: 3px solid var(--accent-dim);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-style: italic;
    background: var(--surface);
    border-radius: 0 8px 8px 0;
}

.article-body ul, .article-body ol {
    margin: 1rem 0 1.5rem 1.25rem;
    color: var(--text);
}

.article-body li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.article-body code {
    font-family: var(--mono);
    font-size: 0.85em;
    background: var(--surface2);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}

/* ── CTA Box ── */
.cta-box {
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.08), rgba(245, 166, 35, 0.02));
    border: 1px solid var(--accent-dim);
    border-radius: 12px;
    padding: 1.75rem;
    text-align: center;
    margin: 2.5rem 0;
}

.cta-box h3 {
    font-family: var(--serif);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cta-box .btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    background: var(--accent);
    color: var(--bg);
    text-decoration: none;
    transition: all 0.15s;
}

.cta-box .btn:hover {
    background: var(--accent-light);
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.25);
}

/* ── Callout ── */
.callout {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    font-size: 0.92rem;
}

.callout.warning { border-left: 3px solid #fbbf24; }
.callout.tip { border-left: 3px solid var(--green); }

/* ── Author Box ── */
.author-box {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin: 3rem 0 2rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--bg);
    flex-shrink: 0;
}

.author-info .author-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.author-info .author-bio {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Related ── */
.related-posts { margin-top: 2.5rem; }

.related-posts h3 {
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.related-card {
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.15s;
}

.related-card:hover { border-color: var(--accent-dim); }

.related-card h4 {
    font-family: var(--serif);
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.related-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ── Footer ── */
.blog-footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.blog-footer a {
    color: var(--text-muted);
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    html { font-size: 16px; }
    .blog-wrap { padding: 1rem 1rem 3rem; }
    .article-header h1 { font-size: 1.7rem; }
    .related-grid { grid-template-columns: 1fr; }
}
