/* ============================================
   IPTV Canada — Blog Stylesheet
   Supplements style.css
   ============================================ */

/* ============ BLOG INDEX PAGE ============ */
.blog-index-hero { background: var(--gradient-hero); padding: 130px 0 60px; position: relative; overflow: hidden; }
.blog-index-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at top right, rgba(0,212,255,0.1) 0%, transparent 60%); }
.blog-index-hero .container { position: relative; z-index: 1; }
.blog-index-hero h1 { margin-bottom: 16px; }
.blog-index-hero p { font-size: 1.1rem; max-width: 600px; }

.blog-index__layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }

.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.blog-grid .blog-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.blog-grid .blog-card--featured .blog-card__img { aspect-ratio: auto; height: 100%; }
.blog-grid .blog-card--featured .blog-card__title { font-size: 1.3rem; }

/* ============ BLOG SIDEBAR ============ */
.blog-sidebar { position: sticky; top: 100px; }
.sidebar-widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 24px; }
.sidebar-widget h3 { font-size: 1.05rem; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.sidebar-search { display: flex; gap: 8px; }
.sidebar-search input { flex: 1; padding: 10px 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); font-size: 0.9rem; outline: none; transition: var(--transition); }
.sidebar-search input:focus { border-color: var(--accent-cyan); }
.sidebar-search button { padding: 10px 14px; background: var(--accent-red); border-radius: var(--radius); color: #fff; font-size: 0.9rem; border: none; cursor: pointer; transition: var(--transition); }
.sidebar-search button:hover { background: var(--accent-red-dark); }
.category-list { list-style: none; }
.category-list li { margin-bottom: 8px; }
.category-list a { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-secondary); font-size: 0.9rem; transition: var(--transition); }
.category-list a:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); background: rgba(0,212,255,0.05); }
.category-list .count { background: rgba(0,212,255,0.1); color: var(--accent-cyan); font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; }
.recent-post { display: flex; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.recent-post:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.recent-post img { width: 70px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.recent-post__info { flex: 1; }
.recent-post__title { font-size: 0.85rem; font-weight: 600; line-height: 1.4; margin-bottom: 4px; color: var(--text-primary); transition: var(--transition); }
.recent-post__title:hover { color: var(--accent-cyan); }
.recent-post__date { font-size: 0.75rem; color: var(--text-muted); }
.sidebar-wa { background: linear-gradient(135deg, rgba(37,211,102,0.15), rgba(18,140,126,0.1)); border-color: rgba(37,211,102,0.3) !important; text-align: center; }
.sidebar-wa i { font-size: 2.5rem; color: #25d366; margin-bottom: 12px; display: block; }

/* ============ BLOG POST LAYOUT ============ */
.post-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.post-main { min-width: 0; }
.post-header { margin-bottom: 40px; }
.post-header .breadcrumb { margin-bottom: 20px; }
.post-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.post-cat { display: inline-block; background: rgba(229,9,20,0.12); border: 1px solid rgba(229,9,20,0.25); color: var(--accent-red); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 12px; border-radius: 100px; }
.post-cat--cyan { background: rgba(0,212,255,0.1); border-color: rgba(0,212,255,0.25); color: var(--accent-cyan); }
.post-title { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.2; margin-bottom: 24px; }
.post-meta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.post-meta__item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); }
.post-meta__item i { color: var(--accent-cyan); }
.post-meta__author { font-weight: 600; color: var(--text-secondary); }
.post-featured-img { aspect-ratio: 16/8; overflow: hidden; border-radius: var(--radius-lg); margin-bottom: 40px; }
.post-featured-img img { width: 100%; height: 100%; object-fit: cover; }

/* ============ TABLE OF CONTENTS ============ */
.toc { background: var(--bg-card); border: 1px solid var(--accent-cyan); border-left: 4px solid var(--accent-cyan); border-radius: var(--radius); padding: 24px; margin-bottom: 36px; }
.toc h4 { color: var(--accent-cyan); margin-bottom: 14px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.toc ol { list-style: decimal; padding-left: 20px; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--text-secondary); font-size: 0.9rem; transition: var(--transition); }
.toc a:hover { color: var(--accent-cyan); }

/* ============ POST BODY ============ */
.post-body { color: var(--text-secondary); line-height: 1.8; }
.post-body h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--text-primary); margin: 48px 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.post-body h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); color: var(--text-primary); margin: 32px 0 14px; }
.post-body h4 { font-size: 1.05rem; color: var(--text-primary); margin: 24px 0 10px; }
.post-body p { margin-bottom: 20px; }
.post-body strong { color: var(--text-primary); font-weight: 600; }
.post-body a { color: var(--accent-cyan); border-bottom: 1px solid rgba(0,212,255,0.3); transition: var(--transition); }
.post-body a:hover { border-bottom-color: var(--accent-cyan); }
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 20px; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 8px; color: var(--text-secondary); }
.post-body li strong { color: var(--text-primary); }
.post-body img { border-radius: var(--radius); margin: 28px 0; box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
.post-body table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 0.9rem; }
.post-body table th { background: var(--bg-card); color: var(--text-primary); padding: 12px 16px; text-align: left; border: 1px solid var(--border); font-weight: 600; }
.post-body table td { padding: 12px 16px; border: 1px solid var(--border); color: var(--text-secondary); }
.post-body table tbody tr:hover td { background: rgba(255,255,255,0.02); }

