/* ============================================
   mp3towav.online — Content Pages Stylesheet
   Blog, FAQ, and article pages
   ============================================ */

:root {
    --bg: #09090b;
    --surface: #141416;
    --surface-2: #1c1c1f;
    --border: #27272a;
    --border-hover: #3f3f46;
    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #8a8a93;
    --primary: #f97316;
    --primary-hover: #fb923c;
    --primary-glow: rgba(249, 115, 22, 0.15);
    --font-main: 'Space Grotesk', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --radius: 10px;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

/* ---- Navigation ---- */
.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 780px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.01em;
}

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

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--primary); }

/* ---- Layout ---- */
.container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- Article / Content ---- */
.article {
    padding: 2.5rem 0 4rem;
}

.article h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.article .meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.article h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.01em;
}

.article h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
}

.article p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.article ul, .article ol {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

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

.article a:not(.cta-btn):not(.pricing-btn) {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.article a:not(.cta-btn):not(.pricing-btn):hover {
    color: var(--primary-hover);
}

.article strong {
    color: var(--text);
    font-weight: 600;
}

.article blockquote {
    border-left: 3px solid var(--primary);
    padding: 1rem 1.5rem;
    background: var(--surface);
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.25rem;
}

.article blockquote p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

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

/* ---- CTA Box ---- */
.cta-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 2.5rem 0;
}

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

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

.cta-btn,
.article .cta-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.cta-btn:hover {
    background: var(--primary-hover);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.25);
}

/* ---- FAQ Page ---- */
.faq-intro {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.faq-list { margin-top: 1rem; }

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-item summary {
    padding: 1.25rem 0;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
    user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 1rem;
    font-weight: 300;
    transition: color 0.2s;
}

.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary:hover { color: var(--primary); }
.faq-item summary:hover::after { color: var(--primary); }

.faq-item .answer {
    padding: 0 0 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item .answer a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---- Blog Listing ---- */
.blog-intro {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.blog-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 24px var(--primary-glow);
}

.blog-card h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.blog-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.blog-card .card-meta {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

/* ---- Footer ---- */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

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

footer p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .article h1 { font-size: 1.5rem; }
    .article h2 { font-size: 1.2rem; }
    .site-nav { flex-direction: column; gap: 0.75rem; text-align: center; }
    .cta-box { padding: 1.5rem; }
}
