/* ========================================
   SEO PAGES - Shared Stylesheet
   For all SEO-optimized keyword landing pages
   Uses same design system as main site (style.css)
   ======================================== */

/* ========================================
   BREADCRUMBS
   ======================================== */

.seo-breadcrumbs {
    background: var(--bg-light);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumb-list a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb-list .breadcrumb-separator {
    color: var(--text-light);
    font-size: 0.75rem;
}

.breadcrumb-list .breadcrumb-current {
    color: var(--text-light);
    font-weight: 400;
}

/* ========================================
   ARTICLE HERO SECTION
   ======================================== */

.seo-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0f2847 100%);
    color: var(--text-white);
    padding: 4rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.seo-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 206, 209, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.seo-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 206, 209, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.seo-hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.seo-hero .seo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 206, 209, 0.15);
    color: var(--primary-color);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 206, 209, 0.25);
}

.seo-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.seo-hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary-color), #00e5e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.seo-hero .seo-hero-desc {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.92;
    margin-bottom: 2rem;
    max-width: 700px;
}

.seo-hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    opacity: 0.75;
    flex-wrap: wrap;
}

.seo-hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ========================================
   TABLE OF CONTENTS
   ======================================== */

.seo-toc {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin-bottom: 2.5rem;
}

.seo-toc h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seo-toc h2 i {
    color: var(--primary-color);
    font-size: 1rem;
}

.seo-toc ol {
    margin: 0;
    padding-left: 1.25rem;
    counter-reset: toc-counter;
}

.seo-toc ol li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.seo-toc ol li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.seo-toc ol li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ========================================
   ARTICLE BODY
   ======================================== */

.seo-article {
    padding: 3.5rem 0 4rem;
}

.seo-article-body {
    max-width: 820px;
}

.seo-article-body h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--bg-light);
    line-height: 1.3;
}

.seo-article-body h2:first-of-type {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.seo-article-body h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.seo-article-body p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.25rem;
}

.seo-article-body ul,
.seo-article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.seo-article-body li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 0.5rem;
}

.seo-article-body a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.seo-article-body a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

.seo-article-body strong {
    font-weight: 600;
    color: var(--secondary-color);
}

.seo-article-body blockquote {
    border-left: 4px solid var(--primary-color);
    background: var(--bg-light);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.seo-article-body blockquote p {
    margin-bottom: 0;
}

/* ========================================
   FEATURE / HIGHLIGHT BOXES
   ======================================== */

.seo-feature-box {
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.06), rgba(27, 59, 111, 0.04));
    border: 1px solid rgba(0, 206, 209, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.seo-feature-box h3 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seo-feature-box h3 i {
    color: var(--primary-color);
}

.seo-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.seo-feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
}

.seo-feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.seo-feature-card .card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.15), rgba(27, 59, 111, 0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.seo-feature-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.seo-feature-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ========================================
   STATS/NUMBERS ROW
   ======================================== */

.seo-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin: 2.5rem 0;
}

.seo-stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.seo-stat-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.seo-stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.35rem;
}

.seo-stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    margin: 0;
}

/* ========================================
   COMPARISON TABLE
   ======================================== */

.seo-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.seo-comparison-table thead {
    background: linear-gradient(135deg, var(--secondary-color), #0f2847);
    color: var(--text-white);
}

.seo-comparison-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.seo-comparison-table td {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: #444;
}

.seo-comparison-table tbody tr:nth-child(even) {
    background: var(--bg-light);
}

.seo-comparison-table tbody tr:hover {
    background: rgba(0, 206, 209, 0.05);
}

.seo-comparison-table .check {
    color: var(--success);
    font-weight: 700;
}

.seo-comparison-table .cross {
    color: var(--danger);
    font-weight: 700;
}

/* ========================================
   CTA BANNER (in-article)
   ======================================== */

.seo-cta-banner {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0f2847 100%);
    color: var(--text-white);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.seo-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 206, 209, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.seo-cta-banner h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-white);
    border: none;
    padding-top: 0;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.seo-cta-banner p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    color: var(--text-white);
}

