/* ============================================================
   CampMatic Blog — Styles
   Supplements ../css/style.css — load both.
   ============================================================ */

/* ============================================================
   BLOG NAV OVERRIDE
   The blog nav is always on a dark (#1A252F) background.
   ============================================================ */
.nav {
    background: rgba(26, 37, 47, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   PAGE HEADER (hero-lite for blog pages)
   ============================================================ */
.blog-header {
    background: var(--navy);
    padding: 120px 24px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.blog-header::before {
    content: '';
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(232, 83, 14, 0.07) 0%, transparent 70%);
    pointer-events: none;
}
.blog-header__label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}
.blog-header__title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    max-width: 720px;
    margin: 0 auto 16px;
}
.blog-header__subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    background: var(--light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.breadcrumb__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    color: var(--slate-light);
}
.breadcrumb__sep {
    color: #C0C8D0;
}
.breadcrumb__link {
    color: var(--slate-light);
    transition: color var(--transition);
}
.breadcrumb__link:hover {
    color: var(--orange);
}
.breadcrumb__current {
    color: var(--slate);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 360px;
}

/* ============================================================
   BLOG INDEX — LAYOUT
   ============================================================ */
.blog-index {
    background: var(--white);
    padding: 64px 24px 96px;
}
.blog-index__inner {
    max-width: 1160px;
    margin: 0 auto;
}
.blog-index__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}
.blog-index__empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--slate-light);
    font-size: 1rem;
}

/* ============================================================
   ARTICLE CARD
   ============================================================ */
.article-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.article-card__img-wrap {
    aspect-ratio: 16 / 9;
    background: var(--navy);
    overflow: hidden;
    position: relative;
}
.article-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.article-card:hover .article-card__img-wrap img {
    transform: scale(1.04);
}
.article-card__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy) 0%, #2C3E50 100%);
}
.article-card__img-placeholder svg {
    opacity: 0.2;
}
.article-card__category {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: var(--orange);
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.article-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.article-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    color: var(--slate-light);
    margin-bottom: 12px;
}
.article-card__meta-dot {
    width: 3px;
    height: 3px;
    background: #C0C8D0;
    border-radius: 50%;
    flex-shrink: 0;
}
.article-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
    margin-bottom: 12px;
    transition: color var(--transition);
}
.article-card:hover .article-card__title {
    color: var(--orange);
}
.article-card__excerpt {
    font-size: 0.9rem;
    color: var(--slate-light);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--orange);
    transition: gap var(--transition);
    margin-top: auto;
}
.article-card__link:hover {
    gap: 10px;
}
.article-card__link svg {
    flex-shrink: 0;
    transition: transform var(--transition);
}
.article-card:hover .article-card__link svg {
    transform: translateX(3px);
}

/* ============================================================
   SINGLE ARTICLE PAGE
   ============================================================ */
.article-page {
    background: var(--white);
    padding: 56px 24px 96px;
}
.article-page__inner {
    max-width: 720px;
    margin: 0 auto;
}

/* Article header */
.article-page__category {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}
.article-page__title {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 20px;
}
.article-page__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    color: var(--slate-light);
    padding-bottom: 24px;
    border-bottom: 2px solid var(--light);
    margin-bottom: 40px;
}
.article-page__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.article-page__meta-item svg {
    flex-shrink: 0;
    color: var(--orange);
}
.article-page__hero-img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

/* ============================================================
   ARTICLE BODY TYPOGRAPHY
   ============================================================ */
.article__body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--slate);
}
.article__body h2 {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.25;
    margin: 2.4em 0 0.7em;
    padding-top: 0.4em;
    border-top: 2px solid var(--light);
}
.article__body h2:first-child {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}
.article__body h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    margin: 2em 0 0.6em;
}
.article__body h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 1.6em 0 0.5em;
}
.article__body p {
    margin-bottom: 1.4em;
}
.article__body a {
    color: var(--orange);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}
