/**
 * Jilif Theme - Core Stylesheet
 * CSS Class Prefix: v257-
 * Color Palette: #C0C0C0 | #BDC3C7 | #141414 | #BC8F8F | #D3D3D3
 * Mobile-first responsive design (max-width: 430px viewport)
 */

/* === CSS Variables === */
:root {
  --v257-primary: #BC8F8F;
  --v257-bg-dark: #141414;
  --v257-bg-card: #1c1c1c;
  --v257-bg-section: #1a1a1a;
  --v257-text-light: #D3D3D3;
  --v257-text-muted: #BDC3C7;
  --v257-text-silver: #C0C0C0;
  --v257-accent: #BC8F8F;
  --v257-accent-hover: #c9a0a0;
  --v257-border: #2a2a2a;
  --v257-radius: 8px;
  --v257-radius-lg: 12px;
  --v257-font-base: 62.5%;
}

/* === Base Reset & Typography === */
html { font-size: var(--v257-font-base); }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: var(--v257-bg-dark);
  color: var(--v257-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--v257-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--v257-accent-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Layout Container === */
.v257-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  width: 100%;
}
.v257-wrapper {
  max-width: 430px;
  margin: 0 auto;
  width: 100%;
}
.v257-grid {
  display: grid;
  gap: 1rem;
}

/* === Header / Top Navigation === */
.v257-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--v257-border);
  height: 52px;
}
.v257-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 1rem;
}
.v257-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}
.v257-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.v257-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v257-accent);
  letter-spacing: 0.5px;
}
.v257-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.v257-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--v257-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  min-height: 34px;
  text-decoration: none;
}
.v257-btn-register {
  background: var(--v257-accent);
  color: #fff;
}
.v257-btn-register:hover {
  background: var(--v257-accent-hover);
  transform: scale(1.03);
}
.v257-btn-login {
  background: transparent;
  color: var(--v257-text-silver);
  border: 1px solid var(--v257-text-muted);
}
.v257-btn-login:hover {
  border-color: var(--v257-accent);
  color: var(--v257-accent);
}
.v257-btn-promo {
  background: linear-gradient(135deg, var(--v257-accent), #a07070);
  color: #fff;
  padding: 0.7rem 1.8rem;
  font-size: 1.3rem;
  border-radius: var(--v257-radius-lg);
}
.v257-btn-promo:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(188, 143, 143, 0.3);
}

/* === Mobile Menu === */
.v257-menu-toggle {
  background: none;
  border: none;
  color: var(--v257-text-silver);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}
#app919-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--v257-bg-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  border-left: 1px solid var(--v257-border);
}
.v257-menu-active { right: 0 !important; }
#app919-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.v257-overlay-active { opacity: 1 !important; pointer-events: auto !important; }
.v257-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--v257-text-silver);
  font-size: 2rem;
  cursor: pointer;
}
.v257-menu-link {
  display: block;
  padding: 1rem 0;
  color: var(--v257-text-light);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--v257-border);
  transition: color 0.2s;
}
.v257-menu-link:hover { color: var(--v257-accent); }

/* === Carousel / Slider === */
.v257-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--v257-radius-lg);
  margin-top: 60px;
}
.v257-slide {
  display: none;
  cursor: pointer;
  position: relative;
}
.v257-slide-active { display: block; }
.v257-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--v257-radius-lg);
}
.v257-slide-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 0;
}
.v257-slide-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--v257-border);
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.v257-indicator-active {
  background: var(--v257-accent);
  width: 20px;
  border-radius: 4px;
}

/* === Section Styling === */
.v257-section {
  padding: 2rem 0;
}
.v257-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v257-text-light);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--v257-accent);
  display: inline-block;
}
.v257-section-subtitle {
  font-size: 1.4rem;
  color: var(--v257-text-muted);
  margin-bottom: 0.8rem;
}

/* === Game Grid === */
.v257-game-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--v257-accent);
  margin: 1.5rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.v257-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.v257-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 0.4rem;
  border-radius: var(--v257-radius);
  background: var(--v257-bg-card);
}
.v257-game-item:hover {
  transform: scale(1.05);
  background: var(--v257-bg-section);
}
.v257-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--v257-radius);
  margin-bottom: 0.3rem;
}
.v257-game-name {
  font-size: 1rem;
  color: var(--v257-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* === Card Component === */
.v257-card {
  background: var(--v257-bg-card);
  border-radius: var(--v257-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--v257-border);
}
.v257-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--v257-text-light);
  margin-bottom: 0.8rem;
}

