/* ==========================================================
   MOBILE DARK THEME NAVBAR (Optimized for ≤768px)
   Built for professional web UI — modern, animated, elegant
   ========================================================== */

/* ------------------ Root Body ------------------ */
body {
  background-color: #0e0e0e;
  color: #e0e0e0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================
   NAVBAR BASE CONTAINER
   ========================================================== */
.navbar {
  width: 94%;
  margin: 12px auto;
  background-color: rgba(20, 20, 20, 0.95);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.navbar:hover {
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
}

/* ==========================================================
   NAVBAR LEFT — LOGO
   ========================================================== */
.navbar-left {
  flex-shrink: 0;
}

.navbar-logo .logo {
  height: 40px;
  filter: brightness(0.9);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.navbar-logo:hover .logo {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* ==========================================================
   NAVBAR CENTER (Desktop Only)
   ========================================================== */
.navbar-center {
  display: none; /* Hidden on mobile */
}

/* ==========================================================
   NAVBAR RIGHT (Desktop Only)
   ========================================================== */
.navbar-right {
  display: none;
}

/* ==========================================================
   HAMBURGER MENU BUTTON
   ========================================================== */
.menu-toggle {
  background: none;
  border: none;
  color: #e0e0e0;
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 1100;
  transition: color 0.3s ease, transform 0.2s ease;
}

.menu-toggle:hover {
  color: #F90618;
  transform: scale(1.1);
}

/* ==========================================================
   MOBILE DROPDOWN MENU
   ========================================================== */
.mobile-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background-color: rgba(26, 26, 26, 0.98);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    max-height 0.45s ease,
    opacity 0.3s ease,
    transform 0.35s ease;
  display: flex;
  flex-direction: column;
  z-index: 1080;
  backdrop-filter: blur(10px);
}

/* When menu is open */
.mobile-menu.open {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  padding-top: 8px;
}

/* ==========================================================
   MOBILE LINKS
   ========================================================== */
.mobile-menu a {
  text-decoration: none;
  color: #b0b0b0;
  text-align: center;
  font-weight: 600;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  background-color: rgba(249, 6, 24, 0.15);
  color: #fff;
}

.mobile-menu a.active {
  color: #fff;
  background-color: rgba(46, 49, 146, 0.25);
  border-left: 4px solid #F90618;
}

/* ==========================================================
   MOBILE MENU BOTTOM SECTION
   (Time on left, theme toggle on right)
   ========================================================== */
.mobile-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  margin-top: 6px;
  background-color: rgba(15, 15, 15, 0.9);
  border-top: 1px solid #2a2a2a;
  border-radius: 0 0 12px 12px;
}

/* Mobile Time */
.mobile-time {
  color: #b0b0b0;
  font-size: 1rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  background-color: rgba(46, 49, 146, 0.1);
  border: 1px solid #333;
  transition: all 0.3s ease;
}

.mobile-time:hover {
  color: #fff;
  background-color: rgba(46, 49, 146, 0.2);
  border-color: #2E3192;
}

/* Mobile Theme Toggle */
.mobile-theme-toggle {
  background-color: rgba(249, 6, 24, 0.1);
  border: 1px solid #333;
  border-radius: 6px;
  color: #e0e0e0;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 8px 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mobile-theme-toggle:hover {
  background-color: rgba(249, 6, 24, 0.2);
  border-color: #F90618;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(249, 6, 24, 0.25);
}

/* ==========================================================
   SMOOTH ICON & MENU TRANSITIONS
   ========================================================== */
.mobile-theme-toggle::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(249, 6, 24, 0.25),
    transparent
  );
  transition: left 0.5s ease;
}

.mobile-theme-toggle:hover::before {
  left: 100%;
}

/* ==========================================================
   MENU OPEN ANIMATION
   ========================================================== */
