/* ============================================
   NV Casino Website - Dark Theme CSS
   ============================================
   This stylesheet implements a dark theme design
   with full responsive support for mobile and desktop.
   All styles are commented for clarity.
   ============================================ */

/* ============================================
   GLOBAL RESET AND BASE STYLES
   ============================================ */

/* Reset all default margins, padding, and box-sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base body styling with dark theme */
body {
  /* Dark background color for the entire page */
  background-color: #0a0a0a;
  /* Light text color for contrast against dark background */
  color: #e0e0e0;
  /* Modern sans-serif font stack */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  /* Base font size */
  font-size: 16px;
  /* Line height for better readability */
  line-height: 1.6;
  /* Prevent horizontal scrolling */
  overflow-x: hidden;
  /* Fix mobile screen - prevent zoom and ensure proper viewport */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* ============================================
   TYPOGRAPHY STYLES
   ============================================ */

/* Heading styles with hierarchy */
h1, h2, h3, h4, h5, h6 {
  /* Dark blue color for headings */
  color: #1e3a8a;
  /* Bottom margin for spacing */
  margin-bottom: 1rem;
  /* Font weight for emphasis */
  font-weight: 600;
}

/* Main heading (H1) - largest size */
h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}

/* Secondary heading (H2) - green accent */
h2 {
  font-size: 2rem;
  color: #10b981;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Tertiary heading (H3) - blue accent */
h3 {
  font-size: 1.5rem;
  color: #3b82f6;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Paragraph styling */
p {
  margin-bottom: 1rem;
  color: #d1d5db;
}

/* Link styling */
a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #93c5fd;
}

/* ============================================
   CONTAINER AND LAYOUT
   ============================================ */

/* Main container for content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================
   HEADER AND NAVIGATION
   ============================================ */

/* Header section with sticky positioning */
header {
  background-color: #1f2937;
  padding: 0.25rem 0; /* Thinner header */
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Navigation container using flexbox */
header nav.container {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Vertically center all items */
  min-height: 50px; /* Ensure minimum height for proper centering */
  height: 100%; /* Take full height of header */
}

/* Logo styling - image container */
.logo {
  display: flex;
  align-items: center; /* Vertically center logo */
  height: 100%; /* Take full height of nav */
}

.logo img {
  height: 35px; /* Reduced logo size for thinner header */
  width: auto;
  max-width: 150px;
  object-fit: contain;
  vertical-align: middle; /* Additional vertical alignment */
}

/* Navigation links container */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center; /* Vertically center nav links */
  margin: 0; /* Remove default margins */
  padding: 0; /* Remove default padding */
  height: 100%; /* Take full height of nav */
}

.nav-links li {
  display: flex;
  align-items: center; /* Vertically center each list item */
  height: 100%; /* Take full height */
}

.nav-links a {
  color: #e5e7eb;
  font-weight: 500;
  transition: color 0.3s ease;
  display: flex;
  align-items: center; /* Vertically center link text */
  height: 100%; /* Take full height */
}

.nav-links a:hover {
  color: #fbbf24;
}

/* ============================================
   BANNER SECTION
   ============================================ */

/* Banner container with background image */
.banner {
  position: relative;
  min-height: 400px;
  /* Desktop banner image */
  background-image: url('img/baner/baner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* CTA on the right for web */
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  padding: 2rem;
}

/* Banner content - semi-transparent block for CTA */
.banner-content {
  /* Semi-transparent dark background */
  background: rgba(0, 0, 0, 0.7);
  padding: 2rem;
  border-radius: 8px;
  text-align: left; /* Left align for web version (right side) */
  max-width: 500px;
  /* Position on the right for desktop */
  margin-right: 2rem;
}

/* Banner text styling - no H tags, use styled divs */
.banner-text-title {
  color: #ffffff;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 0 0.5rem 0;
}

.banner-text-subtitle {
  color: #ffffff;
  font-size: 1.1rem;
  margin: 0 0 1rem 0;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

main {
  padding: 2rem 0;
}

/* ============================================
   BANNER TEXT IMAGES WITH CTA
   ============================================ */

/* Container for banner text images with CTA overlay */
.banner-text-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
}

.banner-text-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* CTA overlay on banner text images - positioned on the left */
.banner-text-cta {
  position: absolute;
  bottom: 20px;
  left: 20px;
  max-width: 300px; /* Limit width, keep on left */
  background: rgba(0, 0, 0, 0.75);
  padding: 1rem 1.5rem;
  border-radius: 6px;
  text-align: left; /* Text aligned to left */
}

.banner-text-cta .cta-text {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.banner-text-cta .cta-button-small {
  display: inline-block;
  background-color: #fbbf24;
  color: #1f2937;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.banner-text-cta .cta-button-small:hover {
  background-color: #f59e0b;
}

/* ============================================
   BREADCRUMBS NAVIGATION
   ============================================ */

.breadcrumbs {
  background-color: #374151;
  padding: 0.25rem 0; /* Thinner breadcrumbs, no horizontal padding */
  border-radius: 0; /* Full width like header */
  margin-bottom: 2rem;
  width: 100%;
  max-width: 100%;
  text-align: left; /* Text on the left */
}

.breadcrumbs .container {
  padding: 0 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumbs a {
  color: #9ca3af;
}

.breadcrumbs span {
  color: #6b7280;
  margin: 0 0.5rem;
}

/* ============================================
   POPULAR SLOTS SECTION
   ============================================ */

.popular-slots {
  margin: 2rem 0 3rem 0; /* Moved to top after banner */
}

/* Slots grid - 6 columns on desktop, 12 images total */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

/* Individual slot item container - clickable */
.slot-item {
  background-color: #374151;
  border-radius: 12px; /* Rounded corners as required */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.slot-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.slot-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

/* Slot images - full size, rounded corners */
.slot-item img {
  width: 100%;
  height: auto;
  /* Do not reduce size - maintain aspect ratio */
  min-height: 150px;
  object-fit: cover;
  /* Rounded corners on images */
  border-radius: 12px;
  display: block;
  transition: opacity 0.3s ease;
}

.slot-item:hover img {
  opacity: 0.9;
}

/* ============================================
   TABLE STYLES - RESPONSIVE
   ============================================ */

/* Table container for responsive scrolling */
.table-container {
  width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
  /* Custom scrollbar for better UX */
  scrollbar-width: thin;
  scrollbar-color: #4b5563 #1f2937;
}

/* Main content table */
.content-table {
  width: 100%;
  min-width: 600px; /* Minimum width for readability on desktop */
  border-collapse: collapse;
  background-color: #1f2937;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Table header cells */
.content-table th {
  background-color: #374151;
  color: #fbbf24;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  border-bottom: 2px solid #4b5563;
}

/* Table data cells */
.content-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #374151;
  color: #d1d5db;
}

/* Table row hover effect */
.content-table tr:hover {
  background-color: #2d3748;
}

/* ============================================
   BUTTON STYLES
   ============================================ */

/* Base button styles */
.btn {
  display: inline-flex; /* Use flex for better alignment */
  align-items: center; /* Vertically center button content */
  justify-content: center; /* Horizontally center button content */
  padding: 0.5rem 1rem; /* Reduced padding for thinner header */
  border: none;
  border-radius: 6px;
  font-size: 0.875rem; /* Slightly smaller font */
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  vertical-align: middle; /* Additional vertical alignment */
  height: auto; /* Auto height to fit content */
}

/* Primary button - all buttons link to /go/ */
.btn-primary {
  background-color: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background-color: #2563eb;
}

/* CTA button in banner */
.cta-button {
  display: inline-block;
  background-color: #fbbf24;
  color: #1f2937;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.cta-button:hover {
  background-color: #f59e0b;
}

/* ============================================
   LIST STYLES
   ============================================ */

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  color: #d1d5db;
}

/* ============================================
   FOOTER SECTION
   ============================================ */

footer {
  background-color: #111827;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-text {
  color: #9ca3af;
}

/* Payment logos container */
.payment-logos {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Individual payment logo */
.payment-logo {
  width: 80px;
  height: 50px;
  background-color: transparent;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.payment-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Colorful logos - no filter */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.payment-logo:hover img {
  transform: scale(1.1);
  opacity: 0.8;
}

/* ============================================
   RESPONSIVE DESIGN - TABLET (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {
  /* Container padding adjustment */
  .container {
    padding: 0 0.5rem;
  }

  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  /* Navigation adjustments */
  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }

  /* Banner adjustments for tablet */
  .banner {
    min-height: 300px;
    justify-content: center; /* Center for tablet */
    padding: 1.5rem;
  }

  .banner-content {
    max-width: 100%;
    margin-right: 0;
    text-align: center; /* Center text for tablet */
  }

  /* Slots grid - 3 columns on tablet */
  .slots-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  /* Table responsive - enable horizontal scroll */
  .table-container {
    -webkit-overflow-scrolling: touch;
  }

  /* Footer layout adjustment */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .payment-logos {
    justify-content: center;
  }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE (max-width: 480px)
   ============================================ */

@media (max-width: 480px) {
  /* Add left and right indents for mobile */
  .container {
    padding: 0 1rem; /* Left and right indents */
  }

  /* Typography further adjustments */
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.125rem;
  }

  body {
    font-size: 14px;
  }

  /* Mobile navigation - hamburger menu */
  .nav-links {
    display: none; /* Hidden by default, shown via JS */
  }

  /* Mobile menu button */
  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: #fbbf24;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1f2937;
    padding: 1rem;
    gap: 1rem;
  }

  /* Banner - mobile version */
  .banner {
    /* Mobile banner image - do not reduce size */
    background-image: url('img/baner/baner-mob.png');
    min-height: 300px; /* Minimum height to ensure visibility */
    height: auto;
    margin: 1rem 0;
    justify-content: center; /* Center CTA for mobile */
    padding: 0; /* No padding to preserve full image size */
    background-size: 100% auto; /* Full width, maintain aspect ratio - do not reduce */
    background-repeat: no-repeat;
    background-position: center top;
  }

  /* Banner text CTA - mobile adjustments */
  .banner-text-cta {
    bottom: 10px;
    left: 10px;
    max-width: calc(100% - 20px); /* Full width minus padding on mobile */
    padding: 0.75rem 1rem;
  }

  .banner-text-cta .cta-text {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }

  .banner-text-cta .cta-button-small {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }

  .banner-content {
    max-width: 100%;
    margin-right: 0;
    text-align: center; /* Center text for mobile */
    padding: 1.5rem;
  }

  .banner-text-title {
    font-size: 1.5rem;
  }

  .banner-text-subtitle {
    font-size: 1rem;
  }

  /* Slots grid - 2 columns on mobile */
  .slots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  /* Slot images maintain size on mobile */
  .slot-item img {
    min-height: 120px;
  }

  /* Table optimized for mobile - card-based layout, no horizontal scroll */
  .table-container {
    overflow-x: visible; /* No horizontal scroll needed */
    margin: 1.5rem 0;
    -webkit-overflow-scrolling: auto;
    width: 100%;
  }

  .content-table {
    min-width: 100%; /* Remove min-width constraint */
    width: 100%;
    font-size: 0.875rem;
    display: block; /* Change to block for mobile stacking */
    border-collapse: separate;
    border-spacing: 0;
  }

  .content-table thead {
    display: none; /* Hide header on mobile */
  }

  .content-table tbody {
    display: block;
    width: 100%;
  }

  .content-table tr {
    display: block;
    margin-bottom: 1rem;
    background-color: #1f2937;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #374151;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }

  .content-table tr:last-child {
    margin-bottom: 0;
  }

  .content-table td {
    display: block;
    padding: 0.5rem 0;
    text-align: left;
    border: none;
    border-bottom: 1px solid #374151;
  }

  .content-table tr td:last-child {
    border-bottom: none;
  }

  /* Add labels for mobile table cells using data-label attribute */
  .content-table td::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: #fbbf24;
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 0.85rem;
  }

  /* First column (feature name) styling - acts as card header */
  .content-table tr td:first-child {
    font-weight: 600;
    color: #fbbf24;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #4b5563;
  }

  .content-table tr td:first-child::before {
    display: none; /* Don't show label for first column */
  }

  /* Footer adjustments */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .payment-logos {
    justify-content: center;
    gap: 0.5rem;
  }

  .payment-logo {
    width: 60px;
    height: 40px;
  }

  /* Button size adjustments */
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }

  /* Fix mobile screen - prevent zoom on input focus */
  input, textarea, select {
    font-size: 16px !important;
  }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Focus styles for keyboard navigation */
.btn:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
  body {
    background-color: #000000;
    color: #ffffff;
  }

  .banner {
    background: #000000;
  }

  .slot-item {
    background-color: #ffffff;
    color: #000000;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  body {
    background-color: white !important;
    color: black !important;
  }

  .banner,
  .popular-slots,
  footer {
    display: none !important;
  }

  a {
    color: black !important;
    text-decoration: underline !important;
  }
}
