/* FixFlex Blog — specific styles */

/* ---- Blog Hero ---- */
.blog-hero {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 60%, rgba(0,212,255,0.08) 0%, transparent 55%),
        radial-gradient(circle at 80% 30%, rgba(124,58,237,0.08) 0%, transparent 55%);
    pointer-events: none;
}

.blog-hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
}

.blog-hero-sub {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 540px;
}

/* ---- Category Pills ---- */
.cat-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.cat-pill {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(0,212,255,0.3);
    color: #94a3b8;
    background: rgba(0,212,255,0.05);
    transition: all 0.2s ease;
    text-decoration: none;
}

.cat-pill:hover,
.cat-pill.active {
    background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(124,58,237,0.15));
    border-color: rgba(0,212,255,0.6);
    color: #00d4ff;
}

/* ---- Post Cards ---- */
.post-card {
    background: rgba(15,23,42,0.85);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
    border-color: rgba(0,212,255,0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 30px rgba(0,212,255,0.08);
}

.post-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #0f172a, #1e1b4b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(0,212,255,0.3);
}

.post-card-img-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #0f172a 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.post-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.post-cat-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cat-tech    { background: rgba(0,212,255,0.15); color: #00d4ff; border: 1px solid rgba(0,212,255,0.3); }
.cat-server  { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.cat-ai      { background: rgba(124,58,237,0.15); color: #a78bfa; border: 1px solid rgba(124,58,237,0.3); }
.cat-biz     { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }

.post-date {
    font-size: 12px;
    color: #64748b;
}

.post-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.35;
    margin-bottom: 0.6rem;
    text-decoration: none;
    transition: color 0.2s;
}

.post-card-title:hover { color: #00d4ff; }

.post-excerpt {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.2rem;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #00d4ff;
    text-decoration: none;
    border: 1px solid rgba(0,212,255,0.35);
    padding: 7px 16px;
    border-radius: 8px;
    background: rgba(0,212,255,0.05);
    transition: all 0.2s;
    align-self: flex-start;
}

.btn-read-more:hover {
    background: rgba(0,212,255,0.12);
    border-color: rgba(0,212,255,0.6);
    color: #00d4ff;
    transform: translateX(2px);
}

/* ---- Post Page ---- */
.post-hero {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    padding: 110px 0 50px;
    position: relative;
}

.post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0,212,255,0.07) 0%, transparent 60%);
    pointer-events: none;
}

.post-breadcrumb {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.post-breadcrumb a { color: #94a3b8; text-decoration: none; transition: color 0.2s; }
.post-breadcrumb a:hover { color: #00d4ff; }
.post-breadcrumb .sep { margin: 0 8px; }

.post-title-hero {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    color: #f8fafc;
    margin-bottom: 1.2rem;
}

.post-title-hero span {
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Article Body ---- */
.post-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 0 2rem;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.85;
}

.post-body h2 {
    font-size: 1.55rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 2.5rem 0 1rem;
}

.post-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00d4ff;
    margin: 2rem 0 0.75rem;
}

.post-body p { margin-bottom: 1.4rem; }

.post-body strong { color: #f8fafc; }

.post-body a { color: #00d4ff; text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: #7c3aed; }

.post-body blockquote {
    border-left: 3px solid #00d4ff;
    padding: 1rem 1.5rem;
    background: rgba(0,212,255,0.05);
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
    font-style: italic;
    color: #94a3b8;
}

.post-body .highlight-box {
    background: linear-gradient(135deg, rgba(0,212,255,0.07), rgba(124,58,237,0.07));
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 14px;
    padding: 1.5rem;
    margin: 2rem 0;
}

/* ---- Author Box ---- */
.author-box {
    max-width: 720px;
    margin: 0 auto 3rem;
    background: rgba(15,23,42,0.85);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    flex-shrink: 0;
}

.author-name { font-weight: 700; color: #f8fafc; font-size: 1rem; margin-bottom: 2px; }
.author-role { font-size: 13px; color: #64748b; }

/* ---- Share ---- */
.share-bar {
    max-width: 720px;
    margin: 0 auto 3rem;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-label { font-size: 13px; color: #64748b; font-weight: 600; }

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid;
}

.share-linkedin {
    color: #0a66c2;
    border-color: rgba(10,102,194,0.4);
    background: rgba(10,102,194,0.08);
}
.share-linkedin:hover { background: rgba(10,102,194,0.18); color: #0a66c2; }

.share-x {
    color: #e7e9ea;
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
}
.share-x:hover { background: rgba(255,255,255,0.1); color: #e7e9ea; }

/* ---- Related Posts ---- */
.related-section {
    background: rgba(2,6,23,0.6);
    padding: 3rem 0 4rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.related-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 1.5rem;
}

/* ---- CTA Box in post ---- */
.post-cta {
    background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(124,58,237,0.08));
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.post-cta h3 { color: #f8fafc; font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.post-cta p { color: #94a3b8; font-size: 14px; margin-bottom: 1.2rem; }

/* ---- Pagination ---- */
.blog-pagination .page-link {
    background: rgba(15,23,42,0.8);
    border-color: rgba(0,212,255,0.2);
    color: #94a3b8;
}
.blog-pagination .page-link:hover { background: rgba(0,212,255,0.1); color: #00d4ff; border-color: rgba(0,212,255,0.4); }
.blog-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    border-color: transparent;
    color: #0f172a;
    font-weight: 700;
}

/* ---- Back link ---- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    margin-bottom: 1.5rem;
}
.back-link:hover { color: #00d4ff; }

/* ---- Reading time / divider ---- */
.post-reading-time {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-divider {
    max-width: 720px;
    margin: 2rem auto;
    border-color: rgba(255,255,255,0.07);
}
