/* ══════════════════════════════════════════════════════════════
   Custom Shower Glass Doors — Blog Article Page Styles
   Page scope: .page-blog-article
   Requires: navy.css (tokens) + styles.css (base + components)
   ══════════════════════════════════════════════════════════════ */

/* ── NAVBAR LOGO ───────────────────────────────────────────── */

.navbar-logo {
    height: 40px;
    width: auto;
    display: block;
}

/* ── ARTICLE HEADER SECTION ────────────────────────────────── */

.article-header-section {
    background: var(--brand-bg);
}

/* Category badge + read time row */
.article-meta-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.article-category-badge {
    display: inline-block;
    background: var(--brand-glass);
    color: var(--brand-primary);
    border: 1px solid var(--brand-glass-deep);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.875rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.article-category-badge:hover {
    background: var(--brand-primary);
    color: var(--brand-text-light);
    border-color: var(--brand-primary);
}

.article-read-time {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--brand-text-muted);
}

.article-read-time i {
    font-size: 0.75rem;
    color: var(--brand-secondary);
}

/* Article H1 title */
.article-title {
    font-family: var(--font-heading);
    font-size: clamp(1.875rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--brand-text);
    margin-bottom: 1.125rem;
    letter-spacing: -0.01em;
}

/* Deck / standfirst paragraph */
.article-deck {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--brand-text-muted);
    margin-bottom: 1.75rem;
    max-width: 68ch;
}

/* Byline row */
.article-byline {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--brand-divider);
}

.article-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: var(--brand-text-light);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.article-byline-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 0.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--brand-text-muted);
    line-height: 1.4;
}

.article-author-name {
    font-weight: 600;
    color: var(--brand-text);
}

.article-byline-sep {
    color: var(--brand-border);
    font-size: 1rem;
    line-height: 1;
}

.article-date {
    color: var(--brand-text-muted);
}

.article-byline-updated {
    font-size: 0.8125rem;
    color: var(--brand-text-muted);
    font-style: italic;
}

/* Featured image */
.article-featured-image {
    margin: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.article-featured-image-inner {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.article-featured-image-inner i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.25);
}

.article-image-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 31, 46, 0.85) 0%, transparent 100%);
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 1.5rem 1.5rem 1rem;
}

.article-figcaption {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--brand-text-muted);
    line-height: 1.55;
    padding: 0.75rem 0 0;
    font-style: italic;
    text-align: center;
}

/* ── ARTICLE BODY SECTION ──────────────────────────────────── */

.article-body-section {
    padding: 3rem 0 2rem;
    background: var(--brand-bg);
}

/* Narrow prose column */
.article-content {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.78;
    color: var(--brand-text-body);
}

.article-content p {
    margin-bottom: 1.5rem;
}

/* H2 headings inside article body — with border-top rule */
.article-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: var(--brand-text);
    margin-top: 2.75rem;
    margin-bottom: 1.125rem;
    padding-top: 2rem;
    border-top: 2px solid var(--brand-divider);
    line-height: 1.25;
}

/* First H2 — no top border (content follows directly from intro) */
.article-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0.5rem;
}

/* H3 headings */
.article-content h3 {
    font-family: var(--font-heading);
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--brand-text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

/* Links in prose */
.article-content a {
    color: var(--brand-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--brand-glass-deep);
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.article-content a:hover {
    color: var(--brand-accent-dark);
    text-decoration-color: var(--brand-accent-dark);
}

/* ── BULLETED LISTS ─────────────────────────────────────────── */

.article-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.article-list li {
    position: relative;
    padding: 0.875rem 1rem 0.875rem 1.25rem;
    border-left: 3px solid var(--brand-glass-deep);
    background: var(--brand-bg-alt);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 0.625rem;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--brand-text-body);
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.article-list li:hover {
    border-left-color: var(--brand-primary);
    background: var(--brand-glass);
}

.article-list li strong {
    color: var(--brand-text);
    font-weight: 700;
}

/* Avoid list — red accent border */
.article-list--avoid li {
    border-left-color: rgba(192, 57, 43, 0.35);
    background: rgba(192, 57, 43, 0.04);
}

.article-list--avoid li:hover {
    border-left-color: var(--brand-error);
    background: var(--brand-error-bg);
}

/* ── TIP CALLOUT BOXES ──────────────────────────────────────── */

.article-tip-box {
    border-left: 4px solid var(--brand-accent);
    background: var(--brand-glass);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.article-tip-box p {
    margin-bottom: 0;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--brand-text-body);
}

.article-tip-box-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--brand-secondary);
    margin-bottom: 0.625rem;
}

.article-tip-box-label i {
    font-size: 0.875rem;
    color: var(--brand-accent);
}

/* Warning variant */
.article-tip-box--warning {
    border-left-color: var(--brand-warning);
    background: var(--brand-warning-bg);
}

.article-tip-box--warning .article-tip-box-label {
    color: var(--brand-warning);
}

.article-tip-box--warning .article-tip-box-label i {
    color: var(--brand-warning);
}

/* ── ARTICLE FOOTER: TAGS + SHARE ───────────────────────────── */

.article-footer-section {
    padding: 2rem 0 2.5rem;
    background: var(--brand-bg);
    border-top: 1px solid var(--brand-divider);
}

/* Tags row */
.article-tags-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1.5rem;
}

