/**
 * PHGreat - Core Stylesheet
 * Mobile-first casino promotion site
 * All classes prefixed with pg95- for namespace isolation
 * Color palette: #FFCC02 (gold) | #0A0A0A (black) | #FF4500 (orange-red)
 */

/* ===== CSS Variables ===== */
:root {
  --pg95-primary: #FFCC02;
  --pg95-bg: #0A0A0A;
  --pg95-bg-dark: #050505;
  --pg95-text: #E0E0E0;
  --pg95-accent: #FF4500;
  --pg95-card-bg: #1a1a1a;
  --pg95-border: #333;
  --pg95-success: #28a745;
  --pg95-gold-light: #ffe566;
  --pg95-orange-dark: #cc3700;
  --pg95-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Reset & Base ===== */
html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--pg95-font);
  font-size: 1.4rem;
  line-height: 1.5rem;
  color: var(--pg95-text);
  background: var(--pg95-bg);
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

a:hover {
  text-decoration: underline;
  color: var(--pg95-gold-light);
}

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

/* ===== Header ===== */
.pg95-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: var(--pg95-bg);
  border-bottom: 2px solid var(--pg95-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
}

.pg95-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

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

.pg95-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg95-primary);
  letter-spacing: 0.5px;
}

.pg95-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pg95-btn-register,
.pg95-btn-login {
  border: none;
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 34px;
  min-width: 60px;
}

.pg95-btn-register {
  background: var(--pg95-primary);
  color: #000;
}

.pg95-btn-register:hover {
  background: var(--pg95-gold-light);
  transform: scale(1.03);
}

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

.pg95-btn-login:hover {
  background: rgba(255, 204, 2, 0.1);
}

.pg95-hamburger {
  background: none;
  border: none;
  color: var(--pg95-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Mobile Menu ===== */
.pg95-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 ease;
}

.pg95-overlay-visible {
  opacity: 1;
  pointer-events: all;
}

.pg95-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--pg95-bg-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 1.5rem 0;
}

.pg95-menu-open {
  right: 0;
}

.pg95-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid var(--pg95-border);
}

.pg95-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg95-primary);
}

.pg95-menu-close {
  background: none;
  border: none;
  color: var(--pg95-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
}

.pg95-menu-list {
  list-style: none;
  padding: 1rem 0;
  margin: 0;
}

.pg95-menu-item {
  display: block;
}

.pg95-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  color: var(--pg95-text);
  font-size: 1.4rem;
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.pg95-menu-link:hover {
  background: rgba(255, 204, 2, 0.08);
  color: var(--pg95-primary);
  border-left-color: var(--pg95-primary);
  text-decoration: none;
}

.pg95-menu-link i,
.pg95-menu-link .material-icons {
  font-size: 2rem;
  color: var(--pg95-primary);
  width: 24px;
  text-align: center;
}

/* ===== Main Content ===== */
.pg95-main {
  margin-top: 56px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* ===== Slider / Banner ===== */
.pg95-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.pg95-slider-track {
  display: flex;
  transition: transform 0.4s ease;
}

.pg95-slide {
  flex-shrink: 0;
  cursor: pointer;
}

.pg95-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.pg95-slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 5;
}

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

.pg95-dot-active {
  background: var(--pg95-primary);
  width: 22px;
  border-radius: 4px;
}

/* ===== Section Title ===== */
.pg95-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg95-primary);
  padding: 1.5rem 1rem 0.8rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg95-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.6rem;
  background: var(--pg95-accent);
  border-radius: 2px;
}

/* ===== Game Grid ===== */
.pg95-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  padding: 0.5rem 1rem;
}

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

.pg95-game-item:hover {
  transform: scale(1.05);
}

.pg95-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--pg95-card-bg);
  border: 1px solid var(--pg95-border);
}

.pg95-game-name {
  font-size: 1.05rem;
  color: var(--pg95-text);
  text-align: center;
  margin-top: 0.3rem;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Cards & Content Modules ===== */
.pg95-card {
  background: var(--pg95-card-bg);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1rem;
  border: 1px solid var(--pg95-border);
}

.pg95-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg95-primary);
  margin: 0 0 1rem 0;
}

