/* ============================================
   SHARED STYLES — AudioTool Pro
   Variables, reset, header, footer, ads, typography
   ============================================ */

/* ── Design Tokens ── */
:root {
    --primary-color: #4F46E5;
    --primary-hover: #4338CA;
    --bg-color: #F9FAFB;
    --text-color: #111827;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
    --surface-color: #ffffff;
    --editor-bg: #1a1b24;
    --editor-surface: #272B40;
    --editor-border: #292e42;
    --editor-text: #a9b1d6;
    --editor-input-bg: #16161e;
    --accent-warm: #ff9e64;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
}

/* ── Reset ── */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* ── Header ── */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.logo a:hover {
    opacity: 0.85;
}

/* ── Header Navigation ── */
.header-nav {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.header-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.header-nav a:hover {
    color: var(--primary-color);
}

#lang-selector {
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--surface-color);
    color: var(--text-color);
    font-size: 0.85rem;
    cursor: pointer;
}

/* ── Footer ── */
footer {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

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

/* ── Ad Zones (AdSense placeholders) ── */
.ad-zone {
    background: #f3f4f6;
    border: 1px dashed #ccc;
    text-align: center;
    margin: 1.5rem auto;
    position: relative;
}

.ad-label {
    font-size: 0.7rem;
    color: #9ca3af;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.passive-ad {
    width: 100%;
    max-width: 728px;
    height: 90px;
}

.sidebar-ad {
    width: 300px;
    height: 600px;
    margin: 0;
}

.in-feed-ad {
    width: 100%;
    height: 100px;
    margin: 1rem 0;
    border: 1px dashed #ccc;
    background: #eef;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Utility ── */
.hidden {
    display: none !important;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ── Divider ── */
.divider {
    margin: 3rem 0;
    border: 0;
    border-top: 1px solid var(--border-color);
}

/* ── SEO & FAQ Content ── */
.seo-container {
    max-width: 780px;
    margin: 3rem auto;
    padding: 2.5rem 2rem;
    background: var(--surface-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.seo-container h2 {
    font-size: 1.6rem;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.seo-container h3 {
    font-size: 1.15rem;
    color: var(--text-color);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #f0f0f0;
}

.seo-container h4 {
    font-size: 1rem;
    color: #374151;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.25rem;
}

.seo-container p {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 0.5rem;
}

.seo-container ol {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.75;
    padding-left: 1.25rem;
    margin: 0.75rem 0 0.5rem;
}

.seo-container ol li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.seo-container ol li::marker {
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 768px) {
    .seo-container {
        margin: 2rem 1rem;
        padding: 1.5rem 1.25rem;
    }
    .seo-container h2 { font-size: 1.35rem; }
    .seo-container h3 { font-size: 1.05rem; }

    header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .header-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 1rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border-color);
    }
}
