/**
 * ph365casino.click - Core Stylesheet
 * CSS class prefix: pg23-
 * Color palette: #0F0F23 (dark bg), #FFFFFF (text), #4A4A4A (secondary),
 *                #696969 (muted), #D2691E (accent), #CD853F (highlight)
 */

:root {
  --pg23-bg: #0F0F23;
  --pg23-bg-card: #1a1a35;
  --pg23-bg-card-alt: #22223d;
  --pg23-text: #FFFFFF;
  --pg23-text-secondary: #4A4A4A;
  --pg23-text-muted: #696969;
  --pg23-accent: #D2691E;
  --pg23-highlight: #CD853F;
  --pg23-accent-light: #e8943a;
  --pg23-gradient-start: #D2691E;
  --pg23-gradient-end: #CD853F;
  --pg23-radius: 12px;
  --pg23-radius-sm: 8px;
  --pg23-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --pg23-font-size-base: 62.5%;
}

html {
  font-size: var(--pg23-font-size-base);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--pg23-bg);
  color: var(--pg23-text);
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ========== HEADER ========== */
.pg23-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--pg23-bg) 0%, #1a1a35 100%);
  border-bottom: 1px solid rgba(210, 105, 30, 0.3);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  backdrop-filter: blur(10px);
}

.pg23-header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--pg23-text);
}

.pg23-header-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.pg23-header-logo span {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--pg23-accent), var(--pg23-highlight));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.pg23-btn-register, .pg23-btn-login {
  padding: 6px 14px;
  border-radius: var(--pg23-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pg23-btn-register {
  background: linear-gradient(135deg, var(--pg23-accent), var(--pg23-highlight));
  color: #fff;
  box-shadow: 0 2px 8px rgba(210, 105, 30, 0.4);
}

.pg23-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(210, 105, 30, 0.6);
}

.pg23-btn-login {
  background: transparent;
  color: var(--pg23-highlight);
  border: 1px solid var(--pg23-highlight);
}

.pg23-btn-login:hover {
  background: rgba(205, 133, 63, 0.15);
}

.pg23-menu-toggle {
  background: none;
  border: none;
  color: var(--pg23-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* ========== MOBILE MENU ========== */
.pg23-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  z-index: 9999;
  background: linear-gradient(180deg, #1a1a35 0%, var(--pg23-bg) 100%);
  transition: right 0.3s ease;
  padding: 2rem 1.6rem;
  overflow-y: auto;
}

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

.pg23-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;
}

.pg23-overlay-active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.pg23-menu-close {
  background: none;
  border: none;
  color: var(--pg23-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
}

.pg23-menu-nav {
  list-style: none;
  padding: 0;
  margin-top: 4rem;
}

.pg23-menu-nav li {
  margin-bottom: 1.2rem;
}

.pg23-menu-nav a {
  color: var(--pg23-text);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s;
}

.pg23-menu-nav a:hover {
  color: var(--pg23-accent);
}

/* ========== CAROUSEL ========== */
.pg23-carousel {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 56px auto 0;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 0 0 var(--pg23-radius) var(--pg23-radius);
}

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

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

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

/* ========== MAIN CONTENT ========== */
.pg23-main {
  max-width: 430px;
  margin: 0 auto;
  padding: 1.2rem;
}

/* ========== GAME GRID ========== */
.pg23-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--pg23-accent);
  color: var(--pg23-text);
}

.pg23-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 1.6rem;
}

.pg23-game-card {
  background: var(--pg23-bg-card);
  border-radius: var(--pg23-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.pg23-game-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pg23-shadow);
}

.pg23-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.pg23-game-card p {
  margin: 0;
  padding: 4px 2px 6px;
  font-size: 1rem;
  color: var(--pg23-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== CONTENT CARDS ========== */
.pg23-card {
  background: var(--pg23-bg-card);
  border-radius: var(--pg23-radius);
  padding: 1.6rem;
  margin-bottom: 1.6rem;
  border: 1px solid rgba(205, 133, 63, 0.12);
}

.pg23-card h2 {
  font-size: 1.6rem;
  margin: 0 0 1rem;
  color: var(--pg23-highlight);
}

.pg23-card h3 {
  font-size: 1.4rem;
  margin: 1.2rem 0 0.6rem;
  color: var(--pg23-accent-light);
}

.pg23-card p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #ccc;
  margin: 0 0 0.8rem;
}

.pg23-card ul {
  padding-left: 1.6rem;
  margin: 0 0 0.8rem;
}

.pg23-card li {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 0.4rem;
}

/* ========== BUTTONS ========== */
.pg23-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--pg23-radius-sm);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: #fff;
}