.pg95-card p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--pg95-text);
  margin: 0 0 1rem 0;
}

/* ===== CTA Box ===== */
.pg95-cta-box {
  background: linear-gradient(135deg, var(--pg95-primary), var(--pg95-accent));
  border-radius: 12px;
  padding: 2rem 1.5rem;
  margin: 1.5rem 1rem;
  text-align: center;
}

.pg95-cta-box h2 {
  color: #000;
  font-size: 1.8rem;
  margin: 0 0 0.8rem;
}

.pg95-cta-box p {
  color: rgba(0, 0, 0, 0.8);
  font-size: 1.3rem;
  margin: 0 0 1.5rem;
}

.pg95-cta-btn {
  display: inline-block;
  background: #000;
  color: var(--pg95-primary);
  font-size: 1.5rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
}

.pg95-cta-btn:hover {
  background: var(--pg95-bg);
  transform: scale(1.05);
  text-decoration: none;
  color: var(--pg95-primary);
}

/* ===== Promo Text Link ===== */
.pg95-promo-link {
  color: var(--pg95-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.pg95-promo-link:hover {
  color: var(--pg95-primary);
}

/* ===== FAQ Section ===== */
.pg95-faq-item {
  background: var(--pg95-card-bg);
  border: 1px solid var(--pg95-border);
  border-radius: 8px;
  margin: 0.6rem 1rem;
  overflow: hidden;
}

.pg95-faq-q {
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  color: var(--pg95-primary);
  font-size: 1.35rem;
  cursor: pointer;
}

.pg95-faq-a {
  padding: 0 1.5rem 1.2rem;
  color: var(--pg95-text);
  font-size: 1.25rem;
  line-height: 1.5;
}

/* ===== Testimonials ===== */
.pg95-testimonial {
  background: var(--pg95-card-bg);
  border-radius: 10px;
  border: 1px solid var(--pg95-border);
  padding: 1.2rem;
  margin: 0.6rem 1rem;
}

.pg95-testimonial-name {
  color: var(--pg95-primary);
  font-weight: 700;
  font-size: 1.3rem;
}

.pg95-testimonial-text {
  color: var(--pg95-text);
  font-size: 1.2rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.pg95-testimonial-stars {
  color: var(--pg95-primary);
  font-size: 1.2rem;
  margin-top: 0.3rem;
}

/* ===== RTP Table ===== */
.pg95-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.pg95-rtp-table th {
  background: var(--pg95-primary);
  color: #000;
  padding: 0.8rem 0.5rem;
  text-align: left;
  font-weight: 600;
}

.pg95-rtp-table td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--pg95-border);
}

.pg95-rtp-table tr:hover td {
  background: rgba(255, 204, 2, 0.05);
}

.pg95-rtp-high {
  color: var(--pg95-success);
  font-weight: 700;
}

.pg95-rtp-med {
  color: var(--pg95-primary);
  font-weight: 600;
}

/* ===== Winners List ===== */
.pg95-winners-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pg95-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--pg95-card-bg);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--pg95-border);
}

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

.pg95-winner-game {
  color: var(--pg95-text);
  font-size: 1.1rem;
}

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

/* ===== Payment Methods ===== */
.pg95-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0.5rem 0;
}

.pg95-payment-item {
  background: var(--pg95-card-bg);
  border: 1px solid var(--pg95-border);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  color: var(--pg95-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pg95-payment-item i {
  color: var(--pg95-primary);
}

/* ===== Footer ===== */
.pg95-footer {
  background: var(--pg95-bg-dark);
  border-top: 2px solid var(--pg95-primary);
  padding: 2rem 1rem 1rem;
  margin-bottom: 60px;
}

.pg95-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pg95-footer-brand p {
  font-size: 1.2rem;
  color: #888;
  line-height: 1.5;
  margin: 0.5rem 0;
}

.pg95-footer-promos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.pg95-footer-promo-btn {
  background: var(--pg95-accent);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.pg95-footer-promo-btn:hover {
  background: var(--pg95-orange-dark);
  transform: scale(1.03);
}

.pg95-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.5rem;
  margin: 1.2rem 0;
}

.pg95-footer-links a {
  font-size: 1.15rem;
  color: #888;
  transition: color 0.2s;
}

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

.pg95-footer-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pg95-border);
}

