/**
 * JilievoAPK - Core Design Stylesheet
 * All classes use g329- prefix for namespace isolation
 * Color palette: #6C757D | #1A1A2E | #880E4F | #FFB3FF
 * Mobile-first responsive design (max-width: 430px base)
 */

/* CSS Variables */
:root {
  --g329-primary: #880E4F;
  --g329-secondary: #6C757D;
  --g329-bg-dark: #1A1A2E;
  --g329-bg-card: #2A2A42;
  --g329-bg-section: #1E1E36;
  --g329-accent: #FFB3FF;
  --g329-text-light: #F0E6F6;
  --g329-text-muted: #B0A8BA;
  --g329-text-white: #FFFFFF;
  --g329-border: #3A3A5C;
  --g329-success: #4CAF50;
  --g329-warning: #FF9800;
  --g329-gold: #FFD700;
  --g329-radius: 8px;
  --g329-radius-lg: 16px;
  --g329-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --g329-header-h: 56px;
  --g329-bottom-nav-h: 60px;
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--g329-bg-dark);
  color: var(--g329-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--g329-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.g329-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
}

/* Header */
.g329-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--g329-header-h);
  background: linear-gradient(135deg, var(--g329-bg-dark) 0%, #2D1B3D 100%);
  border-bottom: 1px solid var(--g329-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.g329-header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.g329-header-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.g329-header-logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--g329-accent);
  letter-spacing: 0.5px;
}

.g329-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.g329-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: var(--g329-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  min-height: 36px;
  min-width: 44px;
  text-decoration: none;
}

.g329-btn:hover { text-decoration: none; transform: scale(1.03); }
.g329-btn:active { transform: scale(0.97); }

.g329-btn-register {
  background: linear-gradient(135deg, var(--g329-primary), #B0156A);
  color: var(--g329-text-white);
  box-shadow: 0 2px 8px rgba(136, 14, 79, 0.4);
}

.g329-btn-login {
  background: transparent;
  color: var(--g329-accent);
  border: 1.5px solid var(--g329-accent);
}

.g329-btn-promo {
  background: linear-gradient(135deg, #FF6B35, #FFB3FF);
  color: var(--g329-bg-dark);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.g329-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  min-width: 36px;
  align-items: center;
}

.g329-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--g329-accent);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.g329-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, var(--g329-bg-dark), #1E0E2E);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 70px 20px 30px;
  overflow-y: auto;
}

.g329-menu-active { right: 0 !important; }

.g329-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  display: none;
}

.g329-overlay-active { display: block; }

.g329-mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--g329-text-light);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--g329-border);
}

.g329-mobile-menu a:hover {
  color: var(--g329-accent);
  text-decoration: none;
}

/* Main content */
main {
  padding-top: var(--g329-header-h);
  min-height: 100vh;
}

/* Carousel */
.g329-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--g329-radius-lg);
  margin: 12px 0;
}

.g329-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.g329-carousel-slide {
  min-width: 100%;
  cursor: pointer;
}

.g329-carousel-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--g329-radius-lg);
}

.g329-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
}

.g329-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--g329-secondary);
  cursor: pointer;
  transition: background 0.3s ease;
}

.g329-dot-active { background: var(--g329-accent); }

/* Section */
.g329-section {
  padding: 16px 0;
}

.g329-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g329-text-white);
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--g329-primary);
}

.g329-section-title span {
  color: var(--g329-accent);
}

/* Game Grid */
.g329-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 4px 0;
}

.g329-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease;
}

.g329-game-item:hover { transform: translateY(-2px); }

.g329-game-item img {
  width: 72px;
  height: 72px;
  border-radius: var(--g329-radius);
  margin-bottom: 4px;
  border: 1px solid var(--g329-border);
  object-fit: cover;
}

