/**
 * Gperyaapp Theme Stylesheet
 * Prefix: w05d8-
 * Palette: #E91E63 | #3A3A3A | #FFCCCB | #E9ECEF
 */

:root {
  --w05d8-primary: #E91E63;
  --w05d8-primary-dark: #C2185B;
  --w05d8-primary-light: #FF5A8A;
  --w05d8-bg-dark: #3A3A3A;
  --w05d8-bg-darker: #2A2A2A;
  --w05d8-pink-light: #FFCCCB;
  --w05d8-gray-light: #E9ECEF;
  --w05d8-text-light: #FFFFFF;
  --w05d8-text-muted: #B0B0B0;
  --w05d8-accent-gold: #FFD700;
  --w05d8-font-size: 62.5%;
  --w05d8-header-h: 5.6rem;
  --w05d8-bottom-nav-h: 6rem;
  --w05d8-radius: 0.8rem;
  --w05d8-radius-sm: 0.4rem;
}

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

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

body {
  font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--w05d8-text-light);
  background: var(--w05d8-bg-dark);
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

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

/* === HEADER === */
.w05d8-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--w05d8-header-h);
  background: var(--w05d8-bg-darker);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  border-bottom: 2px solid var(--w05d8-primary);
}

.w05d8-logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.w05d8-logo-area img {
  width: 3rem;
  height: 3rem;
  border-radius: 0.4rem;
}

.w05d8-logo-area span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w05d8-primary);
  letter-spacing: 0.5px;
}

.w05d8-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.w05d8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: var(--w05d8-radius-sm);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  min-height: 3.6rem;
}

.w05d8-btn-register {
  background: var(--w05d8-primary);
  color: #fff;
}

.w05d8-btn-register:hover {
  background: var(--w05d8-primary-dark);
  transform: scale(1.03);
}

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

.w05d8-btn-login:hover {
  background: rgba(233, 30, 99, 0.15);
}

.w05d8-menu-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
}

/* === MOBILE MENU === */
.w05d8-menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

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

.w05d8-mobile-menu {
  position: fixed;
  top: 0; right: -80%;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background: var(--w05d8-bg-darker);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem;
  overflow-y: auto;
}

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

.w05d8-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem; right: 1rem;
}

.w05d8-mobile-menu h3 {
  color: var(--w05d8-primary);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #555;
}

.w05d8-mobile-menu ul { list-style: none; }

.w05d8-mobile-menu li { margin-bottom: 0.5rem; }

.w05d8-mobile-menu a {
  display: block;
  padding: 1rem;
  color: #ddd;
  font-size: 1.4rem;
  border-radius: var(--w05d8-radius-sm);
  transition: all 0.2s;
}

.w05d8-mobile-menu a:hover {
  background: rgba(233, 30, 99, 0.15);
  color: var(--w05d8-primary);
}

/* === MAIN CONTENT === */
.w05d8-main {
  padding-top: var(--w05d8-header-h);
}

/* === CAROUSEL === */
.w05d8-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16/8;
  background: #222;
}

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

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

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

.w05d8-carousel-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}

.w05d8-carousel-dot {
  width: 1rem; height: 1rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

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

/* === SECTIONS === */
.w05d8-section {
  padding: 2.5rem 1.5rem;
}

.w05d8-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--w05d8-primary);
}

.w05d8-section-title i {
  color: var(--w05d8-primary);
  margin-right: 0.5rem;
}

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

.w05d8-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

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

.w05d8-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--w05d8-radius);
  border: 2px solid #555;
  margin-bottom: 0.4rem;
}

.w05d8-game-item span {
  font-size: 1.1rem;
  color: var(--w05d8-text-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === CATEGORY LABEL === */
.w05d8-cat-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--w05d8-primary);
  margin: 2rem 0 1rem;
}

/* === CARDS & BOXES === */
.w05d8-card {
  background: var(--w05d8-bg-darker);
  border-radius: var(--w05d8-radius);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid #444;
}

.w05d8-card h3 {
  color: var(--w05d8-primary);
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.w05d8-card p {
  color: var(--w05d8-text-muted);
  font-size: 1.3rem;
  line-height: 1.6;
}

/* === PROMO CTA === */
.w05d8-cta-btn {
  display: block;
  width: 100%;
  padding: 1.4rem;
  text-align: center;
  background: linear-gradient(135deg, var(--w05d8-primary), var(--w05d8-primary-dark));
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: var(--w05d8-radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  margin: 1.5rem 0;
}

.w05d8-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

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

.w05d8-testimonial p {
  font-size: 1.3rem;
  color: #ccc;
  font-style: italic;
}

.w05d8-testimonial strong {
  color: var(--w05d8-primary);
  font-style: normal;
}

/* === STATS GRID === */
.w05d8-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.w05d8-stat-item {
  text-align: center;
  padding: 1.2rem;
  background: var(--w05d8-bg-darker);
  border-radius: var(--w05d8-radius);
  border: 1px solid #444;
}

.w05d8-stat-item .w05d8-stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--w05d8-primary);
}

