/**
 * PHMacao APK - Main Stylesheet
 * CSS prefix: pg42
 * Colors: #0000CD (blue) | #ADB5BD (gray) | #40E0D0 (turquoise) | #0C0C0C (dark bg) | #8A2BE2 (purple) | #00FFFF (cyan)
 */

:root {
  --pg42-primary: #0000CD;
  --pg42-accent: #8A2BE2;
  --pg42-turquoise: #40E0D0;
  --pg42-cyan: #00FFFF;
  --pg42-bg: #0C0C0C;
  --pg42-bg-card: #1a1a2e;
  --pg42-bg-light: #16213e;
  --pg42-text: #ADB5BD;
  --pg42-text-bright: #e8eaed;
  --pg42-text-dim: #6c757d;
  --pg42-border: #2a2a4a;
  --pg42-white: #ffffff;
  --pg42-font-base: 62.5%;
  --pg42-header-h: 56px;
  --pg42-bottom-nav-h: 62px;
  --pg42-radius: 8px;
  --pg42-radius-lg: 12px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: var(--pg42-bg);
  color: var(--pg42-text);
  font-size: 1.4rem;
  line-height: 1.6;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== HEADER ===== */
.pg42-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--pg42-header-h);
  background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  border-bottom: 1px solid var(--pg42-border);
}

.pg42-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg42-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.pg42-site-name {
  color: var(--pg42-cyan);
  font-size: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
}

.pg42-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pg42-btn-register,
.pg42-btn-login {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.pg42-btn-register {
  background: linear-gradient(135deg, var(--pg42-accent), var(--pg42-primary));
  color: var(--pg42-white);
}

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

.pg42-btn-register:hover, .pg42-btn-login:hover { opacity: 0.85; }

.pg42-menu-toggle {
  background: none;
  border: none;
  color: var(--pg42-text);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.3rem;
  display: flex;
  align-items: center;
}

/* ===== MOBILE MENU ===== */
.pg42-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
}

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

.pg42-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg, #0a0a1a, #1a0a2e);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
}

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

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

.pg42-menu-title {
  color: var(--pg42-cyan);
  font-size: 1.6rem;
  font-weight: 700;
}

.pg42-menu-close {
  background: none;
  border: none;
  color: var(--pg42-text);
  font-size: 1.8rem;
  cursor: pointer;
}

.pg42-menu-links {
  list-style: none;
  padding: 0.5rem 0;
}

.pg42-menu-links li a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: var(--pg42-text-bright);
  font-size: 1.4rem;
  transition: background 0.2s;
}

.pg42-menu-links li a:hover {
  background: rgba(0, 255, 255, 0.08);
  text-decoration: none;
}

.pg42-menu-links li a i,
.pg42-menu-links li a .material-icons {
  font-size: 18px;
  color: var(--pg42-turquoise);
  width: 24px;
  text-align: center;
}

/* ===== MAIN CONTENT ===== */
.pg42-main {
  padding-top: var(--pg42-header-h);
  min-height: 100vh;
}

@media (max-width: 768px) {
  .pg42-main { padding-bottom: 80px; }
}

/* ===== CAROUSEL ===== */
.pg42-carousel {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.pg42-slide {
  display: none;
  width: 100%;
}

.pg42-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/7;
  object-fit: cover;
}

.pg42-slide-active { display: block; }

.pg42-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.pg42-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(173, 181, 189, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.pg42-dot-active { background: var(--pg42-cyan); }

/* ===== HERO TEXT ===== */
.pg42-hero-text {
  padding: 1.5rem 1rem;
  text-align: center;
}

.pg42-hero-text h1 {
  font-size: 1.8rem;
  color: var(--pg42-cyan);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.pg42-hero-text p {
  font-size: 1.3rem;
  color: var(--pg42-text);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

/* ===== SECTION TITLE ===== */
.pg42-section-title {
  font-size: 1.6rem;
  color: var(--pg42-turquoise);
  padding: 1.2rem 1rem 0.6rem;
  border-left: 3px solid var(--pg42-accent);
  margin: 0.5rem 1rem 0;
  background: linear-gradient(90deg, rgba(138, 43, 226, 0.1), transparent);
}

/* ===== GAME GRID ===== */
.pg42-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  padding: 0.8rem 1rem;
}

.pg42-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem 0.2rem;
  border-radius: var(--pg42-radius);
  transition: all 0.2s;
  background: var(--pg42-bg-card);
  border: 1px solid var(--pg42-border);
}

.pg42-game-item:hover {
  background: var(--pg42-bg-light);
  transform: translateY(-2px);
  border-color: var(--pg42-accent);
}

.pg42-game-icon {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  margin-bottom: 0.3rem;
}

.pg42-game-name {
  font-size: 1rem;
  color: var(--pg42-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ===== CARDS ===== */
.pg42-card {
  background: var(--pg42-bg-card);
  border-radius: var(--pg42-radius-lg);
  margin: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--pg42-border);
}

.pg42-card h2 {
  color: var(--pg42-cyan);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--pg42-border);
}

.pg42-text-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 1.3rem;
}

