/*
 * 9999onlinecheck Core CSS Layout
 * All classes use prefix "pg2e-" for namespace isolation
 * Mobile-first design with max-width 430px
 */

/* CSS Variables */
:root {
  --pg2e-primary: #FFA500;
  --pg2e-bg: #0C0C0C;
  --pg2e-bg-light: #1A1A1A;
  --pg2e-accent: #E65100;
  --pg2e-highlight: #FFEB3B;
  --pg2e-text: #FFFFFF;
  --pg2e-text-muted: #B0B0B0;
  --pg2e-card-bg: #141414;
  --pg2e-border: #2A2A2A;
  --pg2e-success: #4CAF50;
  --pg2e-radius: 8px;
  --pg2e-radius-lg: 12px;
  --pg2e-header-h: 56px;
  --pg2e-bottom-nav-h: 60px;
  --pg2e-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--pg2e-font);
  background: var(--pg2e-bg);
  color: var(--pg2e-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: var(--pg2e-primary);
}

ul, ol {
  list-style: none;
}

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

.pg2e-wrapper {
  width: 100%;
  overflow-x: hidden;
}

/* Header */
.pg2e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0C0C0C 0%, #1A1A1A 100%);
  border-bottom: 2px solid var(--pg2e-primary);
  height: var(--pg2e-header-h);
}

.pg2e-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.2rem;
}

.pg2e-logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pg2e-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.pg2e-logo-area span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pg2e-primary);
  white-space: nowrap;
}

.pg2e-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg2e-btn-register {
  background: linear-gradient(135deg, var(--pg2e-primary), var(--pg2e-accent));
  color: #000;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: var(--pg2e-radius);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  min-height: 36px;
  min-width: 44px;
}

.pg2e-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255,165,0,0.5);
}

.pg2e-btn-login {
  background: transparent;
  color: var(--pg2e-primary);
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0.6rem 1.2rem;
  border: 1.5px solid var(--pg2e-primary);
  border-radius: var(--pg2e-radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  min-height: 36px;
  min-width: 44px;
}

.pg2e-btn-login:hover {
  background: var(--pg2e-primary);
  color: #000;
}

.pg2e-menu-toggle {
  background: none;
  border: none;
  color: var(--pg2e-primary);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.pg2e-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg, #111 0%, #0C0C0C 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.pg2e-menu-active {
  right: 0;
}

.pg2e-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.pg2e-overlay-active {
  opacity: 1;
  visibility: visible;
}

.pg2e-menu-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--pg2e-text);
  font-size: 2.4rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

.pg2e-menu-links {
  margin-top: 3rem;
}

.pg2e-menu-links a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0;
  color: var(--pg2e-text);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--pg2e-border);
  transition: color 0.2s;
}

.pg2e-menu-links a:hover {
  color: var(--pg2e-primary);
}

.pg2e-menu-links a .material-icons,
.pg2e-menu-links a ion-icon {
  font-size: 2rem;
  color: var(--pg2e-primary);
}

/* Main Content */
main {
  padding-top: calc(var(--pg2e-header-h) + 0.8rem);
  min-height: 100vh;
}

/* Carousel */
.pg2e-carousel {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: var(--pg2e-radius-lg);
  margin-bottom: 1.5rem;
}

.pg2e-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.pg2e-slide-active {
  opacity: 1;
}

.pg2e-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg2e-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.pg2e-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.pg2e-dot-active {
  background: var(--pg2e-primary);
}

/* Section Headings */
.pg2e-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg2e-primary);
  margin: 2rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--pg2e-accent);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg2e-section-title .material-icons,
.pg2e-section-title ion-icon {
  font-size: 2.2rem;
}

h1.pg2e-main-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pg2e-highlight);
  margin: 1.5rem 0 1rem;
  line-height: 2.4rem;
}

h2.pg2e-subtitle {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg2e-primary);
  margin: 1.5rem 0 0.8rem;
}

h3.pg2e-subtitle-sm {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--pg2e-text);
  margin: 1.2rem 0 0.6rem;
}

/* Game Grid */
.pg2e-category-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pg2e-highlight);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--pg2e-primary);
}

.pg2e-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.pg2e-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s;
  min-height: 90px;
}

.pg2e-game-card:hover {
  transform: translateY(-3px);
}

.pg2e-game-card img {
  width: 60px;
  height: 60px;
  border-radius: var(--pg2e-radius);
  object-fit: cover;
  border: 1.5px solid var(--pg2e-border);
  margin-bottom: 0.4rem;
}

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

/* Content Cards */
.pg2e-card {
  background: var(--pg2e-card-bg);
  border: 1px solid var(--pg2e-border);
  border-radius: var(--pg2e-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}

.pg2e-card-highlight {
  border-left: 3px solid var(--pg2e-primary);
}

/* Text Styles */
.pg2e-text {
  color: var(--pg2e-text-muted);
  line-height: 1.8rem;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.pg2e-text strong, .pg2e-text b {
  color: var(--pg2e-primary);
}

.pg2e-link {
  color: var(--pg2e-primary);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.pg2e-link:hover {
  color: var(--pg2e-highlight);
}

/* Promo Buttons */
.pg2e-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pg2e-primary), var(--pg2e-accent));
  color: #000;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 0.8rem 2rem;
  border-radius: var(--pg2e-radius);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  border: none;
  text-align: center;
}

