/* ============================================================
   layout.css — Tashan IPTV
   Header + Footer styles. Include on EVERY page after global.css
   <link rel="stylesheet" href="/layout.css">
   ============================================================ */

/* ══ HEADER ════════════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--g200);
  transition: box-shadow .2s;
  will-change: box-shadow;
}
.site-header.scrolled { box-shadow: var(--sh-md); }

.nav-wrap {
  max-width: 1260px; margin: 0 auto; padding: 0 28px;
  height: var(--nav-h);
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img { height: 44px; width: auto; display: block; }
.logo-sub {
  display: block; font-size: 9.5px; font-weight: 700;
  letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--g500); margin-top: 2px; white-space: nowrap;
}

/* Nav links */
.nav-links {
  display: flex; align-items: center; gap: 2px;
  flex: 1; justify-content: center;
}
.nav-item { position: relative; }
.nav-a {
  display: flex; align-items: center; gap: 3px;
  padding: 8px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--g700);
  transition: color .13s, background .13s; white-space: nowrap;
}
.nav-a:hover, .nav-a.active { color: var(--red); background: var(--red-glow); }
.nav-a .ch {
  width: 13px; height: 13px; stroke: currentColor;
  fill: none; stroke-width: 2.5;
  transition: transform .18s; flex-shrink: 0;
}
.nav-item:hover .ch { transform: rotate(180deg); }

/* Dropdown base */
.drop {
  position: absolute; top: calc(100% + 10px);
  background: #fff; border: 1px solid var(--g200);
  border-radius: 14px; box-shadow: var(--sh-lg);
  padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-item:hover .drop,
.nav-item:focus-within .drop {
  opacity: 1; visibility: visible; transform: translateY(0);
}

/* Channels mega */
.drop-mega { min-width: 520px; left: 0; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.d-link {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 12px; border-radius: 7px;
  font-size: 13.5px; font-weight: 500; color: var(--g700);
  transition: background .11s, color .11s; white-space: nowrap;
}
.d-link:hover { background: var(--red-glow); color: var(--red); }
.mega-footer {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 700; color: var(--red);
  background: var(--red-glow); transition: background .13s; margin-top: 3px;
}
.mega-footer:hover { background: rgba(232,0,29,.2); }
.mega-div { grid-column: 1 / -1; height: 1px; background: var(--g200); margin: 4px 0; }

/* Blog slim */
.drop-slim {
  min-width: 190px;
  left: 50%; transform: translateX(-50%) translateY(-6px);
}
.nav-item:hover .drop-slim,
.nav-item:focus-within .drop-slim { transform: translateX(-50%) translateY(0); }
.s-link {
  display: block; padding: 9px 14px; border-radius: 7px;
  font-size: 13.5px; font-weight: 500; color: var(--g700);
  white-space: nowrap; transition: background .11s, color .11s;
}
.s-link:hover { background: var(--red-glow); color: var(--red); }

/* Nav right */
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Burger */
.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 1.5px solid var(--g200);
  padding: 7px 8px; border-radius: 8px;
  transition: border-color .14s, background .14s;
}
.burger:hover { border-color: var(--red); background: var(--red-glow); }
.burger span {
  display: block; width: 20px; height: 2px;
  background: var(--g800); border-radius: 2px;
  transition: transform .22s, opacity .18s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mob-nav {
  display: none; position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: #fff; overflow-y: auto;
  padding: 16px 24px 48px; z-index: 999;
  border-top: 1px solid var(--g200);
  transform: translateX(100%);
  transition: transform .27s cubic-bezier(.4,0,.2,1);
}
.mob-nav.open { transform: translateX(0); }
.m-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; font-size: 16px; font-weight: 600;
  color: var(--g800); border-bottom: 1px solid var(--g100);
  cursor: pointer; transition: color .13s;
}
.m-link:hover { color: var(--red); }
.m-link svg {
  width: 15px; height: 15px; stroke: currentColor;
  fill: none; stroke-width: 2.5; transition: transform .18s;
}
.m-link.exp svg { transform: rotate(180deg); }
.m-sub { max-height: 0; overflow: hidden; transition: max-height .27s ease; }
.m-sub.open { max-height: 900px; }
.m-sub-hd {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--g400); padding: 14px 4px 6px;
}
.m-sub-a {
  display: block; padding: 10px 4px 10px 14px;
  font-size: 14px; font-weight: 500; color: var(--g500);
  border-bottom: 1px solid var(--g100); transition: color .13s;
}
.m-sub-a:hover { color: var(--red); }
.mob-cta {
  display: block; width: 100%; text-align: center;
  margin-top: 24px; padding: 14px; font-size: 15px;
  border-radius: var(--r);
}

