/* ============================================================
   BIZIX AEROSPACE — Blog Styles
   AESTHETIC: Tactical HUD — intel briefing typography
   ============================================================ */

/* --- BLOG LISTING --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    display: block;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    position: relative;
    clip-path: polygon(
        0 var(--bevel),
        var(--bevel) 0,
        100% 0,
        100% calc(100% - var(--bevel)),
        calc(100% - var(--bevel)) 100%,
        0 100%
    );
    overflow: hidden;
}

/* Animated scan-line on hover */
.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    transform: translateX(-100%);
    transition: none;
}
.blog-card:hover::before {
    animation: scan-sweep 1.5s ease-out;
}

.blog-card::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-warm);
    opacity: 0;
    transition: opacity 0.3s;
}
.blog-card:hover::after { opacity: 0.8; }

.blog-card:hover {
    border-color: rgba(0, 240, 255, 0.25);
    transform: translateY(-4px);
    box-shadow:
        0 10px 40px rgba(0, 240, 255, 0.06),
        0 0 0 1px rgba(0, 240, 255, 0.08);
}

.blog-card time {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    color: var(--accent-warm);
    text-transform: uppercase;
    letter-spacing: 3px;
}
.blog-card h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--text-main);
    margin: 1.2rem 0;
    text-transform: uppercase;
    line-height: 1.5;
    letter-spacing: 0.5px;
}
.blog-card p {
    color: var(--text-body);
    line-height: 1.8;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.blog-card .read-more {
    color: var(--accent-cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    position: relative;
    padding-left: 1.2rem;
}
.blog-card .read-more::before {
    content: '>>';
    position: absolute;
    left: 0;
    font-family: monospace;
    transition: transform 0.3s;
}
.blog-card:hover .read-more {
    text-shadow: 0 0 15px var(--accent-cyan-glow);
}
.blog-card:hover .read-more::before {
    transform: translateX(3px);
}

/* --- BLOG POST ARTICLE --- */
.blog-post {
    padding-top: calc(var(--nav-height) + 5rem);
    padding-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.post-header {
    max-width: var(--max-prose);
    margin: 0 auto 4rem;
    padding: 0 5%;
    position: relative;
}
/* Intel briefing bracket */
.post-header::before {
    content: '';
    position: absolute;
    top: -15px;
    left: calc(5% - 15px);
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--accent-cyan);
    border-left: 2px solid var(--accent-cyan);
    opacity: 0.4;
    box-shadow: -3px -3px 12px rgba(0, 240, 255, 0.15);
    animation: hud-flicker-fast 8s infinite;
}

.post-header time {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    color: var(--accent-warm);
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 1.5rem;
}
.post-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: glitch-text 14s infinite;
    background: linear-gradient(180deg, #ffffff 0%, #6b7a8d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}
.post-header .post-excerpt {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    border-left: 3px solid var(--accent-cyan);
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.03) 0%, transparent 100%);
}

/* --- POST BODY TYPOGRAPHY --- */
.post-body {
    max-width: var(--max-prose);
    margin: 0 auto;
    padding: 0 5%;
}

.post-body h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--text-main);
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-left: 1.25rem;
    border-left: 3px solid var(--accent-cyan);
    position: relative;
}
/* Glow on h2 border */
.post-body h2::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan-glow), 0 0 25px rgba(0, 240, 255, 0.2), 0 0 50px rgba(0, 240, 255, 0.08);
    filter: blur(2px);
    animation: hud-flicker 12s infinite;
}

.post-body h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1rem;
}
.post-body h3::before {
    content: '//';
    position: absolute;
    left: -0.5rem;
    color: var(--accent-cyan);
    opacity: 0.4;
    font-family: monospace;
    font-size: 0.8rem;
}

.post-body p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-body);
    margin-bottom: 1.5rem;
}

.post-body strong {
    color: var(--text-main);
    font-weight: 600;
}

.post-body ul, .post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 0;
    list-style: none;
}
.post-body li {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-body);
    margin-bottom: 0.6rem;
    padding-left: 2rem;
    position: relative;
}
.post-body li::before {
    content: '>';
    position: absolute;
    left: 0.5rem;
    color: var(--accent-cyan);
    font-family: monospace;
    font-size: 0.85rem;
    opacity: 0.6;
}
.post-body ol { counter-reset: item; }
.post-body ol li::before {
    content: counter(item, decimal-leading-zero);
    counter-increment: item;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    color: var(--accent-warm);
    opacity: 0.8;
    letter-spacing: 1px;
}

.post-body blockquote {
    border-left: 3px solid var(--accent-cyan);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.04) 0%, rgba(6, 10, 18, 0.8) 100%);
    font-size: 1.05rem;
    color: #ccc;
    line-height: 1.8;
    position: relative;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.post-body blockquote::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-cyan), transparent 60%);
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
}
.post-body th {
    text-align: left;
    color: var(--accent-cyan);
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(0, 240, 255, 0.03);
}
.post-body td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--text-body);
    font-size: 0.95rem;
}

/* --- POST FOOTER --- */
.post-footer {
    max-width: var(--max-prose);
    margin: 4rem auto 0;
    padding: 3rem 5% 0;
    border-top: 1px solid rgba(255,255,255,0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.post-footer a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
}
.post-footer a:hover {
    text-shadow: 0 0 15px var(--accent-cyan-glow);
}
.post-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.post-footer p a {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0;
}

/* --- BLOG RESPONSIVE --- */
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .post-header h1 { font-size: 1.8rem; }
    .post-header::before { display: none; }
    .post-body h2 { font-size: 1.15rem; }
    .post-body h3::before { display: none; padding-left: 0; }
    .post-body p { font-size: 1rem; }
    .post-footer { flex-direction: column; gap: 1rem; text-align: center; }
    .blog-card { --bevel: 8px; }
}
