/**
 * phfamous.cfd - Main Stylesheet
 * All classes use w02d7- prefix for namespace isolation
 * Color palette: #FFEF94 | #FFFACD | #1E1E1E | #FFB347
 */

:root {
  --w02d7-primary: #FFB347;
  --w02d7-secondary: #FFEF94;
  --w02d7-accent: #FFFACD;
  --w02d7-bg: #1E1E1E;
  --w02d7-bg-light: #2a2a2a;
  --w02d7-bg-card: #2d2d2d;
  --w02d7-text: #FFFACD;
  --w02d7-text-light: #FFEF94;
  --w02d7-text-muted: #b0a080;
  --w02d7-border: #3a3a3a;
  --w02d7-gold: #FFB347;
  --w02d7-gold-dark: #cc8a2e;
  --w02d7-radius: 1.2rem;
  --w02d7-radius-sm: 0.8rem;
  --w02d7-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--w02d7-bg);
  color: var(--w02d7-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--w02d7-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--w02d7-text-light); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

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

/* Header */
.w02d7-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--w02d7-bg) 0%, #252525 100%);
  border-bottom: 2px solid var(--w02d7-gold);
  padding: 0 1.2rem;
  height: 5.6rem;
  display: flex; align-items: center; justify-content: space-between;
}
.w02d7-logo-area { display: flex; align-items: center; gap: 0.8rem; }
.w02d7-logo-area img { width: 3rem; height: 3rem; border-radius: 0.6rem; }
.w02d7-logo-area span { font-size: 1.8rem; font-weight: 800; color: var(--w02d7-gold); letter-spacing: 0.5px; }
.w02d7-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.w02d7-btn-register, .w02d7-btn-login {
  padding: 0.6rem 1.4rem; border-radius: var(--w02d7-radius-sm);
  font-size: 1.2rem; font-weight: 700; cursor: pointer; border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.w02d7-btn-register {
  background: linear-gradient(135deg, var(--w02d7-gold), var(--w02d7-gold-dark));
  color: #1E1E1E; box-shadow: 0 2px 8px rgba(255,179,71,0.3);
}
.w02d7-btn-register:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(255,179,71,0.5); }
.w02d7-btn-login {
  background: transparent; color: var(--w02d7-gold);
  border: 2px solid var(--w02d7-gold);
}
.w02d7-btn-login:hover { background: rgba(255,179,71,0.1); }
.w02d7-menu-toggle {
  background: none; border: none; color: var(--w02d7-gold);
  font-size: 2.4rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile Menu */
.w02d7-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: var(--w02d7-bg); z-index: 9999;
  transition: right 0.3s ease; padding: 2rem 1.6rem;
  border-left: 2px solid var(--w02d7-gold);
  overflow-y: auto;
}
.w02d7-mobile-menu.w02d7-menu-active { right: 0; }
.w02d7-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7); z-index: 9998;
  display: none; opacity: 0; transition: opacity 0.3s;
}
.w02d7-menu-overlay.w02d7-overlay-active { display: block; opacity: 1; }
.w02d7-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.w02d7-menu-header span { font-size: 1.6rem; font-weight: 700; color: var(--w02d7-gold); }
.w02d7-menu-close { background: none; border: none; color: var(--w02d7-text); font-size: 2rem; cursor: pointer; }
.w02d7-menu-links { display: flex; flex-direction: column; gap: 0.4rem; }
.w02d7-menu-link {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1rem;
  color: var(--w02d7-text); border-radius: var(--w02d7-radius-sm);
  transition: background 0.2s; font-size: 1.4rem;
}
.w02d7-menu-link:hover { background: var(--w02d7-bg-light); color: var(--w02d7-gold); }
.w02d7-menu-link i, .w02d7-menu-link .material-symbols-outlined { font-size: 2rem; width: 2.4rem; text-align: center; }

/* Carousel */
.w02d7-carousel { position: relative; overflow: hidden; margin-top: 5.6rem; }
.w02d7-slide { display: none; width: 100%; cursor: pointer; position: relative; }
.w02d7-slide img { width: 100%; height: auto; min-height: 180px; object-fit: cover; }
.w02d7-slide-active { display: block; }
.w02d7-dots { display: flex; justify-content: center; gap: 0.8rem; padding: 1rem 0; }
.w02d7-dot {
  width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--w02d7-border); cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.w02d7-dot-active { background: var(--w02d7-gold); transform: scale(1.2); }

/* Main Content */
main { padding-top: 1.6rem; padding-bottom: 2rem; }
.w02d7-section { margin-bottom: 3rem; }
.w02d7-section-title {
  font-size: 1.8rem; font-weight: 800; color: var(--w02d7-gold);
  margin-bottom: 1.2rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--w02d7-gold);
  display: flex; align-items: center; gap: 0.8rem;
}
.w02d7-section-title i { font-size: 2rem; }

/* Game Grid */
.w02d7-game-category-title {
  font-size: 1.5rem; font-weight: 700; color: var(--w02d7-text-light);
  margin: 1.6rem 0 1rem; padding-left: 0.8rem;
  border-left: 3px solid var(--w02d7-gold);
}
.w02d7-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; margin-bottom: 1rem;
}
.w02d7-game-card {
  background: var(--w02d7-bg-card); border-radius: var(--w02d7-radius-sm);
  overflow: hidden; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  text-align: center; border: 1px solid var(--w02d7-border);
}
.w02d7-game-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,179,71,0.15); border-color: var(--w02d7-gold); }
.w02d7-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.w02d7-game-card span {
  display: block; font-size: 1.1rem; padding: 0.4rem 0.2rem;
  color: var(--w02d7-text); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; font-weight: 500;
}