.article__body a:hover {
    color: var(--orange-hover);
}
.article__body strong {
    font-weight: 700;
    color: var(--navy);
}
.article__body em {
    font-style: italic;
}
.article__body ul,
.article__body ol {
    margin: 0 0 1.4em 0;
    padding-left: 1.6em;
}
.article__body ul {
    list-style: none;
    padding-left: 0;
}
.article__body ul li {
    position: relative;
    padding-left: 1.4em;
    margin-bottom: 0.5em;
}
.article__body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
}
.article__body ol {
    list-style: decimal;
}
.article__body ol li {
    margin-bottom: 0.5em;
    padding-left: 0.3em;
}
.article__body ol li::marker {
    color: var(--orange);
    font-weight: 700;
}
.article__body blockquote {
    margin: 1.8em 0;
    padding: 20px 24px;
    background: var(--orange-light);
    border-left: 4px solid var(--orange);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article__body blockquote p {
    margin: 0;
    font-style: italic;
    color: var(--slate);
}
.article__body figure {
    margin: 2em 0;
}
.article__body figure img {
    width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}
.article__body figcaption {
    text-align: center;
    font-size: 0.82rem;
    color: var(--slate-light);
    margin-top: 10px;
    font-style: italic;
}
.article__body pre {
    background: var(--navy);
    color: #BDC3C7;
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 1.6em 0;
}
.article__body code {
    font-family: 'Courier New', Courier, monospace;
}
.article__body p code {
    background: var(--light);
    color: var(--navy);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
}
.article__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8em 0;
    font-size: 0.9rem;
}
.article__body th {
    font-family: var(--font-heading);
    font-weight: 700;
    background: var(--navy);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
}
.article__body td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--light);
}
.article__body tr:nth-child(even) td {
    background: rgba(240, 242, 245, 0.5);
}

/* ============================================================
   ARTICLE TAGS
   ============================================================ */
.article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 2px solid var(--light);
}
.article__tag {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--slate-light);
    background: var(--light);
    padding: 4px 12px;
    border-radius: 100px;
    transition: all var(--transition);
}
.article__tag:hover {
    background: var(--orange-light);
    color: var(--orange);
}

/* ============================================================
   CTA BOX (inside article, above related)
   ============================================================ */
.article__cta {
    margin: 56px 0 0;
    padding: 36px 32px;
    background: var(--navy);
    border-radius: var(--radius);
    text-align: center;
    color: #fff;
}
.article__cta-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}
.article__cta h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.article__cta p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   RELATED ARTICLES
   ============================================================ */
.related {
    background: var(--light);
    padding: 64px 24px;
    margin-top: 80px;
}
.related__inner {
    max-width: 960px;
    margin: 0 auto;
}
.related__heading {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.related__heading::after {
    content: '';
    flex: 1;
    height: 2px;
    background: rgba(0, 0, 0, 0.08);
}
.related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ============================================================
   BACK LINK
   ============================================================ */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--slate-light);
    margin-bottom: 40px;
    transition: color var(--transition), gap var(--transition);
}
.back-link:hover {
    color: var(--orange);
    gap: 12px;
}
.back-link svg {
    transition: transform var(--transition);
}
.back-link:hover svg {
    transform: translateX(-3px);
}

/* ============================================================
   BLOG INDEX — SECTION HEADING
   ============================================================ */
.blog-section-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}
.blog-section-sub {
    font-size: 0.95rem;
    color: var(--slate-light);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .blog-header {
        padding: 100px 20px 48px;
    }
    .blog-index {
        padding: 48px 20px 72px;
    }
    .blog-index__grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 32px;
    }
    .article-page {
        padding: 40px 20px 72px;
    }
    .article-page__title {
        font-size: 1.6rem;
    }
    .article__body {
        font-size: 1rem;
    }
    .article__body h2 {
        font-size: 1.3rem;
    }
    .article__cta {
        padding: 28px 20px;
    }
    .related {
        padding: 48px 20px;
    }
    .related__grid {
        grid-template-columns: 1fr;
    }
    .breadcrumb__current {
        max-width: 220px;
    }
}
@media (max-width: 480px) {
    .article-page__meta {
        gap: 10px;
    }
    .article-card__body {
        padding: 18px;
    }
}

/* Disclaimer */
.article__disclaimer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.35);
    font-size: .75rem;
    line-height: 1.5;
}
.article__disclaimer a {
    color: rgba(255,255,255,.45);
    text-decoration: underline;
}
