/**
 * Blog Styles - Premium 2026 Design
 * Phil Neil Website
 */

/* ============================================
   BLOG POST ARTICLE PAGE
   ============================================ */

/* Article Hero/Header */
.article-hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--color-surface) 0%, #faf9f7 100%);
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 119, 34, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.article-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(26, 47, 75, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.article-hero__inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Breadcrumb */
.article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    margin-bottom: 32px;
}

.article-breadcrumb a {
    color: var(--color-orange);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.article-breadcrumb a:hover {
    color: #d16a1f;
}

.article-breadcrumb__separator {
    color: var(--color-text-muted);
    font-size: 10px;
}

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

/* Category Badge */
.article-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(232, 119, 34, 0.1);
    color: var(--color-orange);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 24px;
    margin-bottom: 20px;
}

.article-category svg {
    width: 14px;
    height: 14px;
}

/* Article Title */
.article-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-navy);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

/* Article Meta */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.article-meta__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-meta__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-meta__author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.article-meta__name {
    font-weight: 600;
    color: var(--color-navy);
    font-size: 0.9375rem;
}

.article-meta__role {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.article-meta__divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

.article-meta__details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.article-meta__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.article-meta__item svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* ============================================
   ARTICLE CONTENT
   ============================================ */

.article-body {
    padding: 60px 0 80px;
    background: var(--color-white);
}

.article-body__inner {
    max-width: 720px;
    margin: 0 auto;
}

/* Typography */
.article-content {
    font-size: 1.125rem;
    line-height: 1.85;
    color: var(--color-text);
}

.article-content > *:first-child {
    margin-top: 0;
}

.article-content p {
    margin-bottom: 1.75em;
}

.article-content p:first-of-type {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Headings */
.article-content h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-navy);
    margin-top: 2.5em;
    margin-bottom: 0.75em;
    letter-spacing: -0.01em;
}

.article-content h3 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-navy);
    margin-top: 2em;
    margin-bottom: 0.5em;
}

.article-content h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-navy);
    margin-top: 1.75em;
    margin-bottom: 0.5em;
}

/* Links */
.article-content a {
    color: var(--color-orange);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.article-content a:hover {
    color: #d16a1f;
    text-decoration-thickness: 2px;
}

/* Lists */
.article-content ul,
.article-content ol {
    margin-bottom: 1.75em;
    padding-left: 1.5em;
}

.article-content li {
    margin-bottom: 0.75em;
    padding-left: 0.5em;
}

.article-content ul li {
    list-style-type: disc;
}

.article-content ul li::marker {
    color: var(--color-orange);
}

.article-content ol li::marker {
    color: var(--color-orange);
    font-weight: 600;
}

/* Blockquotes */
.article-content blockquote {
    position: relative;
    margin: 2.5em 0;
    padding: 32px 40px;
    background: linear-gradient(135deg, #faf9f7 0%, #f5f3f0 100%);
    border-radius: 16px;
    border: none;
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--color-navy);
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 24px;
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--color-orange);
    opacity: 0.3;
}

.article-content blockquote p {
    margin: 0;
    font-size: inherit;
    color: inherit;
}

/* Images */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2em 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.article-content figure {
    margin: 2.5em 0;
}

.article-content figcaption {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 12px;
    font-style: italic;
}

/* Strong & Emphasis */
.article-content strong {
    font-weight: 600;
    color: var(--color-navy);
}

.article-content em {
    font-style: italic;
}

/* Code */
.article-content code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9em;
    padding: 2px 8px;
    background: #f5f3f0;
    border-radius: 4px;
    color: var(--color-navy);
}

.article-content pre {
    margin: 2em 0;
    padding: 24px;
    background: var(--color-navy);
    border-radius: 12px;
    overflow-x: auto;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: #e5e5e5;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Horizontal Rule */
.article-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
    margin: 3em 0;
}

/* ============================================
   AUTHOR BOX
   ============================================ */

.author-box {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #faf9f7 0%, #f5f3f0 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.author-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--color-orange), var(--color-navy));
}

.author-box__inner {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.author-box__avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.author-box__content {
    flex: 1;
}

.author-box__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 8px;
}

.author-box__name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 12px;
}

.author-box__bio {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.author-box__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-orange);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: gap 0.2s ease;
}

.author-box__link:hover {
    gap: 10px;
}

.author-box__link svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   ARTICLE CTA
   ============================================ */

.article-cta {
    margin-top: 48px;
    padding: 48px;
    background: linear-gradient(135deg, var(--color-navy) 0%, #1a2f4a 100%);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 119, 34, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.article-cta__inner {
    position: relative;
    z-index: 1;
}

.article-cta__title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.article-cta__text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    line-height: 1.6;
}

.article-cta__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--color-orange);
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.article-cta__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(232, 119, 34, 0.4);
}

.article-cta__button svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   RELATED ARTICLES
   ============================================ */

.related-articles {
    padding: 80px 0;
    background: var(--color-surface);
}

.related-articles__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.related-articles__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
}

.related-articles__link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-orange);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9375rem;
}

.related-articles__link:hover {
    text-decoration: underline;
}

.related-articles__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.related-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: var(--color-orange);
}

.related-card__category {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 12px;
}

.related-card__title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-navy);
    margin-bottom: 12px;
}

.related-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.related-card__meta svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* ============================================
   SHARE BUTTONS (FLOATING SIDEBAR)
   ============================================ */

.article-share {
    position: fixed;
    left: max(16px, calc((100vw - 800px) / 2 - 80px));
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
}

.article-share__button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.article-share__button:hover {
    background: var(--color-orange);
    border-color: var(--color-orange);
    color: white;
    transform: scale(1.1);
}

.article-share__button svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.article-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--color-orange), #f5a623);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    .article-share {
        display: none;
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding: 60px 0 40px;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .article-meta__divider {
        display: none;
    }

    .article-body {
        padding: 40px 0 60px;
    }

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

    .article-content p:first-of-type {
        font-size: 1.0625rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.25rem;
    }

    .article-content blockquote {
        padding: 24px;
        font-size: 1.0625rem;
    }

    .article-content blockquote::before {
        font-size: 3rem;
        top: -5px;
        left: 16px;
    }

    .author-box {
        padding: 24px;
    }

    .author-box__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-box__avatar {
        width: 80px;
        height: 80px;
    }

    .article-cta {
        padding: 32px 24px;
    }

    .article-cta__title {
        font-size: 1.375rem;
    }

    .related-articles {
        padding: 60px 0;
    }

    .related-articles__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ============================================
   BLOG LISTING PAGE (Keep existing styles)
   ============================================ */

/* Hero */
.blog-hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, var(--color-surface) 0%, #f8f6f3 100%);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 119, 34, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.blog-hero__inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.blog-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 16px;
}

.blog-hero__eyebrow svg {
    width: 16px;
    height: 16px;
}

.blog-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-navy);
    margin-bottom: 20px;
}

.blog-hero__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}