/* ============ CALLOUT BOXES ============ */
.callout { border-radius: var(--radius); padding: 20px 24px; margin: 28px 0; display: flex; gap: 16px; align-items: flex-start; }
.callout--tip { background: rgba(0,212,255,0.08); border-left: 4px solid var(--accent-cyan); }
.callout--tip i { color: var(--accent-cyan); font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.callout--warning { background: rgba(229,9,20,0.08); border-left: 4px solid var(--accent-red); }
.callout--warning i { color: var(--accent-red); font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.callout--info { background: rgba(251,191,36,0.08); border-left: 4px solid #fbbf24; }
.callout--info i { color: #fbbf24; font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.callout__content h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.callout--tip .callout__content h4 { color: var(--accent-cyan); }
.callout--warning .callout__content h4 { color: var(--accent-red); }
.callout--info .callout__content h4 { color: #fbbf24; }
.callout__content p { margin: 0; font-size: 0.95rem; }

/* ============ INLINE CTA ============ */
.inline-cta { background: linear-gradient(135deg, rgba(229,9,20,0.1), rgba(0,212,255,0.07)); border: 1px solid rgba(229,9,20,0.2); border-radius: var(--radius-lg); padding: 32px; margin: 40px 0; text-align: center; }
.inline-cta h3 { margin-bottom: 10px; }
.inline-cta p { margin-bottom: 24px; }
.inline-cta .btn { margin: 0 auto; }

/* ============ POST FAQ ============ */
.post-faq { margin-top: 60px; }
.post-faq h2 { margin-bottom: 28px; }

/* ============ RELATED POSTS ============ */
.related-posts { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border); }
.related-posts h2 { font-size: 1.5rem; margin-bottom: 28px; }
.related-posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ============ POST SIDEBAR ============ */
.post-sidebar { position: sticky; top: 100px; }

/* ============ PAGINATION ============ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 60px; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: var(--transition); }
.pagination a:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.pagination .active { background: var(--gradient-red); border-color: transparent; color: #fff; }
.pagination .dots { background: none; border: none; color: var(--text-muted); width: auto; }

/* ============ SHARE BAR ============ */
.share-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 40px 0; padding: 20px 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.share-bar span { font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); margin-right: 8px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: var(--radius); font-size: 0.85rem; font-weight: 600; transition: var(--transition); border: 1px solid var(--border); color: var(--text-secondary); background: rgba(255,255,255,0.04); cursor: pointer; }
.share-btn:hover { transform: translateY(-2px); }
.share-btn--wa { border-color: rgba(37,211,102,0.3); color: #25d366; }
.share-btn--wa:hover { background: rgba(37,211,102,0.1); }
.share-btn--copy { border-color: rgba(0,212,255,0.3); color: var(--accent-cyan); }
.share-btn--copy:hover { background: rgba(0,212,255,0.1); }

/* ============ READING PROGRESS ============ */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--gradient-red); z-index: 9999; transition: width 0.1s linear; width: 0%; }

/* ============ BLOG SEARCH FILTER ============ */
.blog-search-bar { display: flex; gap: 12px; margin-bottom: 32px; }
.blog-search-bar input { flex: 1; padding: 14px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); font-size: 1rem; outline: none; transition: var(--transition); }
.blog-search-bar input:focus { border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(0,212,255,0.1); }
.blog-search-bar button { padding: 14px 28px; background: var(--gradient-red); color: #fff; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer; transition: var(--transition); }
.blog-search-bar button:hover { opacity: 0.9; }
.no-results { text-align: center; padding: 60px 20px; display: none; }
.no-results i { font-size: 3rem; color: var(--text-muted); margin-bottom: 16px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .blog-index__layout { grid-template-columns: 1fr; }
  .blog-sidebar, .post-sidebar { position: static; }
  .post-layout { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid .blog-card--featured { grid-template-columns: 1fr; }
  .blog-grid .blog-card--featured .blog-card__img { height: 240px; }
  .related-posts__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .post-meta { gap: 12px; }
  .related-posts__grid { grid-template-columns: 1fr; }
  .post-body h2 { font-size: 1.5rem; margin: 36px 0 16px; }
  .post-body h3 { font-size: 1.2rem; }
  .blog-search-bar { flex-direction: column; }
  .toc { padding: 18px; }
}

@media (max-width: 480px) {
  .post-title { font-size: 1.7rem; }
  .inline-cta { padding: 24px 20px; }
  .share-bar { gap: 8px; }
}