.pg2e-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(255,165,0,0.4);
}

/* Bottom Navigation */
.pg2e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--pg2e-bottom-nav-h);
  background: linear-gradient(180deg, #1A1A1A 0%, #0C0C0C 100%);
  border-top: 2px solid var(--pg2e-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.4rem;
}

.pg2e-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--pg2e-text-muted);
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  padding: 0.4rem;
  gap: 0.2rem;
}

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

.pg2e-bottom-nav-btn.pg2e-btn-touch {
  transform: scale(0.92);
}

.pg2e-bottom-nav-btn ion-icon,
.pg2e-bottom-nav-btn .material-icons,
.pg2e-bottom-nav-btn i {
  font-size: 22px;
}

.pg2e-bottom-nav-btn span,
.pg2e-bottom-nav-btn .pg2e-nav-label {
  font-size: 1rem;
  line-height: 1.2rem;
  white-space: nowrap;
}

/* Footer */
.pg2e-footer {
  background: var(--pg2e-bg-light);
  padding: 2rem 1.2rem 1rem;
  border-top: 1px solid var(--pg2e-border);
}

.pg2e-footer-inner {
  max-width: 430px;
  margin: 0 auto;
}

.pg2e-footer-brand {
  color: var(--pg2e-text-muted);
  font-size: 1.2rem;
  line-height: 1.6rem;
  margin-bottom: 1.5rem;
}

.pg2e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.pg2e-footer-links a {
  color: var(--pg2e-primary);
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255,165,0,0.1);
  border-radius: var(--pg2e-radius);
  transition: background 0.2s;
}

.pg2e-footer-links a:hover {
  background: rgba(255,165,0,0.25);
}

.pg2e-footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.pg2e-footer-partners span {
  font-size: 1rem;
  color: var(--pg2e-text-muted);
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--pg2e-border);
  border-radius: 4px;
}

.pg2e-copyright {
  text-align: center;
  color: var(--pg2e-text-muted);
  font-size: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pg2e-border);
}

/* Mobile Content Padding */
@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}

/* Desktop: hide bottom nav, adjust layout */
@media (min-width: 769px) {
  .pg2e-bottom-nav {
    display: none;
  }
  .pg2e-container {
    max-width: 430px;
  }
}

/* Utility Classes */
.pg2e-mb-1 { margin-bottom: 0.8rem; }
.pg2e-mb-2 { margin-bottom: 1.6rem; }
.pg2e-mt-1 { margin-top: 0.8rem; }
.pg2e-mt-2 { margin-top: 1.6rem; }
.pg2e-text-center { text-align: center; }
.pg2e-text-primary { color: var(--pg2e-primary); }
.pg2e-text-highlight { color: var(--pg2e-highlight); }
.pg2e-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ Styles */
.pg2e-faq-item {
  background: var(--pg2e-card-bg);
  border: 1px solid var(--pg2e-border);
  border-radius: var(--pg2e-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.pg2e-faq-q {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--pg2e-highlight);
  margin-bottom: 0.5rem;
}

.pg2e-faq-a {
  font-size: 1.2rem;
  color: var(--pg2e-text-muted);
  line-height: 1.7rem;
}

/* Feature Grid */
.pg2e-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pg2e-feature-item {
  background: var(--pg2e-card-bg);
  border: 1px solid var(--pg2e-border);
  border-radius: var(--pg2e-radius);
  padding: 1.2rem;
  text-align: center;
}

.pg2e-feature-item i,
.pg2e-feature-item .material-icons,
.pg2e-feature-item ion-icon {
  font-size: 2.4rem;
  color: var(--pg2e-primary);
  margin-bottom: 0.5rem;
}

.pg2e-feature-item p {
  font-size: 1.2rem;
  color: var(--pg2e-text-muted);
}

/* Winner List */
.pg2e-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--pg2e-border);
}

.pg2e-winner-name {
  font-size: 1.2rem;
  color: var(--pg2e-text);
  font-weight: 600;
}

.pg2e-winner-amount {
  font-size: 1.3rem;
  color: var(--pg2e-primary);
  font-weight: 700;
}

/* Payment Methods */
.pg2e-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.pg2e-payment-item {
  background: var(--pg2e-card-bg);
  border: 1px solid var(--pg2e-border);
  border-radius: var(--pg2e-radius);
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  color: var(--pg2e-text-muted);
}

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

.pg2e-rtp-table th {
  background: var(--pg2e-accent);
  color: #000;
  padding: 0.6rem;
  text-align: left;
  font-weight: 600;
}

.pg2e-rtp-table td {
  padding: 0.6rem;
  border-bottom: 1px solid var(--pg2e-border);
  color: var(--pg2e-text-muted);
}

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

/* Divider */
.pg2e-divider {
  border: none;
  border-top: 1px solid var(--pg2e-border);
  margin: 1.5rem 0;
}

/* Responsive carousel */
@media (max-width: 360px) {
  .pg2e-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pg2e-carousel {
    height: 150px;
  }
}
