/**
 * SEO Content Styles
 *
 * Clean, elegant design with standard readable text.
 * Single separator between SEO and FAQ sections.
 *
 * Requires: theme-vars.css for CSS variables
 *
 * @package PC_Kompas_FAQ
 */

/* ============================================================================
   SEO CONTENT SECTION - Clean Design with Top Accent
   ============================================================================ */

.catalog-seo-content {
    position: relative;
    margin: clamp(2.5rem, 5vw, 3.5rem) 0 0 0;
    padding: clamp(2rem, 4vw, 2.5rem) 0 0 0;
    background: transparent;
}

/* Top accent line - elegant marker for section start */
.catalog-seo-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 1.5px;
}

/* ============================================================================
   SEO CONTENT BODY - Standard Readable Text
   ============================================================================ */

.catalog-seo-content .seo-content {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    /* Override any max-width from other stylesheets */
    max-width: none !important;
    width: 100%;
}

.catalog-seo-content .seo-content__body {
    /* Standard readable text - not too light */
    color: var(--text-primary);
    font-size: clamp(0.9375rem, 0.5vw + 0.85rem, 1.0625rem);
    line-height: 1.75;
    /* Ensure full width */
    max-width: none;
    width: 100%;
}

/* ============================================================================
   HEADINGS - Clean with Accent Bar
   ============================================================================ */

.catalog-seo-content .seo-content__body h2 {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: clamp(2rem, 4vw, 2.5rem) 0 clamp(1rem, 2vw, 1.25rem) 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* First h2 - no extra top margin */
.catalog-seo-content .seo-content__body h2:first-child {
    margin-top: 0;
}

/* Accent bar before h2 */
.catalog-seo-content .seo-content__body h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: clamp(1.5rem, 2vw, 1.75rem);
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.catalog-seo-content .seo-content__body h3 {
    font-size: clamp(1.0625rem, 1.5vw + 0.5rem, 1.25rem);
    font-weight: 600;
    color: var(--text-primary);
    margin: clamp(1.5rem, 3vw, 2rem) 0 clamp(0.75rem, 1.5vw, 1rem) 0;
    line-height: 1.4;
}

.catalog-seo-content .seo-content__body h3:first-child {
    margin-top: 0;
}

/* ============================================================================
   PARAGRAPHS
   ============================================================================ */

.catalog-seo-content .seo-content__body p {
    margin: 0 0 clamp(1rem, 2vw, 1.25rem) 0;
}

.catalog-seo-content .seo-content__body p:last-child {
    margin-bottom: 0;
}

/* ============================================================================
   LISTS - Clean Styling with Accent Bullets
   ============================================================================ */

.catalog-seo-content .seo-content__body ul,
.catalog-seo-content .seo-content__body ol {
    margin: clamp(1rem, 2vw, 1.25rem) 0;
    padding-left: 0;
    list-style: none;
}

.catalog-seo-content .seo-content__body ul li,
.catalog-seo-content .seo-content__body ol li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
    line-height: 1.7;
}

.catalog-seo-content .seo-content__body ul li:last-child,
.catalog-seo-content .seo-content__body ol li:last-child {
    margin-bottom: 0;
}

/* Accent bullet for unordered lists */
.catalog-seo-content .seo-content__body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* Numbered lists */
.catalog-seo-content .seo-content__body ol {
    counter-reset: seo-counter;
}

.catalog-seo-content .seo-content__body ol li {
    counter-increment: seo-counter;
}

.catalog-seo-content .seo-content__body ol li::before {
    content: counter(seo-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9em;
}

/* ============================================================================
   LINKS
   ============================================================================ */

.catalog-seo-content .seo-content__body a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.catalog-seo-content .seo-content__body a:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

.catalog-seo-content .seo-content__body a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ============================================================================
   STRONG & EMPHASIS
   ============================================================================ */

.catalog-seo-content .seo-content__body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.catalog-seo-content .seo-content__body a strong {
    color: inherit;
}

.catalog-seo-content .seo-content__body em {
    font-style: italic;
}

/* ============================================================================
   BLOCKQUOTES
   ============================================================================ */

.catalog-seo-content .seo-content__body blockquote {
    margin: clamp(1.25rem, 2.5vw, 1.5rem) 0;
    padding: clamp(1rem, 2vw, 1.25rem) clamp(1.25rem, 2.5vw, 1.5rem);
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.catalog-seo-content .seo-content__body blockquote p:last-child {
    margin-bottom: 0;
}

/* ============================================================================
   SEPARATOR BETWEEN SEO CONTENT AND FAQ
   Single clean border - no doubled stripes
   ============================================================================ */

.catalog-seo-content + .pkf-faq-section {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    padding-top: clamp(2.5rem, 5vw, 3.5rem);
    border-top: 1px solid var(--accent);
}

/* ============================================================================
   BOTTOM SPACING - Ensure separation from footer on all pages
   ============================================================================ */

/* Generic bottom spacing for SEO/FAQ containers */
.fps-seo-faq-section,
.trends-page__inner,
.guides-archive,
.forum-index .container,
.builder-page .container,
.games-overview-container {
    padding-bottom: clamp(3rem, 6vw, 4rem);
}

/* When SEO content or FAQ is the last element, ensure bottom margin */
.catalog-seo-content:last-child,
.pkf-faq-section:last-child {
    margin-bottom: clamp(3rem, 6vw, 4rem);
}

/* ============================================================================
   OVERRIDE TRENDS PLUGIN MAX-WIDTH
   ============================================================================ */

.trends-page .seo-content,
.trends-page__inner .seo-content,
.trends-page .catalog-seo-content .seo-content,
.trends-page__inner .catalog-seo-content .seo-content {
    max-width: none !important;
    width: 100%;
}

/* ============================================================================
   REDUCED MOTION
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    .catalog-seo-content .seo-content__body a {
        transition: none;
    }
}
