/* ========== MOBILE NAVIGATION ========== */
.nav-mobile {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(180deg, #0a0a12 0%, #0f0a1a 100%);
  padding: 0;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 999;
  border-top: 1px solid rgba(191, 255, 0, 0.2);
}

.nav-mobile.active {
  transform: translateX(0);
}

.nav-mobile .nav-list {
  flex-direction: column;
  gap: 0;
  padding: 0;
  width: 100%;
}

.nav-mobile .nav-item {
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-mobile .nav-item:last-child {
  border-bottom: none;
}

.nav-mobile .nav-link-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-mobile .nav-link {
  flex: 1;
  display: block;
  width: 100%;
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
  transition: all 0.2s ease;
}

.nav-mobile .nav-link:hover {
  color: #BFFF00;
  background: rgba(191, 255, 0, 0.05);
}

.nav-mobile .nav-link.active {
  color: #BFFF00;
}

.nav-mobile .nav-item.active {
  background: rgba(191, 255, 0, 0.08);
  border-left: 3px solid #BFFF00;
}

.nav-mobile .dropdown-link {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  text-align: left;
}

.nav-mobile .dropdown-link:hover {
  background: rgba(191, 255, 0, 0.1);
  color: #BFFF00;
}

.nav-mobile .dropdown-link.active {
  color: #BFFF00;
  background: rgba(191, 255, 0, 0.15);
}

.nav-mobile .dropdown-toggle {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all 0.2s ease;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.nav-mobile .dropdown-toggle:hover {
  color: #BFFF00;
  background: rgba(191, 255, 0, 0.1);
}

.nav-mobile .dropdown-arrow {
  transition: transform 0.3s ease;
}

.nav-mobile .dropdown {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  display: none;
  border: none;
  padding: var(--space-2) 0;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  min-width: auto;
  margin: 0;
  border-radius: 0;
  width: 100%;
}

.nav-mobile .dropdown-list {
  padding: 0;
  width: 100%;
}

.nav-mobile .dropdown-list li {
  width: 100%;
}

.nav-mobile .dropdown-link {
  padding-left: var(--space-10);
}

.nav-mobile .nav-item.open .dropdown {
  display: block;
}

.nav-mobile .nav-item.open .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-mobile .nav-item.open .dropdown-toggle {
  color: #BFFF00;
  background: rgba(191, 255, 0, 0.1);
}

/* Mobile menu CTA button */
.nav-mobile-cta {
  padding: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-4);
  width: 100%;
}

.nav-mobile-cta .btn {
  width: 100%;
  padding: var(--space-4);
  font-size: var(--text-base);
  text-align: center;
}

/* Overlay when mobile menu is open */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ========== TABLET ========== */
@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .hero-shape {
    opacity: 0.4;
  }

  .hero-shape.shape-5,
  .hero-shape.shape-6,
  .hero-shape.shape-7,
  .hero-shape.shape-8,
  .hero-shape.shape-9,
  .hero-shape.shape-10,
  .hero-shape.shape-11,
  .hero-shape.shape-12 {
    display: none;
  }

  .section-title {
    font-size: var(--text-3xl);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-container {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .top-casinos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }

  section {
    padding: var(--space-12) 0;
  }

  .hero {
    padding: var(--space-16) 0 var(--space-12);
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-description {
    font-size: var(--text-base);
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-6);
  }

  .hero-shapes {
    opacity: 0.3;
  }

  .hero-shape {
    display: none;
  }

  .hero-shape.shape-1,
  .hero-shape.shape-2 {
    display: block;
  }

  .hero-shape.shape-1::before {
    font-size: 50px;
  }

  .hero-shape.shape-2::before {
    font-size: 40px;
  }

  .hero-decoration {
    display: none;
  }

  .carousel-section {
    padding: var(--space-12) 0;
  }

  .section-title {
    font-size: var(--text-2xl);
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .category-card {
    padding: var(--space-5);
    min-height: auto;
  }

  .category-icon {
    width: 48px;
    height: 48px;
  }

  .category-name {
    font-size: var(--text-base);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .top-casinos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .top-casino-card {
    padding: var(--space-4);
  }

  .top-casino-logo {
    width: 48px;
    height: 48px;
    font-size: var(--text-base);
  }

  .top-casino-name {
    font-size: var(--text-sm);
  }

  .top-casino-bonus .bonus-amount {
    font-size: var(--text-lg);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .article-body {
    padding: var(--space-5);
  }

  .legal-content {
    padding: var(--space-6);
  }

  .contact-form-wrapper {
    padding: var(--space-6);
  }

  .modal-content {
    padding: var(--space-5);
    margin: var(--space-4);
  }

  .page-title {
    font-size: var(--text-3xl);
  }

  .breadcrumbs {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ========== SMALL MOBILE ========== */
@media (max-width: 480px) {
  .hero-title {
    font-size: var(--text-2xl);
  }

  .top-casinos-grid {
    grid-template-columns: 1fr;
  }

  .top-casino-card {
    flex-direction: row;
    text-align: left;
    gap: var(--space-4);
  }

  .top-casino-rank {
    position: static;
    flex-shrink: 0;
  }

  .top-casino-logo {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .top-casino-info {
    flex: 1;
    margin-bottom: 0;
  }

  .top-casino-rating {
    justify-content: flex-start;
  }

  .top-casino-bonus {
    margin-bottom: 0;
    text-align: right;
  }

  .top-casino-btn {
    width: auto;
    padding: var(--space-2) var(--space-4);
  }

  .pagination {
    gap: var(--space-1);
  }

  .pagination-link {
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-3);
    font-size: var(--text-xs);
  }
}

/* ========== LARGE SCREENS ========== */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .carousel-row {
    animation: none;
  }
}