.g329-game-item span {
  font-size: 1.1rem;
  color: var(--g329-text-muted);
  line-height: 1.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Cards */
.g329-card {
  background: var(--g329-bg-card);
  border-radius: var(--g329-radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--g329-border);
}

.g329-card h3 {
  font-size: 1.6rem;
  color: var(--g329-text-white);
  margin-bottom: 8px;
}

.g329-card p {
  font-size: 1.3rem;
  color: var(--g329-text-muted);
  line-height: 1.6rem;
}

/* Promo Banner */
.g329-promo-banner {
  background: linear-gradient(135deg, var(--g329-primary), #B0156A);
  border-radius: var(--g329-radius-lg);
  padding: 16px;
  text-align: center;
  margin: 12px 0;
}

.g329-promo-banner h3 {
  color: var(--g329-text-white);
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.g329-promo-banner p {
  color: var(--g329-accent);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* Footer */
.g329-footer {
  background: linear-gradient(180deg, var(--g329-bg-section), var(--g329-bg-dark));
  padding: 24px 0 16px;
  margin-top: 20px;
  border-top: 1px solid var(--g329-border);
}

.g329-footer-brand {
  text-align: center;
  margin-bottom: 16px;
}

.g329-footer-brand p {
  font-size: 1.2rem;
  color: var(--g329-text-muted);
  line-height: 1.6rem;
  max-width: 360px;
  margin: 0 auto;
}

.g329-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.g329-footer-links a {
  font-size: 1.1rem;
  color: var(--g329-text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.g329-footer-links a:hover { color: var(--g329-accent); text-decoration: none; }

.g329-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--g329-secondary);
  padding-top: 12px;
  border-top: 1px solid var(--g329-border);
}

/* Bottom Navigation */
.g329-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--g329-bottom-nav-h);
  background: linear-gradient(180deg, #2D1B3D, var(--g329-bg-dark));
  border-top: 2px solid var(--g329-primary);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}

.g329-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all 0.2s ease;
  color: var(--g329-text-muted);
  gap: 2px;
}

.g329-bottom-nav-btn:active { transform: scale(0.92); }

.g329-bottom-nav-btn .g329-nav-icon {
  font-size: 22px;
  line-height: 1;
}

.g329-bottom-nav-btn .g329-nav-label {
  font-size: 1rem;
  line-height: 1.2rem;
  font-weight: 500;
}

.g329-bottom-nav-btn:hover,
.g329-bottom-nav-btn.g329-nav-active {
  color: var(--g329-accent);
}

.g329-bottom-nav-btn.g329-nav-active {
  position: relative;
}

.g329-bottom-nav-btn.g329-nav-active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--g329-accent);
  border-radius: 0 0 3px 3px;
}

/* Utility */
.g329-text-accent { color: var(--g329-accent); }
.g329-text-white { color: var(--g329-text-white); }
.g329-text-muted { color: var(--g329-text-muted); }
.g329-text-gold { color: var(--g329-gold); }
.g329-text-center { text-align: center; }
.g329-mt-8 { margin-top: 8px; }
.g329-mt-12 { margin-top: 12px; }
.g329-mt-16 { margin-top: 16px; }
.g329-mb-8 { margin-bottom: 8px; }
.g329-mb-12 { margin-bottom: 12px; }
.g329-mb-16 { margin-bottom: 16px; }
.g329-p-12 { padding: 12px; }
.g329-p-16 { padding: 16px; }
.g329-bold { font-weight: 700; }

/* Winner list */
.g329-winner-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.g329-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--g329-bg-section);
  border-radius: var(--g329-radius);
  font-size: 1.2rem;
}

.g329-winner-name { color: var(--g329-text-white); font-weight: 600; }
.g329-winner-game { color: var(--g329-text-muted); }
.g329-winner-amount { color: var(--g329-gold); font-weight: 700; }

/* Testimonials */
.g329-testimonial {
  background: var(--g329-bg-section);
  border-radius: var(--g329-radius-lg);
  padding: 12px;
  margin-bottom: 10px;
  border-left: 3px solid var(--g329-primary);
}

.g329-testimonial p {
  font-size: 1.3rem;
  color: var(--g329-text-muted);
  font-style: italic;
  margin-bottom: 6px;
}

.g329-testimonial cite {
  font-size: 1.1rem;
  color: var(--g329-accent);
  font-style: normal;
}

/* Payment icons */
.g329-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.g329-payment-item {
  background: var(--g329-bg-section);
  border: 1px solid var(--g329-border);
  border-radius: var(--g329-radius);
  padding: 8px 14px;
  font-size: 1.2rem;
  color: var(--g329-text-white);
  text-align: center;
}

/* RTP Table */
.g329-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}

.g329-rtp-table th {
  background: var(--g329-primary);
  color: var(--g329-text-white);
  padding: 8px 6px;
  text-align: left;
  font-size: 1.1rem;
}

.g329-rtp-table td {
  padding: 7px 6px;
  border-bottom: 1px solid var(--g329-border);
  color: var(--g329-text-muted);
}

.g329-rtp-table tr:hover td { color: var(--g329-text-light); }

/* FAQ Accordion */
.g329-faq-item {
  background: var(--g329-bg-card);
  border-radius: var(--g329-radius);
  margin-bottom: 8px;
  border: 1px solid var(--g329-border);
  overflow: hidden;
}

.g329-faq-q {
  padding: 12px;
  font-weight: 600;
  color: var(--g329-text-white);
  font-size: 1.3rem;
  cursor: pointer;
}

.g329-faq-a {
  padding: 0 12px 12px;
  font-size: 1.2rem;
  color: var(--g329-text-muted);
  line-height: 1.6rem;
}

/* Responsive */
@media (min-width: 769px) {
  .g329-bottom-nav { display: none; }
  .g329-container { max-width: 768px; }
  .g329-game-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 768px) {
  main { padding-bottom: calc(var(--g329-bottom-nav-h) + 20px); }
}

@media (max-width: 360px) {
  .g329-game-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .g329-game-item img { width: 60px; height: 60px; }
}