@keyframes dropdown-open {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu.open {
  animation: dropdown-open 0.4s ease;
}

/* ==========================================================
   MOBILE RESPONSIVE HANDLING
   ========================================================== */
@media (max-width: 480px) {
  .navbar {
    width: 96%;
    padding: 12px 14px;
  }

  .mobile-menu a {
    font-size: 0.95rem;
    padding: 12px;
  }

  .menu-toggle {
    font-size: 1.8rem;
    right: 12px;
  }

  .mobile-bottom {
    padding: 10px 14px;
  }

  .mobile-time {
    font-size: 0.9rem;
  }
}

/* ==========================================================
   TABLET SUPPORT (481px – 768px)
   ========================================================== */
@media (min-width: 481px) and (max-width: 768px) {
  .navbar {
    width: 92%;
    padding: 14px 18px;
  }

  .mobile-menu a {
    font-size: 1rem;
    padding: 14px;
  }

  .mobile-bottom {
    padding: 12px 20px;
  }

  .mobile-theme-toggle {
    font-size: 1.4rem;
  }
}

/* ==========================================================
   DESKTOP TRANSITION (≥769px)
   Hide mobile layout, show desktop navbar
   ========================================================== */
@media (min-width: 769px) {
  .navbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: min(95%, 1400px);
    padding: 20px 40px;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  }

  .menu-toggle,
  .mobile-menu {
    display: none !important;
  }

  .navbar-left,
  .navbar-center,
  .navbar-right {
    display: flex !important;
  }

  .navbar-center {
    flex: 1;
    justify-content: center;
    gap: clamp(18px, 2.5vw, 32px);
  }

  .navbar-center a {
    color: #b0b0b0;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 10px 18px;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
  }

  .navbar-center a:hover {
    color: #fff;
    background-color: rgba(46, 49, 146, 0.1);
  }

  .navbar-right {
    gap: 14px;
  }

  .navbar-time {
    color: #b0b0b0;
    font-weight: 600;
    font-size: 1rem;
    background-color: rgba(46, 49, 146, 0.1);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 8px 12px;
    transition: all 0.3s ease;
  }

  .navbar-time:hover {
    color: #fff;
    background-color: rgba(46, 49, 146, 0.2);
  }

  .theme-toggle {
    background-color: rgba(249, 6, 24, 0.1);
    border: 1px solid #333;
    border-radius: 6px;
    color: #b0b0b0;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.3s ease;
  }

  .theme-toggle:hover {
    background-color: rgba(249, 6, 24, 0.2);
    border-color: #F90618;
    color: #fff;
    box-shadow: 0 4px 12px rgba(249, 6, 24, 0.25);
  }
}

/* ==========================================================
   ACCESSIBILITY FOCUS STYLES
   ========================================================== */
.mobile-menu a:focus,
.menu-toggle:focus,
.mobile-theme-toggle:focus {
  outline: 2px solid #2E3192;
  outline-offset: 3px;
}

/* ==========================================================
   TRANSITION FLUIDITY
   ========================================================== */
.navbar,
.menu-toggle,
.mobile-menu a,
.mobile-bottom,
.mobile-theme-toggle,
.mobile-time {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}



/* =============================================
   FOOTER MOBILE DARK THEME CSS
   Optimized for all mobile devices and screens
   Colors: #f90618 (red), #2e3192 (blue)
   ============================================= */

.footer {
  background: #1a1a1a;
  color: #e0e0e0;
  padding: 2rem 0 1rem;
  margin-top: auto;
  border-top: 1px solid #2d2d2d;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f90618, #2e3192);
  opacity: 0.8;
}

