/**
 * Cohen House Blog Guide Styles
 * Version: 1.0.0
 * Last Updated: 2026-01-12
 * 
 * Mobile-first, accessible blog/guide template styling
 * Supports: Comparison guides, location guides, travel articles
 */

/* :root block moved to design-tokens.css */

/* ============================================================================
   BASE ARTICLE
   ============================================================================ */
.ch-blog-guide {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--ch-guide-text);
    line-height: 1.7;
    background: var(--ch-guide-bg);
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.ch-guide-hero {
    background: linear-gradient(135deg, var(--ch-guide-primary) 0%, #1e4356 100%);
    color: #ffffff;
    padding: 3rem 1.5rem;
    text-align: center;
}

.ch-guide-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Breadcrumb */
.ch-breadcrumb {
    margin-bottom: 1.5rem;
}

.ch-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

.ch-breadcrumb li {
    display: flex;
    align-items: center;
}

.ch-breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    opacity: 0.6;
}

.ch-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--ch-guide-transition);
}

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

/* Badge */
.ch-guide-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    font-size: 0.813rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Title */
.ch-guide-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

/* Subtitle */
.ch-guide-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.95;
    margin: 0 0 1.5rem 0;
}

/* Meta */
.ch-guide-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.ch-guide-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ch-guide-meta-item svg {
    opacity: 0.8;
}

/* ============================================================================
   CONTENT AREA
   ============================================================================ */
.ch-guide-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Sections */
.ch-guide-section {
    margin-bottom: 3rem;
}

.ch-guide-section:last-child {
    margin-bottom: 0;
}

/* Lead paragraph */
.ch-guide-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--ch-guide-text);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

/* Typography */
.ch-guide-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ch-guide-primary);
    margin: 2rem 0 1.25rem 0;
}

.ch-guide-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ch-guide-text);
    margin: 1.75rem 0 1rem 0;
}

.ch-guide-content p {
    margin: 0 0 1.25rem 0;
    font-size: 1.063rem;
    line-height: 1.7;
}

.ch-guide-content p:last-child {
    margin-bottom: 0;
}

.ch-guide-content strong {
    font-weight: 600;
    color: var(--ch-guide-text);
}

/* Links */
.ch-guide-content a {
    color: var(--ch-guide-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: var(--ch-guide-transition);
}

.ch-guide-content a:hover {
    color: #1e4356;
    text-decoration-thickness: 2px;
}

/* ============================================================================
   FAQ SECTION
   ============================================================================ */
.ch-guide-faq {
    background: var(--ch-guide-bg-alt);
    border-radius: 0.5rem;
    padding: 2rem 1.5rem;
    margin-top: 3rem;
}

.ch-guide-faq h2 {
    text-align: center;
    margin-top: 0;
}

.ch-faq-container {
    margin-top: 2rem;
}

.ch-faq-item {
    background: var(--ch-guide-bg);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px var(--ch-guide-shadow);
    transition: var(--ch-guide-transition);
}

.ch-faq-item:last-child {
    margin-bottom: 0;
}

.ch-faq-item:hover {
    box-shadow: 0 4px 12px var(--ch-guide-shadow);
}

.ch-faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ch-guide-primary);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.ch-faq-answer p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ch-guide-text-light);
    margin: 0;
}

/* ============================================================================
   CONCLUSION SECTION
   ============================================================================ */
.ch-guide-conclusion {
    border-top: 2px solid var(--ch-guide-border);
    padding-top: 2rem;
    margin-top: 3rem;
}

/* ============================================================================
   LLM FACTS BLOCK (hidden)
   ============================================================================ */
.ch-llm-facts {
    display: none;
}

/* ============================================================================
   TABLET STYLES (768px and up)
   ============================================================================ */
@media (min-width: 768px) {
    .ch-guide-hero {
        padding: 4rem 2rem;
    }

    .ch-guide-hero h1 {
        font-size: 2.5rem;
    }

    .ch-guide-content {
        padding: 4rem 2rem;
    }

    .ch-guide-content h2 {
        font-size: 2.125rem;
    }

    .ch-guide-content h3 {
        font-size: 1.5rem;
    }

    .ch-guide-lead {
        font-size: 1.375rem;
    }

    .ch-faq-item {
        padding: 2rem;
    }

    .ch-faq-question {
        font-size: 1.25rem;
    }

    .ch-faq-answer p {
        font-size: 1.063rem;
    }
}

/* ============================================================================
   DESKTOP STYLES (1024px and up)
   ============================================================================ */
@media (min-width: 1024px) {
    .ch-guide-hero {
        padding: 5rem 2rem;
    }

    .ch-guide-hero h1 {
        font-size: 3rem;
    }

    .ch-guide-content {
        padding: 5rem 2rem;
    }

    .ch-guide-content h2 {
        font-size: 2.25rem;
    }

    .ch-guide-content h3 {
        font-size: 1.625rem;
    }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */
@media print {
    .ch-guide-hero {
        background: #ffffff;
        color: #000000;
        padding: 1rem;
    }

    .ch-breadcrumb,
    .ch-guide-badge,
    .ch-guide-meta {
        display: none;
    }

    .ch-guide-hero h1 {
        color: #000000;
    }

    .ch-guide-content a {
        color: #000000;
        text-decoration: underline;
    }

    .ch-faq-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e0e0e0;
    }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

/* Focus states */
.ch-guide-content a:focus,
.ch-breadcrumb a:focus {
    outline: 2px solid var(--ch-guide-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ch-guide-hero {
        background: #000000;
        color: #ffffff;
    }

    .ch-guide-content a {
        text-decoration-thickness: 2px;
    }

    .ch-faq-item {
        border: 2px solid var(--ch-guide-primary);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Picture element positioning for hero */
.chb-hero {
    position: relative;
    overflow: hidden;
}

.chb-hero__picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.chb-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.chb-hero__inner {
    position: relative;
    z-index: 10;
}