/* ===== Bottom Navigation ===== */
.pg95-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: var(--pg95-bg-dark);
  border-top: 2px solid var(--pg95-primary);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  padding: 0;
}

.pg95-bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: #888;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  gap: 0.2rem;
  padding: 0.4rem;
}

.pg95-bnav-btn i,
.pg95-bnav-btn .material-icons,
.pg95-bnav-btn ion-icon {
  font-size: 22px;
  color: #888;
  transition: color 0.2s;
}

.pg95-bnav-btn span {
  font-size: 1rem;
  color: #888;
  transition: color 0.2s;
}

.pg95-bnav-btn:hover,
.pg95-bnav-active {
  color: var(--pg95-primary);
}

.pg95-bnav-btn:hover i,
.pg95-bnav-btn:hover .material-icons,
.pg95-bnav-btn:hover ion-icon,
.pg95-bnav-btn:hover span,
.pg95-bnav-active i,
.pg95-bnav-active .material-icons,
.pg95-bnav-active span {
  color: var(--pg95-primary);
}

.pg95-bnav-active {
  position: relative;
}

.pg95-bnav-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--pg95-primary);
  border-radius: 0 0 3px 3px;
}

/* ===== Internal Link Styling ===== */
.pg95-internal-link {
  color: var(--pg95-primary);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}

.pg95-internal-link:hover {
  color: var(--pg95-gold-light);
}

/* ===== Utility Classes ===== */
.pg95-text-center { text-align: center; }
.pg95-text-gold { color: var(--pg95-primary); }
.pg95-text-accent { color: var(--pg95-accent); }
.pg95-mt-1 { margin-top: 1rem; }
.pg95-mb-1 { margin-bottom: 1rem; }
.pg95-p-1 { padding: 1rem; }

/* ===== Desktop Hidden / Mobile Hidden ===== */
.pg95-mobile-show {
  display: block;
}

.pg95-desktop-show {
  display: none;
}

/* ===== Help Page Specific ===== */
.pg95-help-hero {
  background: linear-gradient(135deg, var(--pg95-bg-dark) 0%, var(--pg95-card-bg) 100%);
  border-bottom: 2px solid var(--pg95-primary);
  padding: 2rem 1rem;
  text-align: center;
}

.pg95-help-hero h1 {
  font-size: 2rem;
  color: var(--pg95-primary);
  margin: 0;
}

.pg95-help-hero p {
  font-size: 1.3rem;
  color: var(--pg95-text);
  margin-top: 0.5rem;
}

.pg95-help-section {
  padding: 1.5rem 1rem;
}

.pg95-help-section h2 {
  font-size: 1.6rem;
  color: var(--pg95-primary);
  margin: 0 0 1rem;
}

.pg95-help-section p,
.pg95-help-section li {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--pg95-text);
}

.pg95-help-section ul {
  padding-left: 2rem;
}

.pg95-help-section li {
  margin-bottom: 0.5rem;
}

/* ===== H1 Title ===== */
.pg95-page-h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg95-primary);
  padding: 1.5rem 1rem 0.5rem;
  margin: 0;
  line-height: 1.4;
}

/* ===== Responsive: Desktop ===== */
@media (min-width: 769px) {
  .pg95-bottom-nav {
    display: none;
  }

  .pg95-main {
    padding-bottom: 2rem;
  }

  .pg95-footer {
    margin-bottom: 0;
  }

  body {
    border-left: 1px solid var(--pg95-border);
    border-right: 1px solid var(--pg95-border);
  }
}

/* ===== Responsive: Mobile Bottom Padding ===== */
@media (max-width: 768px) {
  .pg95-main {
    padding-bottom: 80px;
  }
}

/* ===== Touch Targets ===== */
.pg95-game-item,
.pg95-bnav-btn,
.pg95-menu-link,
button,
.pg95-cta-btn {
  min-height: 44px;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--pg95-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--pg95-border);
  border-radius: 2px;
}

/* ===== Selection ===== */
::selection {
  background: var(--pg95-primary);
  color: #000;
}