/* Content Modules */
.w02d7-card {
  background: var(--w02d7-bg-card); border-radius: var(--w02d7-radius);
  padding: 1.6rem; margin-bottom: 1.6rem; border: 1px solid var(--w02d7-border);
}
.w02d7-card h3 { font-size: 1.5rem; color: var(--w02d7-gold); margin-bottom: 1rem; }
.w02d7-card p { color: var(--w02d7-text); line-height: 1.6; margin-bottom: 0.8rem; font-size: 1.3rem; }
.w02d7-card ul { padding-left: 1.6rem; }
.w02d7-card li { color: var(--w02d7-text); line-height: 1.6; margin-bottom: 0.4rem; font-size: 1.3rem; list-style: disc; }
.w02d7-highlight { color: var(--w02d7-gold); font-weight: 700; }
.w02d7-promo-btn {
  display: inline-block; padding: 1rem 2.4rem;
  background: linear-gradient(135deg, var(--w02d7-gold), var(--w02d7-gold-dark));
  color: #1E1E1E; font-weight: 800; font-size: 1.4rem;
  border-radius: var(--w02d7-radius-sm); cursor: pointer;
  text-align: center; border: none; transition: transform 0.15s;
  box-shadow: 0 3px 10px rgba(255,179,71,0.3);
}
.w02d7-promo-btn:hover { transform: scale(1.05); }
.w02d7-promo-text { color: var(--w02d7-gold); font-weight: 700; cursor: pointer; text-decoration: underline; }

/* Winners Table */
.w02d7-winners-table { width: 100%; border-collapse: collapse; }
.w02d7-winners-table th { font-size: 1.1rem; color: var(--w02d7-text-muted); padding: 0.6rem; text-align: left; border-bottom: 1px solid var(--w02d7-border); }
.w02d7-winners-table td { font-size: 1.2rem; padding: 0.6rem; border-bottom: 1px solid var(--w02d7-border); }
.w02d7-winners-table .w02d7-amount { color: var(--w02d7-gold); font-weight: 700; }

/* Testimonials */
.w02d7-testimonial { background: var(--w02d7-bg-light); border-radius: var(--w02d7-radius-sm); padding: 1.2rem; margin-bottom: 1rem; border-left: 3px solid var(--w02d7-gold); }
.w02d7-testimonial-name { font-weight: 700; color: var(--w02d7-gold); font-size: 1.3rem; }
.w02d7-testimonial-text { color: var(--w02d7-text); font-size: 1.2rem; margin-top: 0.4rem; line-height: 1.5; }

/* Payment Methods */
.w02d7-payment-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.w02d7-payment-item { background: var(--w02d7-bg-light); border-radius: var(--w02d7-radius-sm); padding: 0.8rem 1.4rem; font-size: 1.2rem; color: var(--w02d7-text-light); border: 1px solid var(--w02d7-border); }

/* Footer */
.w02d7-footer {
  background: var(--w02d7-bg-light); padding: 2.4rem 1.2rem 8rem;
  border-top: 2px solid var(--w02d7-gold); text-align: center;
}
.w02d7-footer-brand { font-size: 2rem; font-weight: 800; color: var(--w02d7-gold); margin-bottom: 0.8rem; }
.w02d7-footer-desc { color: var(--w02d7-text-muted); font-size: 1.2rem; line-height: 1.6; margin-bottom: 1.6rem; }
.w02d7-footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-bottom: 1.6rem; }
.w02d7-footer-link {
  color: var(--w02d7-text-light); font-size: 1.2rem;
  padding: 0.5rem 1rem; background: var(--w02d7-bg-card);
  border-radius: var(--w02d7-radius-sm); border: 1px solid var(--w02d7-border);
  transition: border-color 0.2s, color 0.2s;
}
.w02d7-footer-link:hover { border-color: var(--w02d7-gold); color: var(--w02d7-gold); }
.w02d7-footer-partners { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 1.6rem; }
.w02d7-footer-partners img { height: 2.4rem; opacity: 0.7; transition: opacity 0.2s; }
.w02d7-footer-partners img:hover { opacity: 1; }
.w02d7-footer-copy { color: var(--w02d7-text-muted); font-size: 1.1rem; border-top: 1px solid var(--w02d7-border); padding-top: 1.2rem; }

/* Bottom Mobile Navigation */
.w02d7-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  border-top: 2px solid var(--w02d7-gold);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; padding: 0 0.4rem;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.5);
}
.w02d7-bnav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; background: none; border: none;
  cursor: pointer; color: var(--w02d7-text-muted); transition: all 0.2s;
  padding: 0.4rem; gap: 0.2rem; position: relative;
}
.w02d7-bnav-btn .w02d7-bnav-icon { font-size: 2.2rem; height: 2.4rem; display: flex; align-items: center; }
.w02d7-bnav-btn .w02d7-bnav-label { font-size: 1rem; font-weight: 500; }
.w02d7-bnav-btn:hover, .w02d7-bnav-btn.w02d7-bnav-active {
  color: var(--w02d7-gold);
}
.w02d7-bnav-btn.w02d7-bnav-active::after {
  content: ''; position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px; background: var(--w02d7-gold); border-radius: 0 0 2px 2px;
}
.w02d7-bnav-btn:active { transform: scale(0.9); }

/* Responsive */
@media (min-width: 769px) {
  .w02d7-bottom-nav { display: none; }
  .w02d7-container { max-width: 768px; }
  .w02d7-game-grid { grid-template-columns: repeat(6, 1fr); }
  .w02d7-footer { padding-bottom: 2.4rem; }
}
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  .w02d7-footer { padding-bottom: 8rem; }
}
@media (max-width: 360px) {
  .w02d7-game-grid { grid-template-columns: repeat(3, 1fr); }
}
