/* phgreat - Main Stylesheet */
/* All classes use prefix "w3175-" */
/* Color palette: #141414 (bg) | #ADB5BD (text) | #FFAA00 (accent) */

:root {
  --w3175-primary: #FFAA00;
  --w3175-bg: #141414;
  --w3175-bg-light: #1e1e1e;
  --w3175-bg-card: #252525;
  --w3175-text: #ADB5BD;
  --w3175-text-light: #e0e0e0;
  --w3175-accent: #FFAA00;
  --w3175-accent-dark: #cc8800;
  --w3175-border: #333333;
  --w3175-shadow: rgba(255, 170, 0, 0.15);
  --w3175-radius: 0.8rem;
  --w3175-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--w3175-font);
  background: var(--w3175-bg);
  color: var(--w3175-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--w3175-accent); text-decoration: none; }
a:hover { color: var(--w3175-text-light); }

/* Container */
.w3175-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.w3175-wrapper { max-width: 430px; margin: 0 auto; }
.w3175-grid { display: grid; gap: 1rem; }

/* Header */
.w3175-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--w3175-bg);
  border-bottom: 1px solid var(--w3175-border);
  height: 5.6rem;
  transition: box-shadow 0.3s;
}
.w3175-header-scrolled { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }
.w3175-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1rem;
}
.w3175-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.w3175-logo img { width: 2.8rem; height: 2.8rem; border-radius: 0.4rem; }
.w3175-logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--w3175-accent);
  letter-spacing: 0.5px;
}
.w3175-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.w3175-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: var(--w3175-radius);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.w3175-btn-login {
  background: transparent;
  color: var(--w3175-accent);
  border: 1px solid var(--w3175-accent);
}
.w3175-btn-login:hover { background: var(--w3175-accent); color: var(--w3175-bg); }
.w3175-btn-register {
  background: var(--w3175-accent);
  color: var(--w3175-bg);
  font-weight: 800;
}
.w3175-btn-register:hover { background: var(--w3175-accent-dark); }
.w3175-btn-promo {
  background: linear-gradient(135deg, var(--w3175-accent), #ff8c00);
  color: var(--w3175-bg);
  padding: 1rem 2.4rem;
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 3rem;
  box-shadow: 0 4px 15px var(--w3175-shadow);
}
.w3175-btn-promo:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--w3175-shadow); }
.w3175-hamburger {
  background: none;
  border: none;
  color: var(--w3175-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* Main content padding for fixed header */
main { padding-top: 5.6rem; }

/* Mobile menu */
.w3175-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.w3175-overlay-active { opacity: 1; visibility: visible; }
.w3175-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--w3175-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.6rem;
  overflow-y: auto;
}
.w3175-menu-open { right: 0 !important; }
.w3175-menu-close {
  background: none;
  border: none;
  color: var(--w3175-text);
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.w3175-menu-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w3175-accent);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--w3175-border);
}
.w3175-menu-list { list-style: none; }
.w3175-menu-list li { margin-bottom: 0.4rem; }
.w3175-menu-list a {
  display: block;
  padding: 0.9rem 1rem;
  color: var(--w3175-text);
  font-size: 1.4rem;
  border-radius: 0.6rem;
  transition: all 0.2s;
}
.w3175-menu-list a:hover { background: var(--w3175-bg-card); color: var(--w3175-accent); }

/* Carousel */
.w3175-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--w3175-radius);
  margin: 1rem 0;
}
.w3175-carousel-slide {
  display: none;
  cursor: pointer;
  width: 100%;
}
.w3175-carousel-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--w3175-radius);
}
.w3175-carousel-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}
.w3175-carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}
.w3175-dot-active { background: var(--w3175-accent); }

/* Section titles */
.w3175-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--w3175-text-light);
  margin: 2rem 0 1.2rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--w3175-accent);
}

/* Category tabs */
.w3175-cat-tabs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.8rem 0;
  -webkit-overflow-scrolling: touch;
}
.w3175-cat-tab {
  flex-shrink: 0;
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  background: var(--w3175-bg-card);
  color: var(--w3175-text);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--w3175-border);
  transition: all 0.2s;
}
.w3175-cat-tab:hover { border-color: var(--w3175-accent); color: var(--w3175-accent); }
.w3175-tab-active {
  background: var(--w3175-accent) !important;
  color: var(--w3175-bg) !important;
  border-color: var(--w3175-accent) !important;
}