.w05d8-stat-item .w05d8-stat-label {
  font-size: 1.2rem;
  color: var(--w05d8-text-muted);
}

/* === FOOTER === */
.w05d8-footer {
  background: var(--w05d8-bg-darker);
  padding: 2rem 1.5rem;
  border-top: 2px solid var(--w05d8-primary);
}

.w05d8-footer p {
  color: var(--w05d8-text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
}

.w05d8-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.2rem 0;
}

.w05d8-footer-links a {
  padding: 0.6rem 1.2rem;
  background: var(--w05d8-bg-dark);
  border: 1px solid #555;
  border-radius: var(--w05d8-radius-sm);
  color: #ccc;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.w05d8-footer-links a:hover {
  background: var(--w05d8-primary);
  color: #fff;
  border-color: var(--w05d8-primary);
}

.w05d8-footer-copy {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #444;
  font-size: 1.1rem;
  color: #888;
}

/* === BOTTOM NAV === */
.w05d8-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--w05d8-bottom-nav-h);
  background: var(--w05d8-bg-darker);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--w05d8-primary);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.w05d8-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.3rem;
}

.w05d8-bottom-nav-btn:hover,
.w05d8-bottom-nav-btn:focus {
  color: var(--w05d8-primary);
  transform: scale(1.1);
}

.w05d8-bottom-nav-btn i,
.w05d8-bottom-nav-btn span.material-symbols-outlined {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

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

.w05d8-nav-active {
  color: var(--w05d8-primary) !important;
}

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

/* === MOBILE: bottom padding === */
@media (max-width: 768px) {
  .w05d8-main { padding-bottom: 80px; }
}

/* === TEXT LINK STYLE === */
.w05d8-text-link {
  color: var(--w05d8-primary-light);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
}

.w05d8-text-link:hover {
  color: var(--w05d8-primary);
}

/* === BADGE === */
.w05d8-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--w05d8-primary);
  color: #fff;
  font-size: 1rem;
  border-radius: 2rem;
  font-weight: 600;
}

/* === WINNER LIST === */
.w05d8-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: var(--w05d8-bg-darker);
  border-radius: var(--w05d8-radius-sm);
  margin-bottom: 0.6rem;
  border: 1px solid #444;
}

.w05d8-winner-item .w05d8-winner-name {
  font-weight: 600;
  color: var(--w05d8-accent-gold);
  font-size: 1.3rem;
}

.w05d8-winner-item .w05d8-winner-amount {
  color: var(--w05d8-primary-light);
  font-weight: 700;
  font-size: 1.4rem;
}

.w05d8-winner-item .w05d8-winner-game {
  color: var(--w05d8-text-muted);
  font-size: 1.1rem;
}

/* === PAYMENT GRID === */
.w05d8-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.w05d8-payment-item {
  background: var(--w05d8-bg-darker);
  padding: 1rem 1.5rem;
  border-radius: var(--w05d8-radius);
  border: 1px solid #555;
  text-align: center;
  font-size: 1.3rem;
  color: #ccc;
}

/* === FAQ === */
.w05d8-faq-item {
  margin-bottom: 1.2rem;
  background: var(--w05d8-bg-darker);
  border-radius: var(--w05d8-radius);
  overflow: hidden;
  border: 1px solid #444;
}

.w05d8-faq-q {
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  color: var(--w05d8-primary);
  font-size: 1.4rem;
  cursor: pointer;
}

.w05d8-faq-a {
  padding: 0 1.5rem 1.2rem;
  color: var(--w05d8-text-muted);
  font-size: 1.3rem;
  line-height: 1.6;
}

/* === FEATURES LIST === */
.w05d8-feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.w05d8-feature-icon {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--w05d8-primary), var(--w05d8-primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
}

.w05d8-feature-text h4 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.w05d8-feature-text p {
  color: var(--w05d8-text-muted);
  font-size: 1.2rem;
  line-height: 1.5;
}

/* === APP DOWNLOAD CTA === */
.w05d8-app-cta {
  background: linear-gradient(135deg, var(--w05d8-primary-dark), var(--w05d8-primary));
  border-radius: var(--w05d8-radius);
  padding: 2rem 1.5rem;
  text-align: center;
}

.w05d8-app-cta h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.8rem;
}

.w05d8-app-cta p {
  color: var(--w05d8-pink-light);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}