/* ══ FOOTER ════════════════════════════════════════════════ */
.site-footer { background: var(--g900); margin-top: 96px; }

.f-top { padding: 64px 0 52px; border-bottom: 1px solid rgba(255,255,255,.07); }

/* 3-col desktop: brand wide, then 2 cols */
.f-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr;
  gap: 56px;
}

/* Brand */
.f-logo-img { height: 46px; width: auto; margin-bottom: 16px; }
.f-desc {
  font-size: 15px; line-height: 1.8;
  color: rgba(255,255,255,.45); max-width: 320px; margin-bottom: 20px;
}
.f-mail {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,.45);
  padding: 9px 14px; border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; transition: color .14s, border-color .14s, background .14s;
}
.f-mail:hover { color: var(--red); border-color: var(--red); background: rgba(232,0,29,.07); }
.f-mail svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

.f-stats { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 24px; }
.f-stat { display: flex; flex-direction: column; }
.f-sv {
  font-size: 19px; font-weight: 800;
  color: #fff; letter-spacing: -.3px;
}
.f-sv em { font-style: normal; color: var(--red); }
.f-sl { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.32); white-space: nowrap; }

/* Footer columns */
.f-col-hd {
  font-size: 13px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: rgba(255,255,255,.65);
  margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.f-col ul li { margin-bottom: 11px; }
.f-col ul li a {
  font-size: 15px; font-weight: 500; color: rgba(255,255,255,.42);
  transition: color .13s;
}
.f-col ul li a:hover { color: var(--red); }

/* Bottom bar */
.f-bottom { padding: 20px 0; }
.f-bottom-inner {
  max-width: 1260px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.f-copy { font-size: 13px; color: rgba(255,255,255,.22); }
.f-blinks { display: flex; gap: 20px; flex-wrap: wrap; }
.f-blinks a { font-size: 13px; color: rgba(255,255,255,.22); transition: color .13s; }
.f-blinks a:hover { color: var(--red); }

/* ══ RESPONSIVE ════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .mob-nav { display: block; }

  /* Footer: brand full width, then 2+2 */
  .f-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .f-grid > .f-brand { grid-column: 1 / -1; }
  .f-desc { max-width: 100%; }
}
@media (max-width: 480px) {
  .nav-wrap { padding: 0 18px; }
  .f-bottom-inner { flex-direction: column; text-align: center; }
  .f-blinks { justify-content: center; }
}

/* ══ BREADCRUMB ════════════════════════════════════════════ */
.breadcrumb-wrap {
  background: var(--g50);
  border-bottom: 1px solid var(--g200);
  padding: 11px 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--g500);
}
.breadcrumb li { display: flex; align-items: center; gap: 4px; }
.breadcrumb li a { color: var(--g500); transition: color .13s; }
.breadcrumb li a:hover { color: var(--red); }
.breadcrumb li.active { color: var(--g800); font-weight: 600; }
.breadcrumb-sep {
  width: 14px; height: 14px;
  stroke: var(--g400); fill: none; stroke-width: 2;
  flex-shrink: 0;
}
/* Home icon in breadcrumb */
.breadcrumb-home {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none; stroke-width: 2;
}