.footer-content {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

.footer-section {
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

/* Touch-friendly hover states */
@media (hover: hover) {
  .footer-section:hover {
    transform: translateY(-2px);
  }
}

.footer-section:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

.footer-section h3 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #f90618;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Touch-friendly underline animation */
@media (hover: hover) {
  .footer-section:hover h3::after {
    width: 80px;
  }
}

.footer-section p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #b0b0b0;
  transition: color 0.3s ease;
  font-size: 1rem;
  padding: 0 0.5rem;
}

.sponsor-text {
  font-style: italic;
  color: #888888 !important;
  font-size: 0.9rem;
  margin-top: 1rem !important;
  border-top: 1px solid #333333;
  padding-top: 0.8rem !important;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem !important;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sponsor-text a {
  color: #2e3192 !important;
  font-weight: 600;
  text-decoration: none;
  display: inline !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  min-height: auto !important;
}

.sponsor-text a:hover {
  color: #f90618 !important;
  text-decoration: underline;
}

.footer-section a {
  color: #b0b0b0;
  text-decoration: none;
  display: block;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 1rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Remove chevron indicator for mobile */
.footer-section a::before {
  display: none;
}

/* Touch-friendly link states */
.footer-section a:active {
  background: rgba(249, 6, 24, 0.1);
  border-color: rgba(249, 6, 24, 0.3);
  transform: scale(0.95);
}

@media (hover: hover) {
  .footer-section a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
  }
}

.footer-section a:hover {
  color: #f90618;
}

/* First section specific styling */
.footer-section:first-child h3 {
  color: #f90618;
}

.footer-section:first-child h3::after {
  background: #f90618;
}

/* Quick Links specific styling */
.footer-section:nth-child(2) h3::after {
  background: #2e3192;
}

.footer-section:nth-child(2) a:active {
  background: rgba(46, 49, 146, 0.1);
  border-color: rgba(46, 49, 146, 0.3);
}

@media (hover: hover) {
  .footer-section:nth-child(2) a:hover {
    color: #2e3192;
  }
}

/* Support section specific styling */
.footer-section:nth-child(3) h3::after {
  background: linear-gradient(90deg, #f90618, #2e3192);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #333;
  color: #888;
  font-size: 0.9rem;
  position: relative;
  padding: 1.5rem 1.25rem 0;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f90618, #2e3192, transparent);
  border-radius: 1px;
}

/* Enhanced mobile responsiveness */
@media (max-width: 480px) {
  .footer {
    padding: 1.5rem 0 1rem;
  }
  
  .footer-content {
    padding: 0 1rem;
    gap: 1.5rem;
  }
  
  .footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-section p {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-section a {
    padding: 0.75rem 0.5rem;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    min-height: 48px;
  }
  
  .footer-bottom {
    padding: 1.5rem 1rem 0;
    font-size: 0.85rem;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .footer {
    padding: 1.25rem 0 0.75rem;
  }
  
  .footer-content {
    padding: 0 0.75rem;
    gap: 1.25rem;
  }
  
  .footer-section h3 {
    font-size: 1.1rem;
  }
  
  .footer-section p {
    font-size: 0.9rem;
  }
  
  .footer-section a {
    font-size: 0.9rem;
    min-height: 44px;
  }
}

/* Tablet optimization */
@media (min-width: 481px) and (max-width: 768px) {
  .footer-content {
    padding: 0 1.5rem;
    gap: 2rem;
  }
  
  .footer-section h3 {
    font-size: 1.25rem;
  }
  
  .footer-section a {
    min-height: 52px;
    font-size: 1.05rem;
  }
}

/* Animation for page load - mobile optimized */
@keyframes fadeInUpMobile {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-section {
  animation: fadeInUpMobile 0.5s ease forwards;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.15s; }
.footer-section:nth-child(3) { animation-delay: 0.2s; }

/* Reduce animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .footer-section {
    animation: none;
    transition: none;
  }
  
  .footer-section h3::after {
    transition: none;
  }
}

/* Focus states for accessibility - mobile optimized */
.footer-section a:focus {
  outline: 3px solid #2e3192;
  outline-offset: 2px;
  border-radius: 8px;
  background: rgba(46, 49, 146, 0.15);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .footer {
    background: #000000;
    border-top: 2px solid #ffffff;
  }
  
  .footer-section a {
    border: 2px solid #ffffff;
  }
  
  .footer-section h3::after {
    height: 4px;
  }
}

/* Print styles */
@media print {
  .footer {
    background: #ffffff !important;
    color: #000000 !important;
    border-top: 2px solid #000000 !important;
    padding: 1rem 0 !important;
  }
  
  .footer-section a {
    color: #000000 !important;
    background: transparent !important;
    border: 1px solid #000000 !important;
  }
  
  .footer::before {
    background: #000000 !important;
  }
}

/* Safe area insets for notched devices */
@supports(padding: max(0px)) {
  .footer-content {
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }
  
  .footer-bottom {
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }
}