/* Jiliko Casino CSS Module */
/* All classes use prefix 'uic6-' */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  font-size: 62.5%; /* 10px base */
  --primary-color: #FFAA00;
  --secondary-color: #1C2833;
  --text-light: #F5F5F5;
  --text-muted: #A9A9A9;
  --bg-dark: #1C2833;
  --bg-darker: #0F1419;
  --border-color: #2A3A4A;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --transition-speed: 0.3s;
  --border-radius: 0.8rem;
  --spacing-xs: 0.4rem;
  --spacing-sm: 0.8rem;
  --spacing-md: 1.6rem;
  --spacing-lg: 2.4rem;
  --spacing-xl: 3.2rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--text-light);
  background-color: var(--bg-dark);
  overflow-x: hidden;
  position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.8rem; }
h5 { font-size: 1.6rem; }
h6 { font-size: 1.4rem; }

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: #FFD700;
}

/* Layout */
.uic6-container {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.uic6-flex {
  display: flex;
}

.uic6-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.uic6-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Header */
.uic6-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-speed);
}

.uic6-header.uic6-scrolled {
  background: var(--bg-darker);
  box-shadow: 0 0.2rem 1rem var(--shadow-color);
}

.uic6-header-content {
  padding: var(--spacing-md) 0;
}

.uic6-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.uic6-logo img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
}

.uic6-logo-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Navigation */
.uic6-nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.uic6-nav-links {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
}

.uic6-nav-link {
  color: var(--text-light);
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius);
  transition: all var(--transition-speed);
}

.uic6-nav-link:hover {
  color: var(--primary-color);
  background: rgba(255, 170, 0, 0.1);
}

/* Header Buttons */
.uic6-header-buttons {
  display: flex;
  gap: var(--spacing-sm);
}

.uic6-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
  min-width: 8rem;
  text-align: center;
}

.uic6-btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #FFD700 100%);
  color: var(--bg-darker);
}

.uic6-btn-primary:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.4rem 1.2rem rgba(255, 170, 0, 0.4);
}

.uic6-btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.uic6-btn-secondary:hover {
  background: var(--primary-color);
  color: var(--bg-darker);
}

/* Mobile Menu Toggle */
.uic6-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.uic6-menu-toggle span {
  width: 2.4rem;
  height: 0.2rem;
  background: var(--primary-color);
  transition: all var(--transition-speed);
}

/* Mobile Menu */
.uic6-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 32rem;
  height: 100vh;
  background: var(--bg-darker);
  z-index: 9999;
  transition: right var(--transition-speed);
  overflow-y: auto;
  padding: var(--spacing-xl) var(--spacing-lg);
}

.uic6-mobile-menu.uic6-active {
  right: 0;
}

.uic6-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed);
}

.uic6-menu-overlay.uic6-active {
  opacity: 1;
  visibility: visible;
}

.uic6-mobile-menu-links {
  list-style: none;
  margin-top: var(--spacing-xl);
}

.uic6-mobile-menu-link {
  display: block;
  padding: var(--spacing-md);
  color: var(--text-light);
  font-size: 1.6rem;
  border-bottom: 1px solid var(--border-color);
  transition: color var(--transition-speed);
}

.uic6-mobile-menu-link:hover {
  color: var(--primary-color);
}

/* Main Content */
main {
  padding-top: 8rem; /* Header height */
}

@media (max-width: 768px) {
  main {
    padding-bottom: 8rem; /* Bottom nav height */
  }
}

/* Carousel */
.uic6-carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-xl);
}

.uic6-carousel-wrapper {
  display: flex;
  transition: transform var(--transition-speed);
}

.uic6-carousel-slide {
  min-width: 100%;
  position: relative;
}

.uic6-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.uic6-carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--spacing-md);
  pointer-events: none;
}

.uic6-carousel-btn {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-light);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: all var(--transition-speed);
}

.uic6-carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.uic6-carousel-indicators {
  position: absolute;
  bottom: var(--spacing-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--spacing-xs);
}