/* === Content Modules === */
.v257-content-block {
  background: var(--v257-bg-section);
  border-radius: var(--v257-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--v257-border);
}
.v257-content-block h2 {
  font-size: 1.7rem;
  color: var(--v257-accent);
  margin-bottom: 0.8rem;
}
.v257-content-block h3 {
  font-size: 1.4rem;
  color: var(--v257-text-light);
  margin: 0.8rem 0 0.4rem;
}
.v257-content-block p {
  color: var(--v257-text-muted);
  line-height: 1.6;
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}
.v257-content-block ul {
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
}
.v257-content-block li {
  color: var(--v257-text-muted);
  line-height: 1.6;
  margin-bottom: 0.3rem;
  font-size: 1.3rem;
  list-style: disc;
}

/* === Feature Grid === */
.v257-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.v257-feature-item {
  background: var(--v257-bg-card);
  border-radius: var(--v257-radius);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--v257-border);
}
.v257-feature-icon {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  color: var(--v257-accent);
}
.v257-feature-label {
  font-size: 1.1rem;
  color: var(--v257-text-muted);
}

/* === Winner Showcase === */
.v257-winner-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.v257-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  background: var(--v257-bg-card);
  border-radius: var(--v257-radius);
  border-left: 3px solid var(--v257-accent);
}
.v257-winner-name {
  font-size: 1.2rem;
  color: var(--v257-text-light);
  font-weight: 500;
}
.v257-winner-amount {
  font-size: 1.2rem;
  color: var(--v257-accent);
  font-weight: 700;
}

/* === Payment Methods === */
.v257-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.v257-payment-item {
  background: var(--v257-bg-card);
  border: 1px solid var(--v257-border);
  border-radius: var(--v257-radius);
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  color: var(--v257-text-silver);
}

/* === Testimonial === */
.v257-testimonial {
  background: var(--v257-bg-card);
  border-radius: var(--v257-radius-lg);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--v257-border);
}
.v257-testimonial-text {
  font-size: 1.2rem;
  color: var(--v257-text-muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}
.v257-testimonial-author {
  font-size: 1.1rem;
  color: var(--v257-accent);
  font-weight: 600;
}

/* === Footer === */
.v257-footer {
  background: var(--v257-bg-section);
  border-top: 1px solid var(--v257-border);
  padding: 2rem 0 1.5rem;
  margin-top: 2rem;
}
.v257-footer-brand {
  font-size: 1.2rem;
  color: var(--v257-text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.v257-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.v257-footer-link {
  background: var(--v257-bg-card);
  border: 1px solid var(--v257-border);
  border-radius: var(--v257-radius);
  padding: 0.4rem 0.8rem;
  font-size: 1.1rem;
  color: var(--v257-text-silver);
  cursor: pointer;
  transition: all 0.2s;
}
.v257-footer-link:hover {
  border-color: var(--v257-accent);
  color: var(--v257-accent);
}
.v257-footer-copy {
  font-size: 1.1rem;
  color: var(--v257-text-muted);
  text-align: center;
  opacity: 0.7;
}

/* === Bottom Navigation (Mobile) === */
.v257-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(20, 20, 20, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--v257-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.3rem;
}
.v257-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--v257-text-muted);
  padding: 0.3rem;
  position: relative;
}
.v257-bottom-nav-btn:hover,
.v257-bottom-nav-btn:active {
  color: var(--v257-accent);
  transform: scale(1.08);
}
.v257-nav-active {
  color: var(--v257-accent) !important;
}
.v257-nav-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--v257-accent);
  border-radius: 2px;
}
.v257-bottom-nav-btn .material-icons,
.v257-bottom-nav-btn .v257-nav-icon {
  font-size: 22px;
  margin-bottom: 2px;
}
.v257-bottom-nav-btn .v257-nav-icon {
  font-size: 22px;
  line-height: 1;
}
.v257-nav-label {
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
}

/* === Inline Text Link === */
.v257-text-link {
  color: var(--v257-accent);
  cursor: pointer;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.v257-text-link:hover {
  color: var(--v257-accent-hover);
}

/* === Badge === */
.v257-badge {
  display: inline-block;
  background: var(--v257-accent);
  color: #fff;
  font-size: 1rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

/* === Promo Link Styled === */
.v257-promo-text {
  color: var(--v257-accent);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}
.v257-promo-text:hover { color: var(--v257-accent-hover); }

/* === Responsive === */
@media (min-width: 769px) {
  .v257-bottom-nav { display: none; }
  .v257-header-inner { max-width: 600px; }
  .v257-container { max-width: 600px; }
}
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  .v257-game-grid { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
}
@media (max-width: 360px) {
  .v257-game-grid { grid-template-columns: repeat(3, 1fr); }
}
