/* ── Blog listing page ───────────────────────────────────────── */

.bl-hero {
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.bl-label {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: clamp(0.68rem, 1.5vw, 0.78rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #64ffda;
    border: 1px solid rgba(100, 255, 218, 0.25);
    border-radius: 4px;
    padding: 4px 12px;
    margin-bottom: 1.25rem;
}

.bl-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    color: #ccd6f6;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.bl-hero p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: #8892b0;
    max-width: 560px;
    line-height: 1.8;
    margin: 0;
}

/* ── Filter tabs ─────────────────────────────────────────────── */

.bl-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.bl-filter-btn {
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(100, 255, 218, 0.25);
    background: transparent;
    color: #8892b0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bl-filter-btn:hover,
.bl-filter-btn.active {
    background: rgba(100, 255, 218, 0.1);
    border-color: #64ffda;
    color: #64ffda;
}

/* ── Post cards grid ─────────────────────────────────────────── */

.bl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
    margin-bottom: clamp(3rem, 8vw, 6rem);
}

.bl-card {
    background: #112240;
    border: 1px solid #233554;
    border-radius: 14px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s ease, transform 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.bl-card:hover {
    border-color: rgba(100, 255, 218, 0.4);
    transform: translateY(-4px);
    text-decoration: none;
    color: inherit;
}

.bl-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bl-card-cat {
    font-family: 'Courier New', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64ffda;
    background: rgba(100, 255, 218, 0.08);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 4px;
    padding: 3px 10px;
}

.bl-card-read {
    font-family: 'Courier New', monospace;
    font-size: 0.68rem;
    color: #8892b0;
}

.bl-card-title {
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
    font-weight: 700;
    color: #ccd6f6;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.bl-card:hover .bl-card-title {
    color: #64ffda;
}

.bl-card-excerpt {
    font-size: 0.88rem;
    color: #8892b0;
    line-height: 1.8;
    flex: 1;
    margin-bottom: 1.25rem;
}

.bl-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #233554;
    padding-top: 1rem;
    margin-top: auto;
}

.bl-card-date {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: #8892b0;
}

.bl-card-cta {
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    color: #64ffda;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.bl-card:hover .bl-card-cta {
    gap: 8px;
}

/* ── Individual post page ────────────────────────────────────── */

.post-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 5rem) 1rem clamp(4rem, 10vw, 7rem);
}

.post-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8892b0;
    text-decoration: none;
    margin-bottom: 2.5rem;
    transition: color 0.2s ease;
}

.post-back:hover {
    color: #64ffda;
    text-decoration: none;
}

.post-eyebrow {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #64ffda;
    background: rgba(100, 255, 218, 0.08);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 4px;
    padding: 3px 10px;
    margin-bottom: 1.25rem;
}

.post-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    color: #ccd6f6;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #8892b0;
    margin-bottom: 2rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: #8892b0;
    font-style: italic;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.post-close {
    line-height: 2.2;
    color: #a8b2d8;
}

.post-divider {
    border: none;
    border-top: 1px solid rgba(100, 255, 218, 0.15);
    margin-bottom: 2.5rem;
}

/* ── Article body typography ─────────────────────────────────── */

.post-body {
    font-size: clamp(1rem, 2vw, 1.08rem);
    line-height: 1.95;
    color: #ccd6f6;
}

.post-body p {
    margin-bottom: 1.6rem;
}

.post-body h2 {
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    font-weight: 700;
    color: #ccd6f6;
    margin: 2.5rem 0 1rem;
}

.post-body strong {
    color: #64ffda;
    font-weight: 700;
}

.post-body hr {
    border: none;
    border-top: 1px solid #233554;
    margin: 2.5rem 0;
}

.post-body .standout {
    border-left: 3px solid #64ffda;
    padding: 0.25rem 0 0.25rem 1.25rem;
    color: #a8b2d8;
    font-style: italic;
    margin: 2rem 0;
}

/* ── Share section ───────────────────────────────────────────── */

.post-share {
    margin-top: 3rem;
    padding: 1.75rem;
    background: #112240;
    border: 1px solid #233554;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.post-share-text strong {
    display: block;
    color: #ccd6f6;
    font-size: 1rem;
    margin-bottom: 4px;
}

.post-share-text p {
    font-size: 0.88rem;
    color: #8892b0;
    margin: 0;
}