/* ===== PROMO BUTTONS ===== */
.pg42-promo-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--pg42-primary), var(--pg42-accent));
  color: var(--pg42-white);
  border: none;
  border-radius: 25px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.pg42-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 205, 0.4);
}

.pg42-promo-btn-outline {
  background: transparent;
  border: 2px solid var(--pg42-accent);
  color: var(--pg42-turquoise);
}

.pg42-promo-link {
  color: var(--pg42-cyan);
  cursor: pointer;
  font-weight: 600;
  transition: color 0.2s;
}

.pg42-promo-link:hover { color: var(--pg42-turquoise); text-decoration: underline; }

/* ===== WINNER ITEMS ===== */
.pg42-winner-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--pg42-border);
}

.pg42-winner-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pg42-primary), var(--pg42-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pg42-white);
  font-size: 1.4rem;
}

.pg42-winner-info { flex: 1; }

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

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

.pg42-winner-amount {
  font-size: 1.4rem;
  color: #00ff88;
  font-weight: 700;
}

/* ===== TESTIMONIALS ===== */
.pg42-testimonial {
  background: var(--pg42-bg-light);
  border-radius: var(--pg42-radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--pg42-turquoise);
}

.pg42-testimonial-text {
  font-style: italic;
  color: var(--pg42-text);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.pg42-testimonial-author {
  color: var(--pg42-turquoise);
  font-size: 1.2rem;
  font-weight: 600;
}

/* ===== FOOTER ===== */
.pg42-footer {
  background: linear-gradient(180deg, var(--pg42-bg-card), #050510);
  padding: 2rem 1rem 1rem;
  margin-top: 2rem;
}

.pg42-footer-brand p {
  font-size: 1.2rem;
  color: var(--pg42-text-dim);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.pg42-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.pg42-footer-promos .pg42-promo-btn {
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  flex: 1;
  min-width: calc(50% - 0.5rem);
}

.pg42-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 1rem 0;
  border-top: 1px solid var(--pg42-border);
  border-bottom: 1px solid var(--pg42-border);
}

.pg42-footer-links a {
  color: var(--pg42-text-dim);
  font-size: 1.2rem;
  transition: color 0.2s;
}

.pg42-footer-links a:hover { color: var(--pg42-cyan); }

.pg42-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--pg42-text-dim);
  padding-top: 1rem;
}

/* ===== BOTTOM NAVIGATION ===== */
.pg42-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--pg42-bottom-nav-h);
  background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 100%);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  border-top: 1px solid var(--pg42-border);
  padding: 0 0.3rem;
}

.pg42-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(--pg42-text-dim);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  gap: 2px;
  border-radius: 8px;
}

.pg42-bottom-nav-btn:hover {
  color: var(--pg42-cyan);
  background: rgba(0, 255, 255, 0.05);
  text-decoration: none;
}

.pg42-nav-active {
  color: var(--pg42-cyan) !important;
}

.pg42-nav-active .pg42-nav-icon {
  transform: scale(1.1);
}

.pg42-nav-icon {
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.pg42-nav-label {
  font-size: 1rem;
  font-weight: 500;
}

@media (min-width: 769px) {
  .pg42-bottom-nav { display: none; }
}

/* ===== TABLE ===== */
.pg42-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.3rem;
}

.pg42-table th {
  padding: 0.8rem;
  text-align: left;
  background: rgba(138, 43, 226, 0.15);
  color: var(--pg42-accent);
  border-bottom: 2px solid var(--pg42-accent);
}

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

/* ===== DESKTOP HIDDEN ===== */
.pg42-desktop-hide { display: block; }
@media (min-width: 769px) { .pg42-desktop-hide { display: none; } }

/* ===== PARTNER LOGOS ===== */
.pg42-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
}

.pg42-partner-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.pg42-partner-logo:hover { opacity: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 360px) {
  .pg42-game-grid { grid-template-columns: repeat(3, 1fr); }
  .pg42-hero-text h1 { font-size: 1.5rem; }
}

@media (min-width: 769px) {
  body { max-width: 430px; }
}