.uic6-carousel-indicator {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.uic6-carousel-indicator.uic6-active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* Game Grid */
.uic6-games-section {
  margin-bottom: var(--spacing-xl);
}

.uic6-section-title {
  font-size: 2.4rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.uic6-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.uic6-game-card {
  text-align: center;
  transition: transform var(--transition-speed);
}

.uic6-game-card:hover {
  transform: translateY(-0.4rem);
}

.uic6-game-link {
  display: block;
  color: var(--text-light);
}

.uic6-game-icon {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-sm);
  transition: all var(--transition-speed);
}

.uic6-game-card:hover .uic6-game-icon {
  box-shadow: 0 0.4rem 1.2rem var(--shadow-color);
}

.uic6-game-name {
  font-size: 1.2rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Content Sections */
.uic6-content-section {
  background: var(--bg-darker);
  border-radius: var(--border-radius);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.uic6-content-section h2 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-lg);
}

.uic6-content-section h3 {
  color: var(--text-light);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.uic6-content-section p {
  color: var(--text-muted);
  line-height: 1.6;
}

.uic6-content-section ul {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.uic6-content-section li {
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

/* Bottom Navigation */
.uic6-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  display: none;
  padding: var(--spacing-sm) 0;
}

@media (max-width: 768px) {
  .uic6-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 6.4rem;
  }
}

.uic6-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  min-width: 6rem;
  min-height: 5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-speed);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius);
}

.uic6-bottom-nav-item:hover,
.uic6-bottom-nav-item.uic6-active {
  color: var(--primary-color);
  background: rgba(255, 170, 0, 0.1);
}

.uic6-bottom-nav-item.uic6-clicked {
  transform: scale(0.95);
}

.uic6-bottom-nav-icon {
  font-size: 2.4rem;
}

.uic6-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Footer */
.uic6-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

@media (max-width: 768px) {
  .uic6-footer {
    padding-bottom: 8rem; /* Space for bottom nav */
  }
}

.uic6-footer-content {
  margin-bottom: var(--spacing-xl);
}

.uic6-footer-title {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: var(--spacing-md);
}

.uic6-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.uic6-footer-link {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: color var(--transition-speed);
}

.uic6-footer-link:hover {
  color: var(--primary-color);
}

/* Partners Section */
.uic6-partners {
  margin-bottom: var(--spacing-xl);
}

.uic6-partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: var(--spacing-md);
  align-items: center;
}

.uic6-partner-logo {
  width: 100%;
  height: 4rem;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition-speed);
}

.uic6-partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Copyright */
.uic6-copyright {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* Utility Classes */
.uic6-text-center { text-align: center; }
.uic6-text-left { text-align: left; }
.uic6-text-right { text-align: right; }

.uic6-mb-sm { margin-bottom: var(--spacing-sm); }
.uic6-mb-md { margin-bottom: var(--spacing-md); }
.uic6-mb-lg { margin-bottom: var(--spacing-lg); }
.uic6-mb-xl { margin-bottom: var(--spacing-xl); }

.uic6-mt-sm { margin-top: var(--spacing-sm); }
.uic6-mt-md { margin-top: var(--spacing-md); }
.uic6-mt-lg { margin-top: var(--spacing-lg); }
.uic6-mt-xl { margin-top: var(--spacing-xl); }

/* Responsive Design */
@media (max-width: 768px) {
  .uic6-nav-links {
    display: none;
  }

  .uic6-menu-toggle {
    display: flex;
  }

  .uic6-header-buttons {
    display: none;
  }

  h1 { font-size: 2.4rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.8rem; }

  .uic6-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  }

  .uic6-content-section {
    padding: var(--spacing-lg);
  }

  .uic6-footer-links {
    justify-content: center;
  }
}

@media (max-width: 430px) {
  :root {
    font-size: 56.25%; /* 9px base for smaller screens */
  }

  .uic6-container {
    padding: 0 var(--spacing-sm);
  }

  .uic6-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
    gap: var(--spacing-sm);
  }

  .uic6-carousel-btn {
    width: 3.2rem;
    height: 3.2rem;
  }
}

/* Animations */
@keyframes uic6-fadeIn {
  from { opacity: 0; transform: translateY(2rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes uic6-slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.uic6-fade-in {
  animation: uic6-fadeIn 0.6s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Focus states */
.uic6-btn:focus,
.uic6-nav-link:focus,
.uic6-carousel-btn:focus,
.uic6-bottom-nav-item:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .uic6-header,
  .uic6-bottom-nav,
  .uic6-carousel-controls,
  .uic6-carousel-indicators {
    display: none !important;
  }

  main {
    padding-top: 0;
  }
}