/* BongdaNET Header — Compact + Minimalist + Theme-aware
 * v1.3 — gradient brand colors (live: green, hero: orange) configurable via admin.
 * CSS custom properties allow inline override from PHP.
 */

:root {
  --bdn-live-c1: #39EE88;
  --bdn-live-c2: #AEE580;
  --bdn-live-text: #0d3d20;
  --bdn-hero-c1: #FF8624;
  --bdn-hero-c2: #FACE60;
  --bdn-hero-text: #3a1f00;
  --bdn-ft-bg: #0066cc;
}

.bdn-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 12px;
}

/* ============ LAYER 1 — LIVE BAR (compact) ============ */
.bdn-live-bar {
  padding: 9px 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--bdn-live-text);
}
.bdn-live-bar.state-live { background: linear-gradient(90deg, var(--bdn-live-c1) 0%, var(--bdn-live-c2) 100%); }
.bdn-live-bar.state-ft   { background: var(--bdn-ft-bg); color: #fff; }
.bdn-live-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-weight: 500;
  flex-wrap: wrap;
}
.bdn-live-competition {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 10px 2px 4px;
  background: rgba(0,0,0,0.18);
  border-radius: 3px;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
}
a.bdn-live-competition:hover { background: rgba(0,0,0,0.32); }
.bdn-live-competition-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
}
.bdn-live-competition-name {
  letter-spacing: 0.2px;
}
.bdn-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,0.18);
  color: inherit;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.state-ft .bdn-live-badge { background: rgba(255,255,255,0.22); }
.bdn-live-dot {
  width: 6px; height: 6px;
  background: currentColor;
  border-radius: 50%;
  animation: bdn-pulse 1.4s infinite;
}
@keyframes bdn-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
.bdn-live-match {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  white-space: nowrap;
}
.bdn-live-team  { font-weight: 600; }
.bdn-live-score {
  font-weight: 700;
  background: rgba(0,0,0,0.18);
  padding: 2px 10px;
  border-radius: 3px;
}
.state-ft .bdn-live-score { background: rgba(255,255,255,0.22); }
.bdn-live-minute {
  background: rgba(0,0,0,0.78);
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 11px;
}
.bdn-live-cta {
  font-weight: 700;
  font-size: 13px;
  padding: 4px 2px;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: inherit;
  opacity: 0.95;
}
.bdn-live-cta:hover { opacity: 1; }
.bdn-live-sponsor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  background: rgba(0,0,0,0.18);
  border-radius: 3px;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}
.bdn-live-sponsor-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  opacity: 0.9;
  text-transform: uppercase;
}
.bdn-live-sponsor-logo {
  height: 22px;
  width: auto;
  max-width: 110px;
  border-radius: 2px;
  display: block;
}
a.bdn-live-sponsor:hover { background: rgba(0,0,0,0.32); }
.state-ft .bdn-live-sponsor { background: rgba(255,255,255,0.22); }