.pg23-btn-primary {
  background: linear-gradient(135deg, var(--pg23-accent), var(--pg23-highlight));
  box-shadow: 0 3px 12px rgba(210, 105, 30, 0.4);
}

.pg23-btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(210, 105, 30, 0.6);
}

.pg23-btn-outline {
  background: transparent;
  border: 1px solid var(--pg23-highlight);
  color: var(--pg23-highlight);
}

.pg23-btn-outline:hover {
  background: rgba(205, 133, 63, 0.15);
}

.pg23-promo-text {
  color: var(--pg23-highlight);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.pg23-promo-text:hover {
  color: var(--pg23-accent-light);
}

/* ========== FOOTER ========== */
.pg23-footer {
  background: #0a0a1a;
  padding: 2rem 1.2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(210, 105, 30, 0.2);
}

.pg23-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.pg23-footer-brand {
  font-size: 1.2rem;
  color: #999;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.pg23-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.2rem;
}

.pg23-footer-links a {
  color: var(--pg23-highlight);
  font-size: 1.1rem;
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid rgba(205, 133, 63, 0.3);
  border-radius: 4px;
  transition: background 0.2s;
}

.pg23-footer-links a:hover {
  background: rgba(205, 133, 63, 0.15);
}

.pg23-footer-copy {
  font-size: 1rem;
  color: #666;
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========== BOTTOM NAV ========== */
.pg23-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background: linear-gradient(180deg, #1a1a35, #0a0a1a);
  border-top: 1px solid rgba(210, 105, 30, 0.25);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}

.pg23-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--pg23-text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  text-decoration: none;
  gap: 2px;
}

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

.pg23-bottom-nav-btn span {
  font-size: 1rem;
}

.pg23-bottom-nav-btn:hover,
.pg23-bottom-nav-btn.pg23-nav-active {
  color: var(--pg23-accent);
  transform: scale(1.08);
}

/* ========== RTP TABLE ========== */
.pg23-rtp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.pg23-rtp-item {
  background: var(--pg23-bg-card-alt);
  border-radius: var(--pg23-radius-sm);
  padding: 10px;
  text-align: center;
}

.pg23-rtp-item p {
  margin: 0;
  font-size: 1.1rem;
  color: #bbb;
}

.pg23-rtp-item strong {
  color: var(--pg23-highlight);
  font-size: 1.3rem;
}

/* ========== WINNERS ========== */
.pg23-winner-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.pg23-winner-name {
  color: var(--pg23-highlight);
  font-weight: 600;
}

.pg23-winner-amount {
  color: #4CAF50;
  font-weight: 700;
}

/* ========== TESTIMONIALS ========== */
.pg23-testimonial {
  background: var(--pg23-bg-card-alt);
  border-radius: var(--pg23-radius-sm);
  padding: 12px;
  margin-bottom: 8px;
  border-left: 3px solid var(--pg23-accent);
}

.pg23-testimonial p {
  margin: 0 0 4px;
  font-size: 1.2rem;
  color: #ccc;
  font-style: italic;
}

.pg23-testimonial cite {
  font-size: 1.1rem;
  color: var(--pg23-highlight);
}

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

@media (max-width: 768px) {
  .pg23-main, .pg23-footer-content {
    padding-bottom: 80px;
  }
}

/* ========== UTILITY ========== */
.pg23-text-center { text-align: center; }
.pg23-mt-1 { margin-top: 1rem; }
.pg23-mt-2 { margin-top: 2rem; }
.pg23-mb-1 { margin-bottom: 1rem; }
.pg23-mb-2 { margin-bottom: 2rem; }
.pg23-hidden { display: none; }
