/**
 * ArionPlay Casino - Layout Stylesheet
 * Version: 1.0.0
 * Prefix: w24e7-
 * All CSS classes use w24e7- prefix to avoid conflicts
 * Color Scheme: #7CFC00 | #A0522D | #8B4513 | #F5DEB3 | #1B263B
 */

/* CSS Variables with prefix */
:root {
  --w24e7-primary: #7CFC00;
  --w24e7-secondary: #A0522D;
  --w24e7-tertiary: #8B4513;
  --w24e7-light: #F5DEB3;
  --w24e7-dark: #1B263B;
  --w24e7-accent: #FFD700;
  --w24e7-bg: #0F1419;
  --w24e7-bg-light: #1A2332;
  --w24e7-text: #F5DEB3;
  --w24e7-text-secondary: #B8A88A;
  --w24e7-border: #2A3544;
  --w24e7-shadow: rgba(0, 0, 0, 0.3);
  --w24e7-transition: all 0.3s ease;
  --w24e7-header-height: 60px;
  --w24e7-bottom-nav-height: 64px;
}

/* Base reset and mobile-first settings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--w24e7-text);
  background-color: var(--w24e7-bg);
  overflow-x: hidden;
}

/* Container and layout */
.w24e7-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.w24e7-wrapper {
  width: 100%;
  overflow: hidden;
}

.w24e7-main {
  min-height: 100vh;
  padding-top: var(--w24e7-header-height);
  padding-bottom: calc(var(--w24e7-bottom-nav-height) + 2rem);
}

/* Grid system */
.w24e7-grid {
  display: grid;
  gap: 1.5rem;
}

.w24e7-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.w24e7-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.w24e7-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Header styles */
.w24e7-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--w24e7-header-height);
  background: linear-gradient(135deg, var(--w24e7-dark) 0%, var(--w24e7-bg-light) 100%);
  border-bottom: 2px solid var(--w24e7-primary);
  z-index: 1000;
  box-shadow: 0 2px 10px var(--w24e7-shadow);
}

.w24e7-header.scrolled {
  box-shadow: 0 4px 20px var(--w24e7-shadow);
  background: rgba(15, 20, 25, 0.95);
  backdrop-filter: blur(10px);
}

.w24e7-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.w24e7-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--w24e7-text);
}

.w24e7-logo-icon {
  width: 28px;
  height: 28px;
  color: var(--w24e7-primary);
  filter: drop-shadow(0 0 8px rgba(124, 252, 0, 0.4));
}

.w24e7-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--w24e7-primary), var(--w24e7-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.w24e7-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.w24e7-menu-btn {
  background: none;
  border: none;
  color: var(--w24e7-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--w24e7-transition);
}

.w24e7-menu-btn:hover {
  color: var(--w24e7-primary);
  transform: scale(1.1);
}

/* Button styles */
.w24e7-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--w24e7-transition);
  min-height: 44px;
  text-align: center;
}

.w24e7-btn-primary {
  background: linear-gradient(135deg, var(--w24e7-primary), #5FCF00);
  color: var(--w24e7-dark);
  box-shadow: 0 4px 15px rgba(124, 252, 0, 0.3);
}

.w24e7-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 252, 0, 0.4);
}

.w24e7-btn-secondary {
  background: linear-gradient(135deg, var(--w24e7-secondary), var(--w24e7-tertiary));
  color: var(--w24e7-light);
  box-shadow: 0 4px 15px rgba(160, 82, 45, 0.3);
}

.w24e7-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(160, 82, 45, 0.4);
}

.w24e7-btn-small {
  padding: 0.8rem 1.5rem;
  font-size: 1.2rem;
  min-height: 36px;
}

/* Mobile menu */
.w24e7-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--w24e7-transition);
}

.w24e7-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.w24e7-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, var(--w24e7-dark) 0%, var(--w24e7-bg-light) 100%);
  z-index: 9999;
  padding: 2rem;
  overflow-y: auto;
  transition: right 0.3s ease;
  box-shadow: -4px 0 20px var(--w24e7-shadow);
}

.w24e7-mobile-menu.active {
  right: 0;
}

.w24e7-mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--w24e7-border);
}

.w24e7-mobile-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w24e7-primary);
}

.w24e7-menu-close {
  background: none;
  border: none;
  color: var(--w24e7-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--w24e7-transition);
}

.w24e7-menu-close:hover {
  color: var(--w24e7-primary);
  transform: rotate(90deg);
}

.w24e7-nav-list {
  list-style: none;
}

.w24e7-nav-item {
  margin-bottom: 0.5rem;
}

.w24e7-nav-link {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--w24e7-text);
  text-decoration: none;
  border-radius: 8px;
  transition: var(--w24e7-transition);
  font-size: 1.4rem;
}

