/**
 * Lucky Game - Main CSS File
 * All classes use prefix: s95e-
 * Color scheme: #0A0A0A | #95A5A6 | #778899 | #808080
 * Mobile-first responsive design
 */

/* ===== CSS Variables ===== */
:root {
  --s95e-primary: #0A0A0A;
  --s95e-secondary: #95A5A6;
  --s95e-tertiary: #778899;
  --s95e-quaternary: #808080;
  --s95e-bg-dark: #0A0A0A;
  --s95e-bg-medium: #1a1a1a;
  --s95e-bg-light: #2a2a2a;
  --s95e-text-light: #95A5A6;
  --s95e-text-medium: #778899;
  --s95e-text-dark: #808080;
  --s95e-accent: #95A5A6;
  --s95e-border: #333;
  --s95e-shadow: rgba(10, 10, 10, 0.5);
  --s95e-transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--s95e-text-light);
  background: var(--s95e-bg-dark);
  overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--s95e-secondary);
}

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: 1.5rem;
  line-height: 1.6;
}

a {
  color: var(--s95e-accent);
  text-decoration: none;
  transition: var(--s95e-transition);
}

a:hover {
  color: var(--s95e-secondary);
  text-decoration: underline;
}

/* ===== Header ===== */
.s95e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--s95e-bg-dark) 0%, rgba(10, 10, 10, 0.95) 100%);
  border-bottom: 1px solid var(--s95e-border);
  padding: 1rem 0;
  transition: var(--s95e-transition);
}

.s95e-header-scrolled {
  box-shadow: 0 2px 10px var(--s95e-shadow);
  background: var(--s95e-bg-dark);
}

.s95e-header-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.s95e-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.s95e-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.s95e-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s95e-secondary);
}

.s95e-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.s95e-btn {
  padding: 0.8rem 1.6rem;
  border-radius: 0.5rem;
  border: none;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--s95e-transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.s95e-btn-primary {
  background: var(--s95e-secondary);
  color: var(--s95e-bg-dark);
}

.s95e-btn-primary:hover {
  background: var(--s95e-tertiary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

.s95e-btn-secondary {
  background: transparent;
  color: var(--s95e-secondary);
  border: 1px solid var(--s95e-secondary);
}

.s95e-btn-secondary:hover {
  background: var(--s95e-secondary);
  color: var(--s95e-bg-dark);
}

.s95e-menu-toggle {
  background: none;
  border: none;
  font-size: 2.4rem;
  color: var(--s95e-secondary);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
}

/* ===== Mobile Menu ===== */
.s95e-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.8);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--s95e-transition);
}

.s95e-overlay-active {
  opacity: 1;
  visibility: visible;
}

.s95e-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background: var(--s95e-bg-medium);
  z-index: 9999;
  overflow-y: auto;
  transition: right 0.3s ease;
  box-shadow: -2px 0 10px var(--s95e-shadow);
}

.s95e-menu-active {
  right: 0;
}

.s95e-menu-header {
  padding: 2rem;
  border-bottom: 1px solid var(--s95e-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.s95e-menu-close {
  background: none;
  border: none;
  font-size: 2.4rem;
  color: var(--s95e-secondary);
  cursor: pointer;
}

.s95e-menu-nav {
  padding: 2rem 0;
}

.s95e-menu-link {
  display: block;
  padding: 1.2rem 2rem;
  color: var(--s95e-text-light);
  font-size: 1.5rem;
  transition: var(--s95e-transition);
  border-left: 3px solid transparent;
}

.s95e-menu-link:hover {
  background: var(--s95e-bg-light);
  border-left-color: var(--s95e-secondary);
  text-decoration: none;
  color: var(--s95e-secondary);
}

/* ===== Main Content ===== */
.s95e-main {
  padding-top: 6rem;
  padding-bottom: 8rem;
  min-height: 100vh;
}

.s95e-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.s95e-section {
  padding: 3rem 0;
}

.s95e-section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2.4rem;
  color: var(--s95e-secondary);
}

/* ===== Carousel ===== */
.s95e-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.s95e-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.s95e-slide-active {
  opacity: 1;
  z-index: 1;
}

.s95e-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Game Grid ===== */
.s95e-game-category {
  margin-bottom: 3rem;
}

.s95e-category-title {
  font-size: 2rem;
  color: var(--s95e-secondary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--s95e-border);
  text-transform: capitalize;
}

.s95e-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.s95e-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--s95e-transition);
}

