/* Base Theme Variables */
:root {
  --theme-primary: var(--themecolor);
  --theme-nav-bg: #1a1a1a;
  --theme-nav-text: #ffffff;
  --theme-secondary: var(--primarybgcolor);
  --theme-accent: var(--themecolor);
}

.btn {
  transition: all 0.3s ease;
}

.btn:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* ================================
   Bootstrap Override Resets for Themes
   ================================ */

/* Reset Bootstrap carousel indicators for themes */
.hero-carousel .carousel-indicators {
  margin: 0 !important;
  padding: 0 !important;
}

.hero-carousel .carousel-indicators button {
  text-indent: 0 !important;
  opacity: 1 !important;
  margin: 0 !important;
}

/* Reset Bootstrap card styles for themes */
.news-card.card,
.match-card.card,
.banner-card.card {
  --bs-card-border-width: 0;
  --bs-card-border-radius: 0;
  --bs-card-inner-border-radius: 0;
}

/* Reset Bootstrap nav-tabs for themed tabs */
.themed-tabs.nav-tabs {
  border-bottom: none !important;
}

.themed-tabs .nav-link {
  border: none !important;
  background: transparent !important;
}

/* ================================
   Animations
   ================================ */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 255, 204, 0.6);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ================================
   Global Styles
   ================================ */
body {
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--fonttitle);
}

a {
  color: inherit;
  text-decoration: none;
}

.section-padding {
  padding: 80px 0;
}

@media screen and (max-width: 767px) {
  .section-padding {
    padding: 40px 0;
  }

  .games-archive-item-main {
    flex: initial !important;
    width: 100%;
  }
}

.btn {
  z-index: 1;
}

/* ================================
   Language Selector
   ================================ */
.language-selector {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgb(from var(--theme-primary) r g b / 0.1);
  border-radius: 6px;
  padding: 2px;
}

.language-selector.vertical {
  flex-direction: column;
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgb(from var(--primarytextcolor) r g b / 0.7);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--fonttitle);
  letter-spacing: 0.5px;
}

.lang-btn:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
}

/* ================================
   Mobile Menu - Slide from Right
   ================================ */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1040;
  animation: fadeIn 0.3s ease;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  z-index: 1050;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-panel.open {
  transform: translateX(0);
}

.mobile-menu-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-family: var(--fonttitle);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mobile-menu-close {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  transition: transform 0.2s ease;
}

.mobile-menu-close:hover {
  transform: rotate(90deg);
}

.mobile-menu-content {
  padding-bottom: 100px;
}

.mobile-menu-section {
  margin-bottom: 0;
}

.mobile-menu-header {
  font-family: var(--fonttitle);
  font-weight: 700;
  padding: 14px 20px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-parent {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.mobile-menu-parent-link,
.mobile-menu-parent-text {
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-menu-arrow {
  color: #fff;
}

.mobile-menu-link {
  display: block;
  padding: 14px 20px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.2s ease;
}

.mobile-menu-link:hover {
  padding-left: 28px;
}

.mobile-menu-parent-link,
.mobile-menu-parent-text {
  border-bottom: none !important;
}

.mobile-menu-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 20px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  padding-left: 28px;
}

.mobile-menu-toggle i {
  font-size: 0.65rem;
  transition: transform 0.3s ease;
}

.mobile-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-footer {
  padding: 24px 20px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .main-nav .navbar-collapse {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .mobile-menu-panel,
  .mobile-menu-backdrop {
    display: none !important;
  }
}

/* ================================
   Theme Tabs - Outlined Button Style
   ================================ */

.themed-tabs.nav-tabs {
  gap: 12px;
}

@media (max-width: 767px) {
  .themed-tab.nav-link {
    font-size: 0.7rem !important;
    padding: 8px 16px !important;
    letter-spacing: 1px !important;
  }
}

/* ================================
   Game Date Display - Max Width
   ================================ */
.game-date-display {
  max-width: 160px;
}

/* ================================
   Games Page - Year Tabs
   ================================ */
.year-tabs.nav-tabs {
  border-bottom: none;
  gap: 8px;
}

.year-tab.nav-link {
  background: transparent;
  color: #666;
  border: none;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 8px 16px;
  transition: all 0.3s ease;
}

/* ================================
   Games Page - Month Tabs
   ================================ */
.month-tabs {
  gap: 8px;
}

.badge.result {
    background-color: var(--theme-primary) !important;
    color: var(--primarybgcolor) !important;
}

/* ================================
   Calendar
   ================================ */

.calendar-card .text-muted {
    color: var(--gamestextcolor) !important;
}

.calendar-card .result-badge {
    padding-left: 10px;
}