.article-tags-label {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    flex-shrink: 0;
}

.article-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Tag pills */
.article-tag {
    display: inline-block;
    background: var(--brand-bg-alt);
    color: var(--brand-text-body);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-full);
    padding: 0.3rem 0.875rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.article-tag:hover {
    background: var(--brand-primary);
    color: var(--brand-text-light);
    border-color: var(--brand-primary);
}

/* Share row */
.article-share-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.article-share-label {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    flex-shrink: 0;
}

.article-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Share buttons — base */
.article-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    white-space: nowrap;
}

.article-share-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: #fff;
}
.article-share-btn.article-share-btn--linkedin:hover {
    color: var(--brand-primary);
}

.article-share-btn--facebook {
    background: #1877F2;
    color: #fff;
}

.article-share-btn--x {
    background: #000000;
    color: #fff;
}

.article-share-btn--pinterest {
    background: #E60023;
    color: #fff;
}

.article-share-btn--email {
    background: var(--brand-secondary);
    color: #fff;
}

.article-share-btn--copy {
    background: var(--brand-bg-alt);
    color: var(--brand-text-body);
    border: 1px solid var(--brand-border);
}

.article-share-btn--copy:hover {
    background: var(--brand-glass);
    color: var(--brand-primary);
    border-color: var(--brand-glass-deep);
}

.article-share-btn--copied {
    background: var(--brand-success-bg);
    color: var(--brand-success);
    border-color: rgba(42, 122, 75, 0.3);
}

/* ── AUTHOR BIO BOX ─────────────────────────────────────────── */

.author-bio-section {
    padding: 2.5rem 0;
    background: var(--brand-bg-alt);
    border-top: 1px solid var(--brand-divider);
    border-bottom: 1px solid var(--brand-divider);
}

.author-bio-box {
    display: flex;
    gap: 1.5rem;
    background: var(--brand-bg-card);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.author-bio-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: var(--brand-text-light);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.author-bio-content {
    flex: 1;
    min-width: 0;
}

.author-bio-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.875rem;
}

.author-bio-role {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-secondary);
    margin-bottom: 0.25rem;
}

.author-bio-name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--brand-text);
    margin-bottom: 0.2rem;
}

.author-bio-title {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--brand-text-muted);
    margin-bottom: 0;
}

.author-bio-social {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.author-social-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--brand-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-text-muted);
    font-size: 0.8125rem;
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.author-social-link:hover {
    background: var(--brand-primary);
    color: var(--brand-text-light);
    border-color: var(--brand-primary);
}

.author-bio-text {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--brand-text-body);
    margin-bottom: 0;
}

/* ── RELATED ARTICLES SECTION ───────────────────────────────── */

.related-articles-section {
    padding: var(--section-py) 0;
    background: var(--brand-bg-alt);
}

/* Related article cards */
.related-card {
    background: var(--brand-bg-card);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-slow), transform var(--transition-slow), border-color var(--transition-slow);
}

.related-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-5px);
    border-color: var(--brand-accent);
}

/* Card image placeholder */
.related-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity var(--transition-slow);
}

.related-card-image i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.35);
}

.related-card-image--2 {
    background: linear-gradient(135deg, var(--brand-secondary-dark) 0%, var(--brand-accent) 100%);
}

.related-card-image--3 {
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary-light) 100%);
}

/* Card body */
.related-card-body {
    padding: 1.375rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-card-category {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-secondary);
    margin-bottom: 0.625rem;
}

.related-card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--brand-text);
    margin-bottom: 0.625rem;
}

.related-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.related-card-title a:hover {
    color: var(--brand-primary);
}

.related-card-excerpt {
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--brand-text-muted);
    flex: 1;
    margin-bottom: 1rem;
}

.related-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--brand-text-muted);
    border-top: 1px solid var(--brand-divider);
    padding-top: 0.875rem;
    margin-top: auto;
}

.related-card-date {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.related-card-date i {
    font-size: 0.75rem;
    color: var(--brand-secondary);
}

.related-card-read-time {
    font-weight: 500;
    color: var(--brand-text-muted);
}

/* ── CTA BANNER EXTRAS ──────────────────────────────────────── */

/* Image placeholder inside CTA banner */
.cta-image-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
}

/* ── BACK TO TOP ────────────────────────────────────────────── */

.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: var(--brand-text-light);
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: background var(--transition-fast), transform var(--transition-fast), opacity var(--transition-base);
    opacity: 0;
}

.back-to-top-btn:not(.d-none) {
    opacity: 1;
}

.back-to-top-btn:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-3px);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */

@media (max-width: 767.98px) {
    .article-header-section {
        padding: 2rem 0 0;
    }

    .article-featured-image-inner {
        height: 240px;
    }

    .article-byline {
        flex-wrap: wrap;
    }

    .article-byline-text {
        font-size: 0.8125rem;
    }

    .article-body-section {
        padding: 2rem 0 1.5rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-share-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .author-bio-box {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .author-bio-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .back-to-top-btn {
        bottom: 1.25rem;
        right: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .article-meta-top {
        flex-wrap: wrap;
    }

    .article-share-buttons {
        gap: 0.375rem;
    }

    .article-share-btn span {
        display: none;
    }

    .article-share-btn {
        padding: 0.5rem 0.75rem;
    }
}