.s95e-game-item:hover {
  transform: translateY(-3px);
}

.s95e-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.8rem;
  border: 1px solid var(--s95e-border);
}

.s95e-game-name {
  font-size: 1.1rem;
  color: var(--s95e-text-light);
  text-align: center;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Bottom Navigation ===== */
.s95e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(0deg, var(--s95e-bg-dark) 0%, rgba(10, 10, 10, 0.98) 100%);
  border-top: 1px solid var(--s95e-border);
  padding: 0.8rem 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  box-shadow: 0 -2px 10px var(--s95e-shadow);
}

.s95e-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 60px;
  min-height: 48px;
  justify-content: center;
  color: var(--s95e-text-dark);
  transition: var(--s95e-transition);
  padding: 0.5rem;
}

.s95e-nav-item:hover,
.s95e-nav-active {
  color: var(--s95e-secondary);
  text-decoration: none;
}

.s95e-nav-icon {
  font-size: 2.2rem;
}

.s95e-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .s95e-bottom-nav {
    display: none;
  }
  .s95e-main {
    padding-bottom: 3rem;
  }
}

/* ===== Footer ===== */
.s95e-footer {
  background: var(--s95e-bg-medium);
  padding: 3rem 0 8rem;
  border-top: 1px solid var(--s95e-border);
}

.s95e-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.s95e-footer-section {
  margin-bottom: 2rem;
}

.s95e-footer-title {
  font-size: 1.6rem;
  color: var(--s95e-secondary);
  margin-bottom: 1rem;
}

.s95e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.s95e-footer-link {
  color: var(--s95e-text-light);
  font-size: 1.3rem;
}

.s95e-partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.s95e-partner-img {
  width: 100%;
  height: auto;
  opacity: 0.7;
  transition: var(--s95e-transition);
  filter: grayscale(100%);
}

.s95e-partner-img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.s95e-copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--s95e-border);
  color: var(--s95e-text-dark);
  font-size: 1.2rem;
}

/* ===== Cards ===== */
.s95e-card {
  background: var(--s95e-bg-medium);
  border: 1px solid var(--s95e-border);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.s95e-card-title {
  font-size: 1.8rem;
  color: var(--s95e-secondary);
  margin-bottom: 1rem;
}

.s95e-card-text {
  color: var(--s95e-text-light);
  line-height: 1.6;
}

/* ===== Accordion ===== */
.s95e-accordion {
  margin-bottom: 2rem;
}

.s95e-accordion-item {
  background: var(--s95e-bg-medium);
  border: 1px solid var(--s95e-border);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.s95e-accordion-header {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--s95e-secondary);
  font-weight: 600;
  transition: var(--s95e-transition);
}

.s95e-accordion-header:hover {
  background: var(--s95e-bg-light);
}

.s95e-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.s95e-accordion-body {
  padding: 0 1.5rem 1.5rem;
  color: var(--s95e-text-light);
  line-height: 1.6;
}

.s95e-accordion-active .s95e-accordion-header {
  background: var(--s95e-bg-light);
}

/* ===== Notification ===== */
.s95e-notification {
  position: fixed;
  top: 8rem;
  right: -300px;
  background: var(--s95e-secondary);
  color: var(--s95e-bg-dark);
  padding: 1.5rem 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px var(--s95e-shadow);
  z-index: 10000;
  transition: right 0.3s ease;
  max-width: 300px;
}

.s95e-notification-show {
  right: 2rem;
}

/* ===== Utilities ===== */
.s95e-text-center { text-align: center; }
.s95e-text-left { text-align: left; }
.s95e-text-right { text-align: right; }
.s95e-mb-1 { margin-bottom: 1rem; }
.s95e-mb-2 { margin-bottom: 2rem; }
.s95e-mb-3 { margin-bottom: 3rem; }
.s95e-mt-1 { margin-top: 1rem; }
.s95e-mt-2 { margin-top: 2rem; }
.s95e-mt-3 { margin-top: 3rem; }
.s95e-p-1 { padding: 1rem; }
.s95e-p-2 { padding: 2rem; }
.s95e-p-3 { padding: 3rem; }

/* ===== Responsive ===== */
@media (max-width: 430px) {
  html { font-size: 60%; }
  .s95e-game-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 431px) and (max-width: 768px) {
  .s95e-container { max-width: 600px; }
  .s95e-game-grid { grid-template-columns: repeat(5, 1fr); }
}