/* Game grid */
.w3175-game-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0.8rem 0;
}
.w3175-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--w3175-radius);
  padding: 0.6rem;
}
.w3175-game-item:hover { transform: scale(1.05); }
.w3175-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.6rem;
  margin-bottom: 0.4rem;
}
.w3175-game-name {
  font-size: 1.1rem;
  color: var(--w3175-text);
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content cards */
.w3175-card {
  background: var(--w3175-bg-card);
  border-radius: var(--w3175-radius);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--w3175-border);
}
.w3175-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w3175-accent);
  margin-bottom: 1rem;
}
.w3175-card p {
  font-size: 1.4rem;
  line-height: 2.1rem;
  color: var(--w3175-text);
  margin-bottom: 0.8rem;
}

/* H1 heading */
.w3175-h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--w3175-text-light);
  margin: 1.5rem 0 1rem;
  line-height: 2.8rem;
}

/* Promo text link */
.w3175-promo-link {
  color: var(--w3175-accent);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
}
.w3175-promo-link:hover { color: var(--w3175-text-light); text-decoration: underline; }

/* Footer */
.w3175-footer {
  background: var(--w3175-bg-light);
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--w3175-border);
}
.w3175-footer-inner { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.w3175-footer-brand {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--w3175-accent);
  margin-bottom: 0.8rem;
}
.w3175-footer-desc {
  font-size: 1.2rem;
  color: var(--w3175-text);
  line-height: 1.8rem;
  margin-bottom: 1.2rem;
}
.w3175-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.w3175-footer-links a {
  color: var(--w3175-text);
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  background: var(--w3175-bg-card);
  border-radius: 0.4rem;
  transition: color 0.2s;
}
.w3175-footer-links a:hover { color: var(--w3175-accent); }
.w3175-footer-copy {
  font-size: 1.1rem;
  color: #666;
  text-align: center;
  margin-top: 1rem;
}

/* Bottom mobile navigation */
.w3175-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--w3175-bg-light);
  border-top: 1px solid var(--w3175-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.4rem;
}
.w3175-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--w3175-text);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 0.8rem;
  padding: 0.4rem;
}
.w3175-bottom-btn:hover { color: var(--w3175-accent); transform: scale(1.1); }
.w3175-bottom-btn i, .w3175-bottom-btn span.material-symbols-outlined {
  font-size: 22px;
  margin-bottom: 0.2rem;
}
.w3175-bottom-btn .w3175-nav-label {
  font-size: 1rem;
  font-weight: 600;
}
.w3175-bottom-active { color: var(--w3175-accent) !important; }
.w3175-bottom-active::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--w3175-accent);
  border-radius: 1px;
  margin-top: 0.2rem;
}

/* Mobile bottom padding */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .w3175-bottom-nav { display: none; }
}

/* Featured winner strip */
.w3175-winners {
  background: var(--w3175-bg-card);
  border-radius: var(--w3175-radius);
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  border: 1px solid var(--w3175-border);
}
.w3175-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 1.2rem;
}
.w3175-winner-item:last-child { border-bottom: none; }
.w3175-winner-name { color: var(--w3175-accent); font-weight: 600; }
.w3175-winner-amount { color: var(--w3175-text-light); font-weight: 700; }

/* FAQ */
.w3175-faq-item {
  background: var(--w3175-bg-card);
  border-radius: var(--w3175-radius);
  margin-bottom: 0.8rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--w3175-border);
}
.w3175-faq-q {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--w3175-accent);
  margin-bottom: 0.6rem;
}
.w3175-faq-a {
  font-size: 1.3rem;
  line-height: 2rem;
  color: var(--w3175-text);
}

/* Payment icons row */
.w3175-payment-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem 0;
}
.w3175-payment-item {
  background: var(--w3175-bg-card);
  border-radius: 0.6rem;
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--w3175-text);
  border: 1px solid var(--w3175-border);
}

/* Testimonial */
.w3175-testimonial {
  background: var(--w3175-bg-card);
  border-radius: var(--w3175-radius);
  padding: 1.4rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--w3175-accent);
}
.w3175-testimonial-text {
  font-size: 1.3rem;
  line-height: 2rem;
  color: var(--w3175-text);
  font-style: italic;
  margin-bottom: 0.6rem;
}
.w3175-testimonial-author {
  font-size: 1.2rem;
  color: var(--w3175-accent);
  font-weight: 600;
}

/* Responsive helpers */
@media (min-width: 431px) {
  body { background: #0a0a0a; }
  .w3175-header { background: var(--w3175-bg); }
}