.w24e7-nav-link:hover,
.w24e7-nav-link.active {
  background: rgba(124, 252, 0, 0.1);
  color: var(--w24e7-primary);
  padding-left: 2rem;
}

/* Bottom navigation */
.w24e7-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--w24e7-bottom-nav-height);
  background: linear-gradient(180deg, var(--w24e7-bg-light) 0%, var(--w24e7-dark) 100%);
  border-top: 2px solid var(--w24e7-primary);
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--w24e7-shadow);
}

.w24e7-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.w24e7-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--w24e7-text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  min-width: 60px;
  min-height: 60px;
  transition: var(--w24e7-transition);
  text-decoration: none;
}

.w24e7-bottom-nav-btn:hover,
.w24e7-bottom-nav-btn.active {
  color: var(--w24e7-primary);
  transform: translateY(-2px);
}

.w24e7-bottom-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.3rem;
}

.w24e7-bottom-nav-text {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .w24e7-bottom-nav {
    display: none;
  }

  .w24e7-main {
    padding-bottom: 2rem;
  }
}

/* Card styles */
.w24e7-card {
  background: linear-gradient(135deg, var(--w24e7-bg-light), var(--w24e7-dark));
  border: 1px solid var(--w24e7-border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px var(--w24e7-shadow);
  transition: var(--w24e7-transition);
}

.w24e7-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--w24e7-shadow);
  border-color: var(--w24e7-primary);
}

/* Game item styles */
.w24e7-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--w24e7-text);
  padding: 1rem;
  border-radius: 8px;
  transition: var(--w24e7-transition);
  background: var(--w24e7-bg-light);
  border: 1px solid var(--w24e7-border);
}

.w24e7-game-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(124, 252, 0, 0.2);
  border-color: var(--w24e7-primary);
}

.w24e7-game-icon {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  margin-bottom: 0.8rem;
  object-fit: cover;
}

.w24e7-game-name {
  font-size: 1.2rem;
  text-align: center;
  font-weight: 500;
}

/* Carousel styles */
.w24e7-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.w24e7-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.w24e7-carousel-slide {
  min-width: 100%;
  cursor: pointer;
}

.w24e7-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.w24e7-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.w24e7-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(245, 222, 179, 0.4);
  border: none;
  cursor: pointer;
  transition: var(--w24e7-transition);
}

.w24e7-carousel-dot.active {
  background: var(--w24e7-primary);
  width: 30px;
  border-radius: 5px;
}

/* Section styles */
.w24e7-section {
  margin-bottom: 3rem;
}

.w24e7-section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--w24e7-primary);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.w24e7-section-title::before {
  content: '';
  width: 4px;
  height: 2.4rem;
  background: linear-gradient(180deg, var(--w24e7-primary), var(--w24e7-accent));
  border-radius: 2px;
}

/* Footer styles */
.w24e7-footer {
  background: linear-gradient(180deg, var(--w24e7-bg) 0%, var(--w24e7-dark) 100%);
  padding: 3rem 0 calc(var(--w24e7-bottom-nav-height) + 1rem);
  border-top: 2px solid var(--w24e7-primary);
}

.w24e7-footer-content {
  text-align: center;
}

.w24e7-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.w24e7-footer-link {
  color: var(--w24e7-text-secondary);
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--w24e7-transition);
}

.w24e7-footer-link:hover {
  color: var(--w24e7-primary);
}

.w24e7-partners {
  margin: 2rem 0;
}

.w24e7-partners-title {
  font-size: 1.4rem;
  color: var(--w24e7-text-secondary);
  margin-bottom: 1rem;
}

.w24e7-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.w24e7-partner-logo {
  width: 100%;
  height: auto;
  opacity: 0.6;
  transition: var(--w24e7-transition);
}

.w24e7-partner-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.w24e7-copyright {
  font-size: 1.2rem;
  color: var(--w24e7-text-secondary);
  margin-top: 2rem;
}

/* Typography */
h1 {
  font-size: 2.4rem;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--w24e7-primary);
}

h2 {
  font-size: 2rem;
  line-height: 1.4;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.6rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Utility classes */
.w24e7-text-center {
  text-align: center;
}

.w24e7-text-primary {
  color: var(--w24e7-primary);
}

.w24e7-mb-1 {
  margin-bottom: 1rem;
}

.w24e7-mb-2 {
  margin-bottom: 2rem;
}

.w24e7-mb-3 {
  margin-bottom: 3rem;
}

.w24e7-mt-1 {
  margin-top: 1rem;
}

.w24e7-mt-2 {
  margin-top: 2rem;
}

.w24e7-mt-3 {
  margin-top: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .w24e7-main {
    padding-bottom: calc(var(--w24e7-bottom-nav-height) + 2rem);
  }
}

/* Loading animation */
@keyframes w24e7-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.w24e7-loading {
  animation: w24e7-pulse 1.5s ease-in-out infinite;
}
