/**
 * PAGCOR Games - Layout Stylesheet
 * All classes use v022- prefix for namespace isolation
 * Color Palette: #00BFFF | #FF1493 | #D3D3D3 | #FF7F50 | #0E1621 | #00FF7F
 */

/* CSS Variables */
:root {
  --v022-primary: #00BFFF;
  --v022-accent: #FF1493;
  --v022-light: #D3D3D3;
  --v022-warm: #FF7F50;
  --v022-bg: #0E1621;
  --v022-success: #00FF7F;
  --v022-bg-card: #141e2e;
  --v022-bg-dark: #0a1018;
  --v022-text: #f0f4f8;
  --v022-text-muted: #8899aa;
  --v022-border: #1e2d40;
  --v022-radius: 8px;
  --v022-radius-lg: 12px;
  --v022-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --v022-header-h: 56px;
  --v022-bottom-h: 60px;
  font-size: 62.5%;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--v022-bg);
  color: var(--v022-text);
  font-size: 1.6rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--v022-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--v022-success); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Container */
.v022-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; width: 100%; }
.v022-wrapper { padding-top: var(--v022-header-h); }

/* Header */
.v022-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, #0E1621 0%, #1a2840 100%);
  border-bottom: 1px solid var(--v022-border);
  height: var(--v022-header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem;
  backdrop-filter: blur(10px);
}
.v022-logo-area { display: flex; align-items: center; gap: 0.6rem; }
.v022-logo-area img { width: 28px; height: 28px; border-radius: 6px; }
.v022-logo-area span { font-size: 1.5rem; font-weight: 700; color: var(--v022-primary); white-space: nowrap; }
.v022-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.v022-btn-register {
  background: linear-gradient(135deg, var(--v022-accent), #ff4081);
  color: #fff; border: none; padding: 0.6rem 1.2rem; border-radius: 20px;
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.v022-btn-register:hover { transform: scale(1.05); box-shadow: 0 2px 10px rgba(255,20,147,0.4); }
.v022-btn-login {
  background: transparent; color: var(--v022-primary); border: 1px solid var(--v022-primary);
  padding: 0.55rem 1rem; border-radius: 20px;
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.v022-btn-login:hover { background: var(--v022-primary); color: var(--v022-bg); }
.v022-menu-toggle {
  background: none; border: none; color: var(--v022-text);
  font-size: 2.2rem; cursor: pointer; padding: 0 0.4rem; line-height: 1;
}

/* Mobile Menu */
.v022-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.v022-overlay-active { opacity: 1; visibility: visible; }
.v022-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--v022-bg-dark); z-index: 9999;
  transition: right 0.3s ease; overflow-y: auto;
  padding: 2rem 1.5rem; border-left: 1px solid var(--v022-border);
}
.v022-menu-active { right: 0; }
.v022-mobile-menu a {
  display: block; padding: 1rem 0; color: var(--v022-text);
  border-bottom: 1px solid var(--v022-border); font-size: 1.4rem;
}
.v022-mobile-menu a:hover { color: var(--v022-primary); padding-left: 0.5rem; }
.v022-menu-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: var(--v022-text);
  font-size: 2rem; cursor: pointer;
}

/* Carousel */
.v022-carousel { position: relative; overflow: hidden; border-radius: var(--v022-radius-lg); margin: 1.2rem 0; }
.v022-slide {
  display: none; width: 100%; aspect-ratio: 16/9;
  object-fit: cover; border-radius: var(--v022-radius-lg); cursor: pointer;
}
.v022-slide-active { display: block; }
.v022-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.v022-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer; border: none;
  transition: background 0.3s;
}
.v022-dot-active { background: var(--v022-primary); width: 20px; border-radius: 4px; }

/* Sections */
.v022-section { padding: 2rem 0; }
.v022-section-title {
  font-size: 2rem; font-weight: 700; margin-bottom: 1rem;
  color: var(--v022-primary); position: relative; padding-left: 1.2rem;
}
.v022-section-title::before {
  content: ''; position: absolute; left: 0; top: 0.2rem;
  width: 4px; height: 2rem; background: var(--v022-accent); border-radius: 2px;
}
.v022-section-subtitle {
  font-size: 1.4rem; color: var(--v022-text-muted); margin-bottom: 1.2rem;
}

/* Game Grid */
.v022-category-label {
  font-size: 1.5rem; font-weight: 700; color: var(--v022-warm);
  margin: 1.5rem 0 0.8rem; padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--v022-warm);
  display: inline-block;
}
.v022-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.v022-game-item {
  text-align: center; cursor: pointer;
  transition: transform 0.15s;
  background: var(--v022-bg-card); border-radius: var(--v022-radius);
  padding: 0.6rem 0.3rem; border: 1px solid var(--v022-border);
}
.v022-game-item:hover { transform: translateY(-2px); border-color: var(--v022-primary); }
.v022-game-item img {
  width: 60px; height: 60px; border-radius: 10px;
  margin: 0 auto 0.3rem; object-fit: cover;
}
.v022-game-item span {
  font-size: 1rem; color: var(--v022-text); display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Cards */
.v022-card {
  background: var(--v022-bg-card); border-radius: var(--v022-radius-lg);
  padding: 1.5rem; border: 1px solid var(--v022-border);
  margin-bottom: 1.2rem;
}
.v022-card-title {
  font-size: 1.6rem; font-weight: 700; color: var(--v022-primary);
  margin-bottom: 0.8rem;
}
.v022-card p { font-size: 1.3rem; color: var(--v022-text-muted); line-height: 1.6; }

/* Promo Button */
.v022-promo-btn {
  display: inline-block; background: linear-gradient(135deg, var(--v022-accent), var(--v022-warm));
  color: #fff; padding: 1rem 2.5rem; border-radius: 30px;
  font-size: 1.5rem; font-weight: 700; cursor: pointer;
  border: none; text-align: center;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(255,20,147,0.3);
}
.v022-promo-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(255,20,147,0.5); }
.v022-promo-link {
  color: var(--v022-warm); font-weight: 700;
  text-decoration: underline; cursor: pointer;
}