.seo-cta-banner .btn {
    position: relative;
    z-index: 1;
    color: var(--text-white) !important;
    border-bottom: none !important;
}

.seo-cta-banner .btn:hover {
    color: var(--text-white) !important;
}

/* ========================================
   FAQ / SCHEMA SECTION
   ======================================== */

.seo-faq {
    margin: 3rem 0;
}

.seo-faq h2 {
    border-top: none;
    padding-top: 0;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-question {
    width: 100%;
    background: var(--bg-light);
    border: none;
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(0, 206, 209, 0.05);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
    font-size: 0.85rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1.25rem 1.5rem;
}

.faq-answer p {
    margin-bottom: 0;
    color: #555;
    line-height: 1.7;
}

/* ========================================
   AUTHOR BOX
   ======================================== */

.seo-author-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 3rem 0 0;
}

.seo-author-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.seo-author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--secondary-color);
}

.seo-author-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ========================================
   RELATED ARTICLES / INTERNAL LINKS
   ======================================== */

.seo-related {
    background: var(--bg-light);
    padding: 3.5rem 0;
}

.seo-related h2 {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.seo-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 820px;
    margin: 0 auto;
}

.seo-related-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.seo-related-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.seo-related-card h4 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.seo-related-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.seo-related-card .card-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ========================================
   BOTTOM CTA SECTION
   ======================================== */

.seo-bottom-cta {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0f2847 100%);
    color: var(--text-white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.seo-bottom-cta::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 206, 209, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.seo-bottom-cta h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: var(--text-white);
    border: none;
    padding-top: 0;
    margin-top: 0;
}

.seo-bottom-cta p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-white);
}

.seo-bottom-cta .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.seo-bottom-cta .cta-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.7;
    position: relative;
    z-index: 1;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

@media (max-width: 768px) {
    .seo-hero {
        padding: 3rem 0 2.5rem;
    }

    .seo-hero h1 {
        font-size: 2rem;
    }

    .seo-hero .seo-hero-desc {
        font-size: 1.05rem;
    }

    .seo-hero-meta {
        gap: 1rem;
    }

    .seo-article {
        padding: 2.5rem 0 3rem;
    }

    .seo-article-body h2 {
        font-size: 1.5rem;
        margin-top: 2.5rem;
    }

    .seo-article-body h3 {
        font-size: 1.2rem;
    }

    .seo-feature-grid {
        grid-template-columns: 1fr;
    }

    .seo-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .seo-comparison-table {
        font-size: 0.85rem;
    }

    .seo-comparison-table th,
    .seo-comparison-table td {
        padding: 0.75rem 1rem;
    }

    .seo-cta-banner {
        padding: 2rem 1.5rem;
    }

    .seo-cta-banner h2 {
        font-size: 1.5rem;
    }

    .seo-related-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .seo-bottom-cta {
        padding: 3.5rem 0;
    }

    .seo-bottom-cta h2 {
        font-size: 1.75rem;
    }

    .seo-author-box {
        flex-direction: column;
        text-align: center;
    }

    .seo-toc {
        padding: 1.25rem 1.5rem;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 480px) {
    .seo-hero {
        padding: 2rem 0 1.75rem;
    }

    .seo-hero h1 {
        font-size: 1.65rem;
    }

    .seo-hero .seo-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .seo-hero-meta {
        font-size: 0.75rem;
        gap: 0.75rem;
    }

    .seo-article-body h2 {
        font-size: 1.35rem;
    }

    .seo-article-body h3 {
        font-size: 1.1rem;
    }

    .seo-article-body p,
    .seo-article-body li {
        font-size: 0.95rem;
    }

    .seo-stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .seo-stat-number {
        font-size: 1.35rem;
    }

    .seo-stat-label {
        font-size: 0.7rem;
    }

    .seo-comparison-table th,
    .seo-comparison-table td {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .seo-cta-banner {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }

    .seo-cta-banner h2 {
        font-size: 1.25rem;
    }

    .seo-bottom-cta h2 {
        font-size: 1.5rem;
    }

    .seo-bottom-cta p {
        font-size: 1rem;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 1rem 1.25rem;
    }

    .seo-feature-card {
        padding: 1.25rem;
    }
}