/**
 * PHDream Login - Core Stylesheet
 * Prefix: w4c50-
 * Color palette: Gold, Yellow, Light Cyan, Orange, Dark
 */

:root {
  --w4c50-primary: #FFD700;
  --w4c50-bg: #0A0A0A;
  --w4c50-text: #E0FFFF;
  --w4c50-accent: #FFB74D;
  --w4c50-gold: #FFCC02;
  --w4c50-dark: #0A0A0A;
  --w4c50-darker: #050505;
  --w4c50-card-bg: #141414;
  --w4c50-border: #2a2a2a;
  --w4c50-font-size: 62.5%;
  --w4c50-header-h: 56px;
  --w4c50-bnav-h: 60px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--w4c50-bg);
  color: var(--w4c50-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* ========== HEADER ========== */
.w4c50-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--w4c50-header-h);
  background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
  border-bottom: 2px solid var(--w4c50-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
}

.w4c50-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.w4c50-logo-area img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.w4c50-logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--w4c50-primary), var(--w4c50-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.w4c50-btn-register,
.w4c50-btn-login {
  padding: 6px 14px;
  border: none;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 34px;
  min-width: 60px;
}

.w4c50-btn-register {
  background: linear-gradient(135deg, var(--w4c50-primary), var(--w4c50-accent));
  color: #0A0A0A;
}

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

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

.w4c50-btn-login:hover {
  background: var(--w4c50-primary);
  color: #0A0A0A;
}

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

@media (max-width: 768px) {
  .w4c50-hamburger { display: flex; }
}

/* ========== MOBILE MENU ========== */
.w4c50-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.w4c50-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg, #111 0%, #0A0A0A 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 70px 0 20px;
}

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

.w4c50-menu-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--w4c50-primary);
  font-size: 2.4rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.w4c50-menu-link {
  display: block;
  padding: 14px 20px;
  color: var(--w4c50-text);
  text-decoration: none;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--w4c50-border);
  transition: all 0.2s ease;
}

.w4c50-menu-link:hover {
  background: rgba(255, 215, 0, 0.1);
  color: var(--w4c50-primary);
  padding-left: 26px;
}

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

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

/* ========== SLIDER ========== */
.w4c50-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16/7;
}

.w4c50-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

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

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

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

.w4c50-dot-active {
  background: var(--w4c50-primary);
  transform: scale(1.3);
}

/* ========== SECTIONS ========== */
.w4c50-section {
  padding: 20px 12px;
}

.w4c50-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--w4c50-primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--w4c50-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.w4c50-section-title i,
.w4c50-section-title span.material-icons {
  font-size: 2rem;
  color: var(--w4c50-accent);
}

/* ========== H1 TITLE ========== */
.w4c50-h1-title {
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  padding: 16px 12px;
  background: linear-gradient(135deg, var(--w4c50-primary), var(--w4c50-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}

/* ========== GAME GRID ========== */
.w4c50-cat-header {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--w4c50-accent);
  margin: 18px 0 10px;
  padding-left: 8px;
  border-left: 4px solid var(--w4c50-primary);
}

.w4c50-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 4px;
}

.w4c50-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
  display: block;
}

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

.w4c50-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 2px solid var(--w4c50-border);
  object-fit: cover;
  transition: border-color 0.3s;
}

.w4c50-game-item:hover img {
  border-color: var(--w4c50-primary);
}

.w4c50-game-name {
  font-size: 1rem;
  color: var(--w4c50-text);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

/* ========== CONTENT CARDS ========== */
.w4c50-card {
  background: var(--w4c50-card-bg);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--w4c50-border);
}

.w4c50-card h2 {
  font-size: 1.7rem;
  color: var(--w4c50-primary);
  margin-bottom: 10px;
}

.w4c50-card h3 {
  font-size: 1.4rem;
  color: var(--w4c50-accent);
  margin: 10px 0 6px;
}

.w4c50-card p {
  font-size: 1.3rem;
  color: var(--w4c50-text);
  line-height: 1.6;
  margin-bottom: 8px;
}

.w4c50-card ul {
  list-style: none;
  padding: 0;
}

.w4c50-card ul li {
  padding: 6px 0 6px 20px;
  font-size: 1.3rem;
  position: relative;
  color: var(--w4c50-text);
}

.w4c50-card ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--w4c50-primary);
  font-size: 1.1rem;
}

/* ========== PROMO BUTTONS ========== */
.w4c50-promo-btn {
  display: inline-block;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--w4c50-primary), var(--w4c50-accent));
  color: #0A0A0A;
  font-weight: 800;
  font-size: 1.4rem;
  border-radius: 25px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-align: center;
}

.w4c50-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.6);
}

.w4c50-promo-link {
  color: var(--w4c50-primary);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px dashed var(--w4c50-primary);
  transition: color 0.2s;
}

.w4c50-promo-link:hover { color: var(--w4c50-accent); }