/* Stats Grid */
.v022-stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.v022-stat-item {
  background: var(--v022-bg-card); border-radius: var(--v022-radius);
  padding: 1rem; text-align: center; border: 1px solid var(--v022-border);
}
.v022-stat-value { font-size: 2rem; font-weight: 800; color: var(--v022-success); }
.v022-stat-label { font-size: 1.1rem; color: var(--v022-text-muted); margin-top: 0.2rem; }

/* Testimonials */
.v022-testimonial {
  background: var(--v022-bg-card); border-radius: var(--v022-radius-lg);
  padding: 1.2rem; margin-bottom: 0.8rem;
  border-left: 3px solid var(--v022-primary);
}
.v022-testimonial-text { font-size: 1.3rem; color: var(--v022-text); font-style: italic; }
.v022-testimonial-author { font-size: 1.1rem; color: var(--v022-text-muted); margin-top: 0.4rem; }

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

/* Winner list */
.v022-winner-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0; border-bottom: 1px solid var(--v022-border);
}
.v022-winner-name { color: var(--v022-primary); font-weight: 600; font-size: 1.3rem; }
.v022-winner-game { color: var(--v022-text-muted); font-size: 1.1rem; }
.v022-winner-amount { color: var(--v022-success); font-weight: 700; font-size: 1.4rem; }

/* Footer */
.v022-footer {
  background: var(--v022-bg-dark); border-top: 1px solid var(--v022-border);
  padding: 2rem 1.2rem 3rem;
}
.v022-footer-brand { font-size: 1.3rem; color: var(--v022-text-muted); margin-bottom: 1.2rem; line-height: 1.6; }
.v022-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;
}
.v022-footer-links a {
  background: var(--v022-bg-card); padding: 0.5rem 1rem; border-radius: 15px;
  font-size: 1.1rem; color: var(--v022-text); border: 1px solid var(--v022-border);
}
.v022-footer-links a:hover { border-color: var(--v022-primary); color: var(--v022-primary); }
.v022-footer-copy {
  font-size: 1.1rem; color: var(--v022-text-muted); text-align: center;
  padding-top: 1rem; border-top: 1px solid var(--v022-border);
}

/* Bottom Navigation */
.v022-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #141e2e 0%, #0a1018 100%);
  border-top: 1px solid var(--v022-border);
  height: var(--v022-bottom-h);
  display: flex; justify-content: space-around; align-items: center;
  padding: 0 0.5rem;
}
.v022-bottom-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 52px; background: none; border: none;
  color: var(--v022-text-muted); cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  padding: 0.3rem;
}
.v022-bottom-btn:hover, .v022-bottom-btn:focus { color: var(--v022-primary); transform: scale(1.1); }
.v022-bottom-btn i, .v022-bottom-btn .material-icons-outlined {
  font-size: 22px; margin-bottom: 2px;
}
.v022-bottom-btn span {
  font-size: 1rem; white-space: nowrap;
}
.v022-bottom-btn-active { color: var(--v022-accent) !important; }
.v022-bottom-btn-active i, .v022-bottom-btn-active .material-icons-outlined {
  color: var(--v022-accent);
}

/* FAQ Accordion */
.v022-faq-item { border-bottom: 1px solid var(--v022-border); }
.v022-faq-q {
  padding: 1rem 0; font-weight: 600; color: var(--v022-text);
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; font-size: 1.35rem;
}
.v022-faq-q::after { content: '+'; color: var(--v022-primary); font-size: 1.8rem; line-height: 1; }
.v022-faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  color: var(--v022-text-muted); font-size: 1.3rem; line-height: 1.6;
}
.v022-faq-a-open { max-height: 500px; padding-bottom: 1rem; }

/* Content typography */
.v022-content-text { font-size: 1.35rem; color: var(--v022-text-muted); line-height: 1.6; margin-bottom: 1rem; }
.v022-content-text strong { color: var(--v022-text); }
.v022-highlight { color: var(--v022-warm); font-weight: 600; }
.v022-tag {
  display: inline-block; background: rgba(0,191,255,0.15); color: var(--v022-primary);
  padding: 0.3rem 0.8rem; border-radius: 12px; font-size: 1.1rem; margin: 0.2rem;
}

/* H1 styling */
.v022-h1 {
  font-size: 2.2rem; font-weight: 800; line-height: 1.3;
  background: linear-gradient(90deg, var(--v022-primary), var(--v022-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 1rem;
}
.v022-h2 {
  font-size: 1.8rem; font-weight: 700; color: var(--v022-primary);
  margin: 1.5rem 0 0.8rem;
}
.v022-h3 {
  font-size: 1.5rem; font-weight: 600; color: var(--v022-warm);
  margin: 1.2rem 0 0.6rem;
}

/* Utility */
.v022-text-center { text-align: center; }
.v022-mt-1 { margin-top: 0.8rem; }
.v022-mt-2 { margin-top: 1.5rem; }
.v022-mb-1 { margin-bottom: 0.8rem; }
.v022-mb-2 { margin-bottom: 1.5rem; }

/* Desktop: hide bottom nav, adjust layout */
@media (min-width: 769px) {
  .v022-bottom-nav { display: none; }
  .v022-container { max-width: 430px; }
}
/* Mobile: add bottom padding for fixed nav */
@media (max-width: 768px) {
  .v022-wrapper { padding-bottom: 80px; }
  .v022-footer { padding-bottom: 80px; }
}