.share-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.post-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.post-share-btn:hover {
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.post-share-btn--linkedin             { background: #0a66c2; }
.post-share-btn--linkedin:hover       { background: #004182; }

.post-share-btn--x                    { background: #000; }
.post-share-btn--x:hover              { background: #333; }

.post-share-btn--facebook             { background: #1877f2; }
.post-share-btn--facebook:hover       { background: #0d65d9; }

.post-share-btn--whatsapp             { background: #25d366; color: #000; }
.post-share-btn--whatsapp:hover       { background: #128c7e; color: #fff; }

/* ── Series badge ────────────────────────────────────────────── */

.post-series {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.post-series-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0a192f;
    background: #64ffda;
    border-radius: 4px;
    padding: 3px 10px;
    font-weight: 700;
}

.post-series-name {
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    color: #8892b0;
    letter-spacing: 0.04em;
}

/* ── Code blocks ─────────────────────────────────────────────── */

.post-code {
    background: #020c1b;
    border: 1px solid #233554;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(0.78rem, 1.8vw, 0.9rem);
    line-height: 1.75;
    color: #a8b2d8;
    white-space: pre;
}

.post-code--attack {
    border-left: 3px solid #ff6b6b;
    color: #ffb3b3;
}

.post-code--safe {
    border-left: 3px solid #64ffda;
}

.post-inline-code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.88em;
    color: #64ffda;
    background: rgba(100, 255, 218, 0.08);
    border: 1px solid rgba(100, 255, 218, 0.15);
    border-radius: 3px;
    padding: 1px 6px;
}

/* ── Attacker POV callout ─────────────────────────────────────── */

.post-attacker {
    background: rgba(255, 107, 107, 0.05);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-left: 3px solid #ff6b6b;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.post-attacker-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ff6b6b;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.post-attacker p {
    font-size: 0.9rem;
    color: #a8b2d8;
    line-height: 1.8;
    margin: 0;
}

/* ── Lab section ─────────────────────────────────────────────── */

.post-lab {
    background: #0d1b2e;
    border: 1px solid #233554;
    border-radius: 12px;
    padding: 1.75rem;
    margin: 2rem 0;
}

.post-lab-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.post-lab-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0a192f;
    background: #64ffda;
    border-radius: 4px;
    padding: 3px 10px;
    font-weight: 700;
    white-space: nowrap;
}

.post-lab-target {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #8892b0;
}

.post-lab-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.post-lab-step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.post-lab-num {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64ffda;
    background: rgba(100, 255, 218, 0.08);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 4px;
    padding: 3px 8px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.post-lab-step strong {
    display: block;
    color: #ccd6f6;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.post-lab-step p {
    font-size: 0.85rem;
    color: #8892b0;
    line-height: 1.75;
    margin: 0;
}

.post-lab-note {
    font-size: 0.82rem;
    color: #8892b0;
    font-style: italic;
    border-top: 1px solid #233554;
    padding-top: 1rem;
    margin: 0;
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.post-lab-note i {
    margin-top: 2px;
    flex-shrink: 0;
    color: #64ffda;
}

/* ── Post body list ──────────────────────────────────────────── */

.post-body-list {
    margin: 0 0 1.6rem 0;
    padding-left: 1.5rem;
}

.post-body-list li {
    color: #ccd6f6;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.85;
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.post-body-list li::marker {
    color: #64ffda;
}

/* ── Styled table ────────────────────────────────────────────── */

.post-table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0 2rem;
    border-radius: 10px;
    border: 1px solid #233554;
}

.post-table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(0.82rem, 1.8vw, 0.92rem);
}

.post-table th {
    background: #0d1b2e;
    color: #64ffda;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.75rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid #233554;
    font-weight: 700;
}

.post-table td {
    padding: 0.7rem 1.25rem;
    color: #a8b2d8;
    border-bottom: 1px solid rgba(35, 53, 84, 0.6);
    line-height: 1.6;
    vertical-align: top;
}

.post-table tr:last-child td {
    border-bottom: none;
}

.post-table tbody tr:hover td {
    background: rgba(100, 255, 218, 0.03);
    color: #ccd6f6;
}

/* ── Overview card ───────────────────────────────────────────── */

.post-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: #233554;
    border: 1px solid #233554;
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem 0;
}

.post-overview-item {
    background: #112240;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.post-overview-label {
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8892b0;
}

.post-overview-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ccd6f6;
    line-height: 1.4;
}

.post-difficulty--easy   { color: #64ffda; }
.post-difficulty--medium { color: #ffd166; }
.post-difficulty--hard   { color: #ff6b6b; }

.post-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0a192f;
    background: #64ffda;
    border-radius: 20px;
    padding: 2px 10px;
}

/* ── Flag sections ───────────────────────────────────────────── */

.post-flag {
    margin: 0 0 0.5rem;
}

.post-flag-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.post-flag-num {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0a192f;
    background: #64ffda;
    border-radius: 4px;
    padding: 3px 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.post-flag-header h2 {
    margin: 0;
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 700;
    color: #ccd6f6;
}

/* ── Question callout ────────────────────────────────────────── */

.post-question {
    background: rgba(100, 255, 218, 0.04);
    border: 1px solid rgba(100, 255, 218, 0.15);
    border-left: 3px solid #64ffda;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 0 0 1.5rem;
}

.post-question-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64ffda;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.post-question p {
    font-size: 0.95rem;
    color: #ccd6f6;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

/* ── Output block ────────────────────────────────────────────── */

.post-code--output {
    border-left: 3px solid #4a5568;
    color: #8892b0;
    font-size: clamp(0.74rem, 1.6vw, 0.85rem);
}

/* ── Finding callout ─────────────────────────────────────────── */

.post-finding {
    background: rgba(100, 255, 218, 0.04);
    border: 1px solid rgba(100, 255, 218, 0.15);
    border-left: 3px solid #64ffda;
    border-radius: 8px;
    padding: 1.1rem 1.25rem;
    margin: 1.5rem 0;
}

.post-finding-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64ffda;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.post-finding p {
    font-size: 0.9rem;
    color: #a8b2d8;
    margin: 0;
    line-height: 1.8;
}

/* ── Flag answer pill ────────────────────────────────────────── */

.post-flag-answer {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin: 1rem 0 1.5rem;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(100, 255, 218, 0.3);
}

.post-flag-tag {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0a192f;
    background: #64ffda;
    padding: 6px 12px;
    white-space: nowrap;
}

.post-flag-answer code {
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
    color: #64ffda;
    background: rgba(100, 255, 218, 0.06);
    padding: 6px 14px;
}

/* ── Inline screenshot ───────────────────────────────────────── */

.post-img {
    display: block;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #233554;
    margin: 1rem 0 0;
    transition: border-color 0.2s ease;
}

.post-img:hover {
    border-color: rgba(100, 255, 218, 0.3);
}

/* ── Attack timeline ─────────────────────────────────────────── */

.post-timeline {
    margin: 1.5rem 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.post-timeline-item {
    display: flex;
    gap: 1.25rem;
    align-items: stretch;
    position: relative;
}

.post-timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 5.5rem;
    top: 2rem;
    bottom: 0;
    width: 1px;
    background: #233554;
    z-index: 0;
}

.post-timeline-time {
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64ffda;
    white-space: nowrap;
    padding: 0.8rem 0;
    min-width: 5.5rem;
    flex-shrink: 0;
}

.post-timeline-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem 0 0.9rem;
    border-left: 2px solid #233554;
    padding-left: 1.25rem;
    position: relative;
    flex: 1;
}

.post-timeline-content::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 1rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64ffda;
    flex-shrink: 0;
}

.post-timeline-event {
    font-size: 0.88rem;
    color: #a8b2d8;
    line-height: 1.7;
}

.post-timeline-src {
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    color: #8892b0;
    letter-spacing: 0.05em;
}

/* ── Screenshot gallery ──────────────────────────────────────── */

.post-screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0 2rem;
}

.post-screenshot-item {
    background: #112240;
    border: 1px solid #233554;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.post-screenshot-item:hover {
    border-color: rgba(100, 255, 218, 0.35);
    transform: translateY(-2px);
}

.post-screenshot-item a {
    display: block;
}

.post-screenshot-item img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #233554;
}

.post-screenshot-cap {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    color: #8892b0;
    padding: 0.5rem 0.75rem;
    letter-spacing: 0.04em;
}

/* ── Burp Suite simulator ─────────────────────────────────────── */

.post-burp-sim {
    background: #020c1b;
    border: 1px solid #233554;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1.25rem;
}

.post-burp-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0d1b2e;
    border-bottom: 1px solid #233554;
    padding: 0.55rem 1.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64ffda;
    font-weight: 700;
}

.post-burp-panel {
    border-bottom: 1px solid #1a2e4a;
}

.post-burp-panel:last-child {
    border-bottom: none;
}

.post-burp-panel-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1.25rem;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid #1a2e4a;
    flex-wrap: wrap;
}

.post-burp-tag {
    font-family: 'Courier New', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0a192f;
    background: #8892b0;
    border-radius: 3px;
    padding: 2px 8px;
    white-space: nowrap;
}

.post-burp-tag--attack {
    background: #ff6b6b;
    color: #fff;
}

.post-burp-tag--response {
    background: #64ffda;
}

.post-burp-desc {
    font-family: 'Courier New', monospace;
    font-size: 0.68rem;
    color: #4a5568;
}

.post-burp-http {
    margin: 0;
    padding: 1rem 1.25rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(0.72rem, 1.6vw, 0.82rem);
    line-height: 1.75;
    color: #8892b0;
    background: transparent;
    border: none;
    border-radius: 0;
    white-space: pre;
    overflow-x: auto;
}

/* Syntax colours */
.bh-method      { color: #64ffda; font-weight: 700; }
.bh-hname       { color: #7cb9e8; }
.bh-value       { color: #ccd6f6; }
.bh-inject      { color: #ff6b6b; font-weight: 700; }
.bh-status-ok   { color: #64ffda; font-weight: 700; }
.bh-token       { color: #ffd166; }