/* ========== BOTTOM NAV ========== */
.w4c50-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--w4c50-bnav-h);
  background: linear-gradient(180deg, #151515 0%, #0a0a0a 100%);
  border-top: 2px solid var(--w4c50-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
}

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

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

.w4c50-bnav-btn i,
.w4c50-bnav-btn .material-icons,
.w4c50-bnav-btn ion-icon,
.w4c50-bnav-btn .bi {
  font-size: 22px;
}

.w4c50-bnav-btn span {
  font-size: 1rem;
  color: #888;
}

.w4c50-bnav-btn:hover,
.w4c50-bnav-active {
  color: var(--w4c50-primary);
  transform: scale(1.1);
}

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

/* ========== FOOTER ========== */
.w4c50-footer {
  background: #050505;
  padding: 24px 12px 20px;
  border-top: 2px solid var(--w4c50-border);
  text-align: center;
}

.w4c50-footer-brand {
  font-size: 1.3rem;
  color: #999;
  margin-bottom: 14px;
  line-height: 1.6;
}

.w4c50-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 12px 0;
}

.w4c50-footer-links a {
  color: var(--w4c50-text);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s;
}

.w4c50-footer-links a:hover { color: var(--w4c50-primary); }

.w4c50-footer-copy {
  font-size: 1.1rem;
  color: #555;
  margin-top: 12px;
}

.w4c50-footer-promos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
}

/* ========== RTP TABLE ========== */
.w4c50-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}

.w4c50-rtp-table th {
  background: rgba(255, 215, 0, 0.15);
  color: var(--w4c50-primary);
  padding: 8px 6px;
  text-align: left;
  font-weight: 700;
}

.w4c50-rtp-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--w4c50-border);
  color: var(--w4c50-text);
}

.w4c50-rtp-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--w4c50-border);
  overflow: hidden;
}

.w4c50-rtp-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--w4c50-primary), var(--w4c50-accent));
}

/* ========== TESTIMONIALS ========== */
.w4c50-testimonial {
  background: var(--w4c50-card-bg);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  border-left: 3px solid var(--w4c50-primary);
}

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

.w4c50-testimonial-text {
  font-size: 1.2rem;
  color: #ccc;
  margin-top: 6px;
  line-height: 1.5;
}

.w4c50-testimonial-stars {
  color: var(--w4c50-gold);
  font-size: 1.2rem;
  margin-top: 4px;
}

/* ========== WINNERS ========== */
.w4c50-winner-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--w4c50-border);
}

.w4c50-winner-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--w4c50-card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--w4c50-primary);
  font-size: 1.6rem;
  flex-shrink: 0;
}

.w4c50-winner-info { flex: 1; }
.w4c50-winner-name { font-weight: 700; font-size: 1.2rem; color: var(--w4c50-text); }
.w4c50-winner-game { font-size: 1rem; color: #999; }
.w4c50-winner-amount { font-weight: 800; font-size: 1.3rem; color: var(--w4c50-primary); }

/* ========== HELP PAGE ========== */
.w4c50-help-content {
  padding: 20px 12px;
}

.w4c50-help-content h2 {
  font-size: 1.7rem;
  color: var(--w4c50-primary);
  margin: 18px 0 8px;
}

.w4c50-help-content h3 {
  font-size: 1.4rem;
  color: var(--w4c50-accent);
  margin: 14px 0 6px;
}

.w4c50-help-content p {
  font-size: 1.3rem;
  color: var(--w4c50-text);
  line-height: 1.6;
  margin-bottom: 8px;
}

.w4c50-faq-item {
  margin-bottom: 12px;
  padding: 12px;
  background: var(--w4c50-card-bg);
  border-radius: 8px;
  border: 1px solid var(--w4c50-border);
}

.w4c50-faq-q {
  font-weight: 700;
  color: var(--w4c50-primary);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.w4c50-faq-a {
  font-size: 1.2rem;
  color: #ccc;
  line-height: 1.5;
}

/* ========== UTILITIES ========== */
.w4c50-text-center { text-align: center; }
.w4c50-mt-10 { margin-top: 10px; }
.w4c50-mb-10 { margin-bottom: 10px; }
.w4c50-mb-16 { margin-bottom: 16px; }
.w4c50-hidden { display: none; }
.w4c50-flex-center { display: flex; align-items: center; justify-content: center; }

/* ========== RESPONSIVE ========== */
@media (min-width: 769px) {
  body { max-width: 100%; }
  .w4c50-header { max-width: 100%; }
  .w4c50-bottom-nav { display: none; }
  .w4c50-game-grid { grid-template-columns: repeat(6, 1fr); }
  .w4c50-main { padding-bottom: 0; }
}

@media (max-width: 360px) {
  .w4c50-game-grid { grid-template-columns: repeat(3, 1fr); }
  .w4c50-btn-register, .w4c50-btn-login {
    padding: 5px 10px;
    font-size: 1.1rem;
  }
}
