/* JL Boss 2025 - Main Stylesheet */
/* Mobile-first responsive design with casino theme */

/* Root variables and base setup */
:root {
  font-size: 62.5%; /* 1rem = 10px */
  --primary-bg: #1B263B;
  --secondary-bg: #0F1419;
  --accent-gold: #BDB76B;
  --text-light: #C0C0C0;
  --text-white: #FFFFFF;
  --border-color: #2A3441;
  --hover-gold: #D4C570;
  --shadow-dark: rgba(0, 0, 0, 0.3);
  --gradient-gold: linear-gradient(135deg, #BDB76B 0%, #D4C570 100%);
  --gradient-dark: linear-gradient(135deg, #1B263B 0%, #0F1419 100%);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--text-light);
  background: var(--gradient-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography */
h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px var(--shadow-dark);
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* Layout containers */
.container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

/* Header and Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--gradient-dark);
  border-bottom: 2px solid var(--accent-gold);
  box-shadow: 0 2px 10px var(--shadow-dark);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 430px;
  margin: 0 auto;
}

.logo-section {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-white);
}

.logo-img {
  width: 3.2rem;
  height: 3.2rem;
  margin-right: 0.8rem;
  border-radius: 0.4rem;
}

.site-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-btn {
  padding: 0.6rem 1.2rem;
  background: var(--gradient-gold);
  color: var(--primary-bg);
  text-decoration: none;
  border-radius: 0.4rem;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  min-height: 4.4rem;
  min-width: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: var(--hover-gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px var(--shadow-dark);
}

.nav-toggle {
  background: transparent;
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 0.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* Mobile Navigation Menu */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-menu {
  position: fixed;
  top: 7rem;
  right: 1.5rem;
  background: var(--gradient-dark);
  border: 2px solid var(--accent-gold);
  border-radius: 0.8rem;
  padding: 2rem;
  min-width: 25rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1002;
  box-shadow: 0 10px 30px var(--shadow-dark);
}

.mobile-nav-menu.active {
  transform: translateX(0);
}

.mobile-nav-menu ul {
  list-style: none;
}

.mobile-nav-menu li {
  margin-bottom: 1rem;
}

.mobile-nav-menu a {
  display: block;
  padding: 1rem;
  color: var(--text-light);
  text-decoration: none;
  border-radius: 0.4rem;
  transition: all 0.3s ease;
  font-size: 1.4rem;
}

.mobile-nav-menu a:hover {
  background: var(--accent-gold);
  color: var(--primary-bg);
}

/* Main content */
.main-content {
  margin-top: 7rem;
  padding-bottom: 8rem;
}

/* Hero Carousel */
.hero-section {
  position: relative;
  height: 20rem;
  overflow: hidden;
  border-radius: 0.8rem;
  margin: 2rem 1.5rem;
}

.hero-carousel {
  position: relative;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.8rem;
}

.carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.carousel-indicator {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: var(--accent-gold);
  transform: scale(1.2);
}

/* Game sections */
.games-section {
  margin: 2rem 0;
}

.game-category {
  margin-bottom: 3rem;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0 1.5rem;
}

.category-icon {
  font-size: 2.4rem;
  color: var(--accent-gold);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 0 1.5rem;
}

.game-item {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.8rem;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.game-item:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-dark);
}

.game-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(189, 183, 107, 0.2), transparent);
  transition: left 0.6s ease;
}

.game-item:hover::before {
  left: 100%;
}

.game-img {
  width: 100%;
  height: 6rem;
  object-fit: cover;
  border-radius: 0.4rem;
  margin-bottom: 0.8rem;
}

.game-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-white);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Content modules */
.content-module {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.8rem;
  padding: 2rem;
  margin: 2rem 1.5rem;
}

.module-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.module-icon {
  font-size: 2.4rem;
  color: var(--accent-gold);
}

.promo-link, .promo-btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: var(--gradient-gold);
  color: var(--primary-bg);
  text-decoration: none;
  border-radius: 0.4rem;
  font-weight: 600;
  margin: 0.5rem 0.5rem 0.5rem 0;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1.3rem;
  min-height: 4.4rem;
  min-width: 4.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.promo-link:hover, .promo-btn:hover {
  background: var(--hover-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-dark);
}

/* RTP Analysis Table */
.rtp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: var(--primary-bg);
  border-radius: 0.8rem;
  overflow: hidden;
}

.rtp-table th,
.rtp-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.rtp-table th {
  background: var(--accent-gold);
  color: var(--primary-bg);
  font-weight: 600;
}

.rtp-table tr:hover {
  background: rgba(189, 183, 107, 0.1);
}

/* Footer */
.footer {
  background: var(--secondary-bg);
  border-top: 2px solid var(--accent-gold);
  padding: 3rem 0 10rem;
  margin-top: 4rem;
}

.footer-content {
  padding: 0 1.5rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-link {
  display: block;
  padding: 1rem;
  background: var(--primary-bg);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 0.4rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.footer-link:hover {
  background: var(--accent-gold);
  color: var(--primary-bg);
}

.partners-section {
  margin: 2rem 0;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}

.partner-logo {
  width: 100%;
  height: 4rem;
  object-fit: contain;
  filter: opacity(0.7);
  transition: filter 0.3s ease;
}

.partner-logo:hover {
  filter: opacity(1);
}

.copyright {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 1.2rem;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gradient-dark);
  border-top: 2px solid var(--accent-gold);
  padding: 1rem 0;
  z-index: 999;
  box-shadow: 0 -2px 10px var(--shadow-dark);
}

.bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-light);
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 0.4rem;
  min-width: 4.4rem;
  min-height: 4.4rem;
  justify-content: center;
}

.bottom-nav-item:hover {
  color: var(--accent-gold);
  background: rgba(189, 183, 107, 0.1);
}

.bottom-nav-icon {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Responsive design for larger screens */
@media (min-width: 431px) {
  .container {
    max-width: 430px;
  }
  
  .nav-container {
    max-width: 430px;
  }
  
  .bottom-nav-container {
    max-width: 430px;
  }
}

/* Loading and animation states */
body:not(.loaded) {
  overflow: hidden;
}

.loaded .game-item {
  animation: fadeInUp 0.6s ease forwards;
}

.loaded .content-module {
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states for keyboard navigation */
.nav-btn:focus,
.promo-link:focus,
.promo-btn:focus,
.game-item:focus,
.bottom-nav-item:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .header,
  .bottom-nav,
  .hero-section {
    display: none;
  }
  
  .main-content {
    margin-top: 0;
  }
} 