/* ========================================
   AD777 Casino - Main CSS
   Mobile First Design
======================================== */

/* ========================================
   Variables & Reset
======================================== */
:root {
  --color-bg: #1A1D22;
  --color-header: #22262E;
  --color-primary: #419A3A;
  --color-secondary: #3B414C;
  --color-text: #fff;
  --color-text-secondary: #ccc;
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========================================
   Typography
======================================== */
h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.875rem;
  color: var(--color-text);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #4db444;
}

/* ========================================
   Slider
======================================== */
.slider-section {
  width: 100%;
  position: relative;
  max-width: 1200px;
  margin: 4rem auto;
  overflow: hidden;
  border-radius: 12px;
}

.banner-slider {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.banner-slider .swiper-slide {
  width: 100%;
  height: 100%;
  position: relative;
}

.banner-slider .slider-link {
  display: block;
  width: 100%;
  height: 100%;
}

.banner-slider .slider-link picture {
    width: 100%;
    height: 100%;
    margin: 0;
}

.banner-slider .slider-link img {
  width: 100%;
  height: 100%;
}

.swiper-pagination {
  position: absolute;
  bottom: 20px;
  z-index: 10;
}

.swiper-pagination-bullet {
  background-color: var(--color-text);
  opacity: 0.5;
  width: 10px;
  height: 10px;
}

.swiper-pagination-bullet-active {
  background-color: var(--color-primary);
  opacity: 1;
}

.swiper-button-prev,
.swiper-button-next {
  color: var(--color-text);
  background-color: rgba(0, 0, 0, 0.3);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: var(--transition);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: rgba(65, 154, 58, 0.8);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 16px;
  font-weight: bold;
}

/* ========================================
   Header
======================================== */
.header {
  background-color: var(--color-header);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 30px;
  width: auto;
}

.nav {
  display: none;
}

.nav.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-header);
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
  display: block;
  padding: 1rem;
  color: var(--color-text);
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  background-color: rgba(65, 154, 58, 0.1);
  color: var(--color-primary);
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom: 2px solid var(--color-primary);
}

.header-buttons {
  display: flex;
  gap: 0.5rem;
}

.burger-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background-color: var(--color-text);
  transition: var(--transition);
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 4px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   Buttons
======================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text);
}

.btn-primary:hover {
  background-color: #4db444;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(65, 154, 58, 0.4);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-text);
}

.btn-secondary:hover {
  background-color: #47505b;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 65, 76, 0.4);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ========================================
   Main Content
======================================== */
.main {
  min-height: calc(100vh - 200px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.section {
  margin-bottom: 2rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, rgba(65, 154, 58, 0.1) 0%, rgba(26, 29, 34, 1) 100%);
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.hero-text {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background-color: var(--color-secondary);
  border-radius: 8px;
  padding: 1.5rem;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.card-title {
  color: var(--color-text);
  margin-bottom: 1rem;
}

.card-text {
  color: var(--color-text-secondary);
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-secondary);
  border-radius: 8px;
  overflow: hidden;
}

thead {
  background-color: var(--color-primary);
}

th,
td {
  padding: 1rem;
  text-align: left;
}

th {
  font-weight: 600;
  color: var(--color-text);
}

td {
  color: var(--color-text-secondary);
}

tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background-color: rgba(65, 154, 58, 0.05);
}

/* Lists */
ul {
  list-style: none;
}

.list-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.list-item:before {
  content: "•";
  color: var(--color-primary);
  font-weight: bold;
  display: inline-block;
  width: 1rem;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

picture {
  display: block;
  margin: 2rem 0;
}

picture img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

picture img:hover {
  transform: scale(1.02);
}

/* Image inside sections */
.section picture {
  margin: 1.5rem 0;
}

@media (min-width: 768px) {
  picture img {
    border-radius: 12px;
  }
}

/* FAQ */
.faq {
  margin: 2rem 0;
}

.faq-item {
  background-color: var(--color-secondary);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.faq-question {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.faq-answer {
  color: var(--color-text-secondary);
}

/* Footer */
.footer {
  background-color: var(--color-header);
  padding: 3rem 1rem 1rem;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--color-text-secondary);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}


@media (min-width: 1660px) {
    .nav {
        display: flex;
        position: static;
        background-color: transparent;
        box-shadow: none;
      }
    
      .nav-list {
        flex-direction: row;
      }
    
      .nav-item {
        border-bottom: none;
      }
    
      .nav-link {
        padding: 0.5rem 1rem;
      }
    
      .burger-menu {
        display: none;
      }
}

/* Responsive Slider */
@media (min-width: 768px) {
  .banner-slider {
    height: 300px;
  }

  .swiper-button-prev,
  .swiper-button-next {
    width: 50px;
    height: 50px;
  }

  .swiper-button-prev::after,
  .swiper-button-next::after {
    font-size: 20px;
  }
}

@media (min-width: 1024px) {
  .banner-slider {
    height: 400px;
  }
}

@media (max-width: 767px) {
  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }
}

/* ========================================
   Responsive - Tablet
======================================== */
@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .hero {
    padding: 4rem 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }



  .btn {
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
  }

  .btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   Responsive - Desktop
======================================== */
@media (min-width: 1024px) {
  h1 {
    font-size: 3rem;
  }

  .hero {
    padding: 5rem 2rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-text {
    font-size: 1.25rem;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-link {
    padding: 0.5rem 1.5rem;
  }

  .nav-link.active {
    border-bottom: none;
    border-left: 3px solid var(--color-primary);
  }

  .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .container {
    padding: 3rem 2rem;
  }

  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   Utility Classes
======================================== */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

@media (max-width: 480px) {
    .header-buttons {
        width: 100%;
        order: 3;
        margin-top: 15px;
        justify-content: center;
    }

    .header-buttons .btn {
        width: 100%;
    }

    .header-container {
        flex-wrap: wrap;
    }
}