/* ============ LAYER 2 — STRIP HERO (compact, accent orange) ============ */
.bdn-hero-strip {
  padding: 10px 0;
  background: transparent;
  border-top: 1px solid rgba(128,128,128,0.18);
  border-bottom: 1px solid rgba(128,128,128,0.18);
  font-size: 13.5px;
  color: inherit;
}
.bdn-hero-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.bdn-hero-strip-label {
  background: linear-gradient(90deg, var(--bdn-hero-c1) 0%, var(--bdn-hero-c2) 100%);
  color: var(--bdn-hero-text);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
}
.bdn-hero-strip-match {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  min-width: 0;
}
.bdn-hero-strip-teams {
  font-weight: 700;
}
.bdn-hero-strip-meta {
  font-size: 12.5px;
  font-weight: 400;
  opacity: 0.7;
}
.bdn-hero-strip-divider {
  opacity: 0.35;
}
.bdn-hero-strip-cta-group {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  align-items: center;
}
.bdn-hero-strip-cta-primary {
  color: var(--bdn-hero-c1);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 2px;
  white-space: nowrap;
  text-decoration: none;
}
.bdn-hero-strip-cta-primary + .bdn-hero-strip-cta-primary::before {
  content: "|";
  padding-right: 12px;
  color: rgba(128,128,128,0.45);
  font-weight: 400;
}
.bdn-hero-strip-cta-primary:hover { text-decoration: underline; }
.bdn-hero-strip-cta-secondary {
  color: var(--bdn-hero-c1);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
  border: 1.5px solid var(--bdn-hero-c1);
  padding: 4px 14px;
  border-radius: 4px;
  margin-left: 6px;
}
.bdn-hero-strip-cta-secondary:hover { background: var(--bdn-hero-c1); color: #fff; }

/* ============ LAYER 3 — LEAGUE STRIP (compact, transparent) ============ */
.bdn-league-strip {
  position: relative;
  padding: 8px 0;
  background: transparent;
  border-bottom: 1px solid rgba(128,128,128,0.15);
}
.bdn-league-strip-scroll {
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}
.bdn-league-strip-scroll.bdn-grabbing { cursor: grabbing; scroll-behavior: auto; }
.bdn-league-strip-scroll::-webkit-scrollbar { display: none; }
.bdn-league-strip-inner {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  padding-right: 30px; /* room for subtle arrow */
}
.bdn-league-strip-inner::after {
  content: "";
  flex: 0 0 1px;
}

/* Subtle scroll arrows — minimalist, fade-in on hover only */
.bdn-league-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: inherit;
  background: transparent;
  opacity: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.18s, color 0.15s;
  pointer-events: none;
}
.bdn-league-arrow-right { right: 0; }
.bdn-league-arrow-left  { left: 0; }
.bdn-league-arrow:hover { color: var(--bdn-hero-c1); }
.bdn-league-strip:hover .bdn-league-arrow,
.bdn-league-strip:focus-within .bdn-league-arrow {
  opacity: 0.55;
  pointer-events: auto;
}
.bdn-league-strip:hover .bdn-league-arrow:hover { opacity: 1; }

/* Edge fade behind arrows so chữ chip không bị arrow đè */
.bdn-league-strip::before,
.bdn-league-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.18s;
}
.bdn-league-strip::after {
  right: 0;
  background: linear-gradient(to right, transparent, rgba(128,128,128,0.22));
}
.bdn-league-strip::before {
  left: 0;
  background: linear-gradient(to left, transparent, rgba(128,128,128,0.22));
}
.bdn-league-strip:hover::before,
.bdn-league-strip:hover::after { opacity: 1; }
.bdn-league-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 5px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  color: inherit;
  opacity: 0.85;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.12s, color 0.12s;
}
.bdn-league-chip:hover {
  color: var(--bdn-hero-c1);
  opacity: 1;
}
.bdn-league-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2px;
  flex-shrink: 0;
}
.bdn-league-icon.epl     { background: #37003c; }
.bdn-league-icon.cl      { background: #00277a; }
.bdn-league-icon.laliga  { background: #ee8707; }
.bdn-league-icon.seria   { background: #008fd7; }
.bdn-league-icon.bundes  { background: #d20515; }
.bdn-league-icon.ligue   { background: #091c3e; }
.bdn-league-icon.wc      { background: #6d1a36; }
.bdn-league-icon.acl     { background: #1a4789; }
.bdn-league-icon.vleague { background: #d4002a; }

/* ============ MOBILE ============ */
@media (max-width: 768px) {
  .bdn-live-bar      { padding: 4px 0; font-size: 11.5px; }
  .bdn-hero-strip    { padding: 5px 0; }
  .bdn-hero-strip-meta { display: none; }
  .bdn-hero-strip-cta-secondary { display: none; }
  .bdn-league-chip { font-size: 11px; padding: 2px 7px 2px 3px; }
  .bdn-league-arrow { width: 22px; font-size: 13px; }
  .bdn-league-strip-inner { padding-right: 24px; }
}
