/* 
 * Legacy style.css — replaced by css/tokens.css + css/components.css + css/layout.css
 * This file is kept for backwards compatibility with SEO pages.
 * New pages should use the css/ directory files.
 */
@import url('css/tokens.css');
@import url('css/components.css');
@import url('css/layout.css');

/* ── SEO Page Specific Styles ── */
.seo-page {
    padding: var(--sp-6) var(--sp-3);
    max-width: var(--w-md);
    margin: 0 auto;
}

.seo-page h1 {
    font-size: var(--text-3xl);
    font-weight: var(--weight-extrabold);
    letter-spacing: var(--tracking-tight);
    color: var(--c-text);
    margin-bottom: var(--sp-2);
    line-height: var(--leading-tight);
}

.seo-page h2 {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--c-text);
    margin: var(--sp-4) 0 var(--sp-2);
}

.seo-page h3 {
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--c-text);
    margin: var(--sp-2) 0 var(--sp-1);
}

.seo-page p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--c-text-secondary);
    margin-bottom: var(--sp-2);
}

.seo-page ul,
.seo-page ol {
    padding-left: 1.5rem;
    margin-bottom: var(--sp-2);
    line-height: var(--leading-relaxed);
    color: var(--c-text-secondary);
}

.seo-page li {
    margin-bottom: var(--sp-1);
}

.breadcrumb {
    font-size: var(--text-sm);
    color: var(--c-text-tertiary);
    margin-bottom: var(--sp-3);
}

.breadcrumb a {
    color: var(--c-primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.info-box {
    background: var(--c-primary-light);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: var(--r-lg);
    padding: var(--sp-3);
    margin: var(--sp-3) 0;
}

.info-box h3 {
    margin-top: 0;
    color: var(--c-text);
}

.info-box p {
    font-size: var(--text-sm);
    margin-bottom: var(--sp-1-5);
}

.content-section {
    margin: var(--sp-4) 0;
}

.strategy-list {
    list-style: none;
    padding: 0;
}

.strategy-list li {
    padding: var(--sp-1-5) 0;
    border-bottom: 1px solid var(--c-border);
    font-size: var(--text-sm);
}

.strategy-list li:last-child {
    border-bottom: none;
}

.numbered-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
}

.numbered-list li {
    counter-increment: step;
    margin-bottom: var(--sp-3);
    padding-left: var(--sp-5);
    position: relative;
}

.numbered-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: var(--c-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
}

.cta-box {
    text-align: center;
    padding: var(--sp-5);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    margin: var(--sp-5) 0;
}

.cta-box h2 {
    margin-top: 0;
}

.cta-box p {
    text-align: center;
}

.cta-box .btn {
    margin-top: var(--sp-2);
}

.related-pages {
    margin-top: var(--sp-5);
    padding: var(--sp-3);
    background: var(--c-gray-50);
    border-radius: var(--r-lg);
}

.related-pages h3 {
    margin-top: 0;
}

.related-pages ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--sp-1);
}

.related-pages a {
    display: block;
    padding: var(--sp-1) var(--sp-1-5);
    font-size: var(--text-sm);
    color: var(--c-primary);
    text-decoration: none;
    border-radius: var(--r-sm);
    transition: background var(--dur-fast) var(--ease-default);
}

.related-pages a:hover {
    background: var(--c-primary-light);
}

/* Header / Footer reuse from layout.css (via topbar/footer classes) */
.header {
    padding: var(--sp-2) 0;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
}

.header .logo {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    text-decoration: none;
    color: var(--c-text);
    font-weight: var(--weight-bold);
    font-size: var(--text-lg);
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-weight: var(--weight-bold);
}

.ad-container {
    width: 100%;
    min-height: 90px;
    margin: var(--sp-3) 0;
    padding: var(--sp-2);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
}

.ad-label {
    font-size: 10px;
    color: var(--c-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile adjustments for SEO pages */
@media (max-width: 768px) {
    .seo-page h1 {
        font-size: var(--text-2xl);
    }

    .related-pages ul {
        grid-template-columns: 1fr;
    }
}