/* Floating Navigation, Cards, List items, Modals - Premium Upgrades */

/* 1. FLOATING NAVIGATION BAR */
.navbar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 480px;
  height: 72px;
  background: rgba(11, 13, 25, 0.75);
  backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--border-light);
  border-radius: 36px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.65),
    inset 0 1px 1px rgba(255, 255, 255, 0.08);
  z-index: 100;
  transition: var(--transition-smooth);
}

.navbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  width: 68px;
  height: 100%;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.navbar-item svg {
  width: 24px;
  height: 24px;
  margin-bottom: 3px;
  transition: var(--transition-smooth);
}

.navbar-item.active {
  color: var(--text-primary);
}

.navbar-item.active svg {
  transform: translateY(-5px) scale(1.05);
  color: var(--accent-secondary);
  filter: drop-shadow(0 0 8px var(--accent-secondary));
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 10px var(--accent-secondary);
  transform: scale(0);
  transition: var(--transition-smooth);
}

.navbar-item.active::after {
  transform: scale(1);
}

.navbar-logo {
  display: none;
}

.navbar-menu {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: space-around;
  align-items: center;
}

/* DESKTOP SIDEBAR NAVIGATION */
@media (min-width: 1024px) {
  .navbar {
    top: 0;
    left: 0;
    bottom: 0;
    transform: none;
    width: 280px;
    max-width: 280px;
    height: 100vh;
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--border-light);
    background: var(--grad-navbar);
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 24px;
    box-shadow: none;
  }

  .navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 50px;
    width: 100%;
    padding-left: 12px;
  }

  .navbar-logo svg {
    filter: drop-shadow(0 0 8px var(--accent-primary));
  }

  .navbar-logo span {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .navbar-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .navbar-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
    height: 54px;
    padding: 0 20px;
    border-radius: 14px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border: 1px solid transparent;
  }

  .navbar-item svg {
    margin-bottom: 0;
  }

  .navbar-item.active {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-light);
  }

  .navbar-item.active svg {
    transform: none;
  }

  .navbar-item::after {
    display: none;
  }
}

/* 2. CIRCULAR CATEGORY GRID & CARD */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.category-icon-wrap {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.03);
}

/* Category Specific Color Glow Codes */
.category-card[data-cat="SPORTS"] .category-icon-wrap,
.category-card[data-cat="T Sports"] .category-icon-wrap { --glow-color: rgba(0, 242, 254, 0.4); }
.category-card[data-cat="BANGLA"] .category-icon-wrap,
.category-card[data-cat="BD NEWS"] .category-icon-wrap { --glow-color: rgba(16, 185, 129, 0.4); }
.category-card[data-cat="Hindi"] .category-icon-wrap { --glow-color: rgba(236, 72, 153, 0.4); }
.category-card[data-cat="Kids"] .category-icon-wrap { --glow-color: rgba(245, 158, 11, 0.4); }
.category-card[data-cat="Movies"] .category-icon-wrap,
.category-card[data-cat="English Movie"] .category-icon-wrap { --glow-color: rgba(239, 68, 68, 0.4); }

.category-card:hover .category-icon-wrap {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--accent-secondary);
  box-shadow: 0 10px 24px var(--glow-color, rgba(112, 21, 220, 0.35));
}

.category-icon-wrap img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.category-icon-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  background: var(--grad-accent);
}

.category-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* 3. CHANNEL ITEM CARD */
.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.channel-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-accent-glow);
}

.channel-logo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.channel-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.channel-logo-fallback {
  width: 100%;
  height: 100%;
  background: var(--grad-accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}

.channel-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  width: 100%;
}

/* COMPACT LIST ROW VIEW OVERRIDE */
.channel-card.compact-list-row {
  flex-direction: row;
  align-items: center;
  text-align: left;
  padding: 12px 20px;
  border-radius: 14px;
}

.channel-card.compact-list-row .channel-logo {
  width: 44px;
  height: 44px;
  margin-bottom: 0;
  margin-right: 16px;
  border-radius: 10px;
}

.channel-card.compact-list-row .channel-name {
  font-size: 0.9rem;
  flex: 1;
  width: auto;
}

.channel-card.compact-list-row .channel-fav-toggle {
  margin-top: 0 !important;
}

/* 4. SPORTS LIVE EVENT CARDS */
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.event-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-accent-glow);
  transform: translateY(-3px);
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.event-league {
  font-size: 0.8rem;
  color: var(--accent-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.event-time {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.event-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.event-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.event-team-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 10px;
}

.event-team-name {
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.event-vs {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--text-muted);
  padding: 0 14px;
}

.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-countdown-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.btn-server {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-server:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(112, 21, 220, 0.3);
}

/* 5. FILTER CHIPS */
.filter-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 24px;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.chip {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 22px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.chip:hover {
  background: rgba(255, 255, 255, 0.06);
}

.chip.active {
  background: var(--grad-accent);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-accent-glow);
}

/* 6. MODALS & POPUPS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 5, 10, 0.88);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: #101323;
  border: 1px solid var(--border-light);
  border-radius: 28px;
  width: 90%;
  max-width: 420px;
  padding: 32px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  transform: scale(0.93);
  transition: var(--transition-smooth);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
  text-align: center;
  font-family: var(--font-display);
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 28px;
}

.modal-option-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-option {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-option:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--accent-secondary);
  box-shadow: 0 4px 12px rgba(112, 21, 220, 0.15);
}

.modal-cancel {
  margin-top: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  padding: 10px;
  cursor: pointer;
  font-weight: 600;
}

.modal-cancel:hover {
  color: var(--text-primary);
}

/* SECTION HEADER */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 16px;
}

.search-bar-container {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 18px;
  width: 100%;
  max-width: 320px;
  transition: var(--transition-smooth);
}

.search-bar-container:focus-within {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 12px rgba(243, 85, 136, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.search-bar-container input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  margin-left: 10px;
  width: 100%;
  font-size: 0.9rem;
}

/* 7. STICKY MOBILE TOP HEADER */
.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(6, 8, 19, 0.6);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 90;
}

.navbar-logo-mobile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo-mobile svg {
  filter: drop-shadow(0 0 8px var(--accent-primary));
}

.navbar-logo-mobile span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 1024px) {
  .mobile-header {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .hide-on-mobile {
    display: none !important;
  }
}
