/* =====================================================
   SEO Landing Pages — Shared Stylesheet
   Used by: tools/qwen-image-edit.php, tools/free-ai-no-signup.php,
            tools/topaz-video-enhance-ai-alternative.php,
            models/wan-22-free-online.php, models/wan-image-to-video.php,
            models/free-ai-chatbot.php, guides/wan-nsfw-image-to-video.php
   Inherits global tokens from header.php :root
   ===================================================== */

.seo-page {
    padding: 4rem 0 2rem;
}

.seo-page .container {
    max-width: 1100px;
}

/* ===== HERO ===== */
.seo-hero {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 3rem;
}

.seo-badge {
    display: inline-block;
    background: rgba(111, 180, 255, 0.10);
    border: 1px solid rgba(111, 180, 255, 0.30);
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
    font-size: 0.82rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.seo-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.seo-hero .seo-h1-line2 {
    display: block;
    font-size: 0.78em;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.seo-hero p,
.seo-lead {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.seo-hero-cta {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
}

.seo-hero-cta .btn {
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 700;
}

/* ===== CONTENT CARDS ===== */
.seo-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.25rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.seo-card h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.7rem);
    font-weight: 700;
    margin-bottom: 1.1rem;
    color: var(--text-color);
}

.seo-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
    color: var(--text-color);
}

.seo-card p,
.seo-card li {
    color: var(--gray-light);
    line-height: 1.8;
}

.seo-card ul,
.seo-card ol {
    padding-left: 1.25rem;
    margin: 0.5rem 0 0.25rem;
}

.seo-card li {
    margin-bottom: 0.35rem;
}

.seo-card a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px dashed rgba(111, 180, 255, 0.3);
    transition: all 0.2s ease;
}

.seo-card a:hover {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

/* ===== FEATURE GRID ===== */
.seo-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.seo-feature {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.seo-feature:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(111, 180, 255, 0.15);
}

.seo-feature i {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    display: block;
}

.seo-feature h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.seo-feature p {
    font-size: 0.9rem;
    color: var(--gray-light);
    line-height: 1.55;
    margin: 0;
}

/* ===== TOOL/LINK GRID ===== */
.seo-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.1rem;
    margin-bottom: 2.5rem;
}

.seo-tool-card {
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    height: 100%;
}

.seo-tool-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(111, 180, 255, 0.18);
}

.seo-tool-card h2,
.seo-tool-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.seo-tool-card p {
    font-size: 0.9rem;
    color: var(--gray-light);
    line-height: 1.55;
    margin: 0;
}

/* ===== COMPARISON TABLE ===== */
.seo-table-wrap {
    overflow-x: auto;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.seo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    color: var(--gray-light);
}

.seo-table thead tr {
    border-bottom: 1px solid var(--glass-border);
}

.seo-table th {
    text-align: left;
    padding: 0.75rem 0.6rem;
    font-weight: 700;
    color: var(--text-color);
}

.seo-table th.seo-center,
.seo-table td.seo-center {
    text-align: center;
}

.seo-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.seo-table td {
    padding: 0.75rem 0.6rem;
}

.seo-table tr.seo-highlight {
    background: rgba(111, 180, 255, 0.08);
}

.seo-table tr.seo-highlight td:first-child {
    font-weight: 700;
    color: var(--accent-color);
}

/* ===== FAQ ===== */
.seo-faq h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
    color: var(--text-color);
}

.seo-faq p {
    color: var(--gray-light);
    line-height: 1.7;
    margin: 0 0 0.5rem 0;
}

.seo-faq-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.seo-faq-item:last-child {
    border-bottom: none;
}

/* ===== BOTTOM CTA ===== */
.seo-bottom-cta {
    text-align: center;
    padding: 2.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(111, 180, 255, 0.10), rgba(236, 72, 153, 0.07));
    border: 1px solid rgba(111, 180, 255, 0.20);
    border-radius: 20px;
    margin-top: 1rem;
}

.seo-bottom-cta h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: var(--text-color);
}

.seo-bottom-cta p {
    color: var(--gray-light);
    margin-bottom: 1.5rem;
}

.seo-bottom-cta .btn {
    padding: 0.85rem 2.2rem;
    font-size: 1rem;
    font-weight: 700;
}

.seo-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.seo-trust-row img {
    width: 22px;
    height: 22px;
}

/* ===== RELATED LINKS ROW ===== */
.seo-related {
    text-align: center;
    margin: 2.5rem 0;
}

.seo-related h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.seo-related-row {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

.seo-related-row .btn {
    padding: 0.55rem 1.1rem;
    font-size: 0.88rem;
}

/* ===== BACK LINK ===== */
.seo-back {
    text-align: center;
    margin: 2rem 0 1rem;
}

.seo-back a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.seo-back a:hover {
    color: var(--secondary);
}

/* ===== HELPERS ===== */
.seo-text-muted {
    color: var(--gray-light);
}

.seo-strong {
    color: var(--text-color);
    font-weight: 700;
}

.seo-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 2rem 0;
    border: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .seo-page {
        padding: 2rem 0 1rem;
    }

    .seo-card {
        padding: 1.5rem 1.25rem;
    }

    .seo-hero {
        margin-bottom: 2rem;
    }

    .seo-features,
    .seo-tool-grid {
        grid-template-columns: 1fr;
    }

    .seo-table {
        font-size: 0.82rem;
    }

    .seo-table th,
    .seo-table td {
        padding: 0.55rem 0.4rem;
    }
}
