/* =============================================
   BLOG POST STYLES — iptv-france
   ============================================= */

.post-main { padding: 140px 0 80px; min-height: 80vh; background: var(--bg); }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: var(--dim);
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--purple3); }
.bc-sep { color: var(--dim); opacity: .5; }

/* Wrap */
.post-wrap { max-width: 820px; }

/* Article */
.post-article { display: flex; flex-direction: column; gap: 0; }

/* Cover image */
.post-cover {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Header */
.post-header { margin-bottom: 28px; }
.post-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.post-date, .post-readtime { font-size: .78rem; color: var(--dim); }
.post-title {
    font-family: var(--head);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 20px;
}
.post-intro {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.8;
    border-left: 3px solid var(--purple);
    padding-left: 20px;
    margin-left: 0;
}

/* Verified badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--green);
    background: rgba(34,197,94,.08);
    border: 1px solid rgba(34,197,94,.22);
    border-radius: 20px;
    padding: 5px 14px;
    margin-bottom: 18px;
    letter-spacing: .02em;
}

/* Author card */
.author-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(139,92,246,.05);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 16px 20px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.author-av {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--grad);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--head);
    font-weight: 900;
    font-size: .95rem;
    color: #fff;
    flex-shrink: 0;
}
.author-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 160px;
}
.author-info strong {
    font-size: .9rem;
    font-weight: 800;
    color: var(--text);
}
.author-info span {
    font-size: .74rem;
    color: var(--dim);
    line-height: 1.5;
}
.author-expert {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--purple3);
    background: rgba(139,92,246,.1);
    border: 1px solid var(--border2);
    border-radius: 20px;
    padding: 4px 11px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Fact-check footer */
.fact-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(139,92,246,.04);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 16px 20px;
    margin-top: 40px;
    font-size: .78rem;
    color: var(--dim);
    line-height: 1.6;
}
.fact-check svg { flex-shrink: 0; margin-top: 1px; }
.fact-check strong { color: var(--muted); }

/* Table of contents */
.toc {
    background: rgba(139,92,246,.05);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 24px 28px;
    margin: 36px 0;
}
.toc-title {
    font-family: var(--head);
    font-size: .88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--purple3);
    margin-bottom: 14px;
}
.toc-list {
    list-style: decimal;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toc-list li a {
    font-size: .9rem;
    color: var(--muted);
    transition: color .2s;
}
.toc-list li a:hover { color: var(--purple3); }

/* Article sections */
.post-article section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}
.post-article section:last-of-type { border-bottom: none; }

.post-article h2 {
    font-family: var(--head);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 18px;
    margin-top: 0;
    line-height: 1.25;
}
.post-article h3 {
    font-family: var(--head);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 28px 0 14px;
}
.post-article p {
    font-size: .96rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 16px;
}
.post-article a { color: var(--purple3); }
.post-article a:hover { text-decoration: underline; }
.post-article strong { color: var(--text); }

/* Lists */
.post-ul, .post-ol {
    margin: 14px 0 20px;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.post-ul { list-style: disc; }
.post-ol { list-style: decimal; }
.post-ul li, .post-ol li {
    font-size: .94rem;
    color: var(--muted);
    line-height: 1.7;
    padding-left: 4px;
}
.post-ul li strong, .post-ol li strong { color: var(--text); }

/* Tip boxes */
.post-tip, .post-warning {
    display: flex;
    gap: 14px;
    padding: 18px 22px;
    border-radius: var(--r);
    margin: 24px 0;
    font-size: .9rem;
    line-height: 1.65;
}
.post-tip {
    background: rgba(139,92,246,.07);
    border: 1px solid rgba(139,92,246,.2);
    color: var(--muted);
}
.post-warning {
    background: rgba(251,191,36,.06);
    border: 1px solid rgba(251,191,36,.22);
    color: var(--muted);
}
.tip-icon { font-size: 1.3rem; flex-shrink: 0; line-height: 1.4; }
.post-tip strong, .post-warning strong { color: var(--text); }
.post-tip a, .post-warning a { color: var(--purple3); }

/* CTA block */
.post-cta {
    background: linear-gradient(135deg, rgba(109,40,217,.18) 0%, rgba(139,92,246,.08) 100%);
    border: 1px solid var(--border2);
    border-radius: var(--r2);
    padding: 42px 36px;
    margin: 48px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.post-cta::before {
    content: '';
    position: absolute;
    top: -50%; left: 50%;
    transform: translateX(-50%);
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139,92,246,.15) 0%, transparent 65%);
    pointer-events: none;
}
.post-cta-inner { position: relative; z-index: 1; }
.post-cta h3 {
    font-family: var(--head);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}
.post-cta p {
    color: var(--muted);
    font-size: .96rem;
    margin-bottom: 24px;
}

/* Related posts */
.related-posts { margin-top: 56px; }
.related-posts h3 {
    font-family: var(--head);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.related-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.related-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    transition: var(--trans);
    color: var(--text);
}
.related-card:hover {
    border-color: var(--border2);
    transform: translateX(4px);
    background: rgba(139,92,246,.05);
}
.related-emoji { font-size: 1.5rem; flex-shrink: 0; }
.related-card div { display: flex; flex-direction: column; gap: 3px; }
.related-card strong { font-size: .9rem; font-weight: 700; color: var(--text); }
.related-card span { font-size: .78rem; color: var(--dim); }

/* Comparison table (used in multiple posts) */
.comp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    margin: 24px 0;
    font-size: .88rem;
}
.comp-table th {
    padding: 14px 20px;
    font-family: var(--head);
    font-size: .82rem;
    font-weight: 800;
    text-align: left;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.comp-table th.col-ours { color: var(--purple3); }
.comp-table td {
    padding: 12px 20px;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tr:hover td { background: rgba(139,92,246,.03); }
.comp-table .yes { color: var(--green); font-weight: 700; }
.comp-table .no { color: #ef4444; }
.comp-table .partial { color: #f59e0b; }

/* Pros/Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}
.pros, .cons {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 20px;
}
.pros { border-top: 3px solid var(--green); }
.cons { border-top: 3px solid #ef4444; }
.pros h4, .cons h4 {
    font-family: var(--head);
    font-size: .88rem;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: .05em;
}
.pros h4 { color: var(--green); }
.cons h4 { color: #ef4444; }
.pros li, .cons li {
    font-size: .84rem;
    color: var(--muted);
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
    list-style: none;
}
.pros li::before { content: '✓ '; color: var(--green); font-weight: 700; }
.cons li::before { content: '✗ '; color: #ef4444; font-weight: 700; }
.pros li:last-child, .cons li:last-child { border-bottom: none; }

/* Highlight box */
.post-highlight {
    background: linear-gradient(135deg, rgba(139,92,246,.1) 0%, rgba(109,40,217,.05) 100%);
    border: 1px solid var(--border2);
    border-radius: var(--r);
    padding: 22px 24px;
    margin: 24px 0;
    font-size: .94rem;
    color: var(--text);
    line-height: 1.7;
}
.post-highlight strong { color: var(--purple3); }

/* Responsive */
@media (max-width: 640px) {
    .post-main { padding: 120px 0 60px; }
    .post-title { font-size: 1.65rem; }
    .toc { padding: 18px 20px; }
    .post-cta { padding: 30px 22px; }
    .pros-cons { grid-template-columns: 1fr; }
    .related-card { padding: 14px 16px; }
}
