/* ===========================================
   BLOG ARTICLE STYLES - INDUSTRIAL DARK THEME
   Matches WB Truck Repair Brutalist Design
   =========================================== */

/* Blog Container */
.blog-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 32px;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--smoke);
}

.breadcrumb a {
    color: var(--amber);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--amber-bright);
}

/* Blog Header */
.blog-header {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--steel);
}

.blog-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 var(--amber-dark);
}

.blog-meta {
    color: var(--smoke);
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-meta::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 3px;
    background: var(--amber);
    margin-right: 8px;
}

/* Blog Featured Image */
.blog-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 48px;
    border: 3px solid var(--amber);
    filter: grayscale(30%);
    transition: filter 0.4s ease;
}

.blog-image:hover {
    filter: grayscale(0%);
}

/* Blog Content Typography */
.blog-content {
    line-height: 1.85;
    color: var(--fog);
    font-size: 1.05rem;
}

.blog-content h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--white);
    margin-top: 56px;
    margin-bottom: 24px;
    padding-left: 20px;
    border-left: 4px solid var(--amber);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.blog-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--amber);
    margin-top: 40px;
    margin-bottom: 16px;
    letter-spacing: 0.03em;
}

.blog-content p {
    margin-bottom: 24px;
    color: var(--fog);
}

.blog-content strong {
    color: var(--white);
    font-weight: 600;
}

.blog-content a {
    color: var(--amber);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-content a:hover {
    color: var(--amber-bright);
}

/* Lists */
.blog-content ul,
.blog-content ol {
    margin-bottom: 28px;
    padding-left: 0;
    list-style: none;
}

.blog-content ul li,
.blog-content ol li {
    margin-bottom: 14px;
    padding-left: 28px;
    position: relative;
    color: var(--fog);
}

.blog-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--amber);
    font-weight: bold;
}

.blog-content ol {
    counter-reset: list-counter;
}

.blog-content ol li {
    counter-increment: list-counter;
}

.blog-content ol li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    color: var(--coal);
    background: var(--amber);
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 3px;
}

/* Tables */
.checklist-table,
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 36px 0;
    background: var(--asphalt);
    border: 1px solid var(--steel);
}

.checklist-table th,
.checklist-table td,
.blog-content table th,
.blog-content table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--steel);
}

.checklist-table thead,
.blog-content table thead {
    background: var(--steel);
}

.checklist-table th,
.blog-content table th {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--amber);
    font-weight: 400;
}

.checklist-table td,
.blog-content table td {
    color: var(--fog);
    font-size: 0.95rem;
}

.checklist-table tbody tr:hover,
.blog-content table tbody tr:hover {
    background: var(--steel);
}

/* Highlight/Callout Box */
.highlight-box {
    background: var(--asphalt);
    border-left: 4px solid var(--amber);
    padding: 24px 28px;
    margin: 32px 0;
    position: relative;
}

.highlight-box::before {
    content: '!';
    position: absolute;
    top: -12px;
    left: -12px;
    width: 24px;
    height: 24px;
    background: var(--amber);
    color: var(--coal);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-box strong {
    color: var(--amber);
    font-family: var(--font-display);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Warning Box */
.warning-box {
    background: var(--asphalt);
    border-left: 4px solid var(--danger);
    padding: 24px 28px;
    margin: 32px 0;
    position: relative;
}

.warning-box::before {
    content: '⚠';
    position: absolute;
    top: -12px;
    left: -12px;
    width: 24px;
    height: 24px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tip Box */
.tip-box {
    background: var(--asphalt);
    border-left: 4px solid #22c55e;
    padding: 24px 28px;
    margin: 32px 0;
    position: relative;
}

.tip-box::before {
    content: '✓';
    position: absolute;
    top: -12px;
    left: -12px;
    width: 24px;
    height: 24px;
    background: #22c55e;
    color: var(--coal);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stat Cards */
.stat-callout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    background: var(--steel);
    padding: 28px;
    border-top: 4px solid var(--amber);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.stat-card h4 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--amber);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.stat-card p {
    margin: 0;
    color: var(--fog);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
    color: var(--white);
    padding: 48px 40px;
    text-align: center;
    margin: 56px 0;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 8px,
        rgba(255, 255, 255, 0.03) 8px,
        rgba(255, 255, 255, 0.03) 16px
    );
    pointer-events: none;
}

.cta-box h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin: 0 0 16px;
    color: var(--white);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.cta-box p {
    margin: 0 0 28px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.cta-box .btn {
    position: relative;
    z-index: 1;
}

/* Blog Index Specific */
.blog-hero {
    background: linear-gradient(135deg, var(--coal) 0%, var(--asphalt) 100%);
    color: var(--white);
    padding: 140px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(255, 140, 0, 0.03) 10px,
        rgba(255, 140, 0, 0.03) 20px
    );
    pointer-events: none;
}

.blog-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 16px;
    text-shadow: 2px 2px 0 var(--amber-dark);
    position: relative;
    z-index: 1;
}

.blog-hero p {
    font-size: 1.15rem;
    color: var(--ash);
    position: relative;
    z-index: 1;
}

/* Blog Cards Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.blog-card {
    background: var(--asphalt);
    overflow: hidden;
    border: 1px solid var(--steel);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--amber);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: grayscale(50%);
    transition: filter 0.4s ease;
}

.blog-card:hover .blog-card-image {
    filter: grayscale(0%);
}

.blog-card-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.blog-card-excerpt {
    color: var(--ash);
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
    font-size: 0.95rem;
}

.blog-card-meta {
    color: var(--smoke);
    font-size: 0.85rem;
    margin-bottom: 16px;
    letter-spacing: 0.03em;
}

.blog-card-link {
    color: var(--amber);
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s ease;
}

.blog-card:hover .blog-card-link {
    gap: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-container {
        padding: 100px 16px 60px;
    }

    .blog-title {
        font-size: 1.8rem;
    }

    .blog-content h2 {
        font-size: 1.3rem;
        margin-top: 40px;
    }

    .checklist-table,
    .blog-content table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
    }

    .checklist-table th,
    .checklist-table td,
    .blog-content table th,
    .blog-content table td {
        padding: 12px 14px;
    }

    .cta-box {
        padding: 36px 24px;
        clip-path: none;
    }

    .cta-box h3 {
        font-size: 1.4rem;
    }

    .stat-callout {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        padding: 0 16px 40px;
    }

    .blog-hero {
        padding: 120px 16px 60px;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }
}
