/* Main CSS for 9889BET Casino */

:root {
    /* Color variables */
    --primary-bg: #1E262D;
    --secondary-bg: #131a22;
    --accent-color: #ffd700;
    --accent-secondary: #ff4757;
    --text-color: #ffffff;
    --text-secondary: #cccccc;
    --button-primary: #ff4757;
    --button-secondary: #ffd700;
    --button-hover: #ff6b81;
    --button-text: #ffffff;
    --border-color: #2d3741;
  }
  
  /* Base Styles */
  body {
    background-color: var(--primary-bg);
    color: var(--text-color);
    font-family: 'Montserrat', Arial, sans-serif;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
  }
  
  p {
    margin-bottom: 15px;
  }
  
  /* Header Styles */
  .header {
    background-color: var(--secondary-bg);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }
  
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo img {
    height: 50px;
  }
  
  .nav {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .nav-link {
    color: var(--text-color);
    padding: 10px 15px;
    margin: 0 5px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
  }
  
  .nav-link:hover {
    color: var(--accent-color);
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s;
  }
  
  .nav-link:hover::after {
    width: 70%;
  }

  /* Dropdown Menu Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--secondary-bg);
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  z-index: 1000;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 10px;
}

.dropdown-content a {
  color: var(--text-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s;
  font-size: 14px;
}

.dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
}

.dropdown:hover .dropdown-content {
  display: block;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Dropdown arrow animation */
.dropdown:hover .fa-chevron-down {
  transform: rotate(180deg);
}

.fa-chevron-down {
  transition: transform 0.3s;
}

/* Mobile responsive adjustments */
@media (max-width: 992px) {
  .dropdown-content {
      position: static;
      display: none;
      min-width: 100%;
      margin-top: 0;
      box-shadow: none;
      background-color: rgba(255, 255, 255, 0.05);
  }
  
  .dropdown.active .dropdown-content {
      display: block;
  }
  
  .dropdown-content a {
      padding-left: 30px;
  }
}
  
  .auth-buttons {
    display: flex;
  }
  
  .btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 14px;
  }
  
  .btn-login {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--button-primary);
    margin-right: 10px;
  }
  
  .btn-login:hover {
    background-color: var(--button-primary);
    color: var(--button-text);
  }
  
  .btn-register {
    background-color: var(--button-primary);
    color: var(--button-text);
    border: 2px solid var(--button-primary);
  }
  
  .btn-register:hover {
    background-color: var(--button-hover);
    border-color: var(--button-hover);
  }
  
  /* Hero Section Styles */
  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
  }
  
  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(30,38,45,0.9));
    z-index: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
  }
  
  .hero h1 {
    font-size: 42px;
    margin-bottom: 30px;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--text-secondary);
  }
  
  .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }
  

  .btn-play {
    background-color: var(--button-secondary);
    color: #000;
    font-weight: 700;
    padding: 15px 35px;
    font-size: 16px;
    border: 2px solid var(--button-secondary);
  }

  .btn-plays {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--button-primary);
    margin-right: 10px;
    padding: 15px 65px;
  }
  .btn-plays:hover {
    background-color: var(--button-primary);
    color: var(--button-text);
  }
  
  .btn-play:hover {
    background-color: #e6c200;
    border-color: #e6c200;
  }

  .hero-buttons .btn-play,
  .hero-buttons .btn-register {
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 35px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
  }
  
  /* Games Section Styles */
  .games-section {
    padding: 60px 0;
    background-color: rgba(19, 26, 34, 0.5);
  }
  
  .section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    color: var(--text-color);
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
  }
  
  .games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
  }
  
  .game-card {
    background-color: var(--secondary-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  .game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
  }
  
  .game-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
  
  .game-info {
    padding: 20px;
  }
  
  .game-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
  }
  
  .game-provider {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
  }
  
  .btn-play-now {
    width: 100%;
    background-color: var(--button-primary);
    color: var(--button-text);
    padding: 12px 0;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s;
  }
  
  .btn-play-now:hover {
    background-color: var(--button-hover);
  }
  
  /* Promotions Section Styles */
  .promotions-section {
    padding: 60px 0;
    background-color: var(--primary-bg);
  }
  
  .promotion-card {
    background-color: rgba(19, 26, 34, 0.8);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .promotion-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--accent-color);
    font-weight: 700;
  }
  
  .promotion-description {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
  }
  
  /* Footer Styles */
  .footer {
    background-color: var(--secondary-bg);
    padding: 60px 0 30px;
    margin-top: 60px;
  }
  
  .footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
  }
  
  .footer-col h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
  }
  
  .footer-links li {
    margin-bottom: 10px;
  }
  
  .footer-links a {
    color: var(--text-secondary);
    transition: color 0.3s;
  }
  
  .footer-links a:hover {
    color: var(--accent-color);
  }
  
  .social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
  }
  
  .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s;
  }
  
  .social-link:hover {
    background-color: var(--accent-color);
  }
  
  .social-link i {
    color: var(--text-color);
    font-size: 18px;
  }
  
  .footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
  }
  
  .payment-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
  }
  
  .payment-icon {
    width: 50px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
  }
  
  /* Mobile Nav Toggle */
  .mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
  }
  
  .mobile-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s;
  }
  
  /* Popup Styles */
  .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }
  
  .popup-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .popup-content {
    background-color: var(--secondary-bg);
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s;
  }
  
  .popup-overlay.active .popup-content {
    transform: scale(1);
  }
  
  .popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
  }
  
  .popup-close:hover {
    color: var(--accent-color);
  }
  
  .popup-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-align: center;
  }
  
  .popup-body {
    text-align: center;
  }
  
  .popup-body p {
    margin-bottom: 20px;
  }
  
  .popup-image {
    max-width: 200px;
    margin: 0 auto 20px;
  }
  
  .popup-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
  }
  
  /* Media Queries */
  @media (max-width: 992px) {
    .header-container {
      position: relative;
    }
    
    .nav {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background-color: var(--secondary-bg);
      flex-direction: column;
      padding: 20px 0;
      border-top: 1px solid var(--border-color);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
      transform: translateY(-200%);
      transition: transform 0.3s;
      z-index: 100;
    }
    
    .nav.active {
      transform: translateY(0);
    }
    
    .nav-link {
      padding: 15px;
      width: 100%;
      text-align: center;
    }
    
    .mobile-toggle {
      display: flex;
    }
    
    .hero h1 {
      font-size: 32px;
    }
    
    .hero p {
      font-size: 16px;
    }
    
    .hero-buttons {
      flex-direction: column;
      width: 100%;
    }
    
    .hero-buttons .btn {
      width: 100%;
      margin-bottom: 10px;
    }
  }
  
  @media (max-width: 768px) {
    .section {
      padding: 40px 0;
    }
    
    .section-title {
      font-size: 28px;
    }
    
    .games-grid {
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .footer-container {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 576px) {
    .header {
      padding: 10px 0;
    }
    
    .logo img {
      height: 40px;
    }
    
    .auth-buttons {
      flex-direction: column;
      gap: 10px;
    }
    
    .btn-login {
      margin-right: 0;
    }
    
    .hero h1 {
      font-size: 28px;
    }
    
    .games-grid {
      grid-template-columns: 1fr;
    }
    
    .footer-container {
      grid-template-columns: 1fr;
    }
  }