/**
 * Fox Game - Core CSS Stylesheet
 * All classes use v354- prefix for namespace isolation
 * Color palette: #FF4500 | #DCDCDC | #FF6347 | #0F0F23 | #E5E5E5 | #A0522D
 * Mobile-first design optimized for Philippine market
 */

/* === CSS Variables === */
:root {
  --v354-primary: #FF4500;
  --v354-secondary: #FF6347;
  --v354-bg-dark: #0F0F23;
  --v354-bg-card: #1A1A35;
  --v354-text-light: #E5E5E5;
  --v354-text-muted: #DCDCDC;
  --v354-accent: #A0522D;
  --v354-border: #2A2A4A;
  --v354-gradient-start: #FF4500;
  --v354-gradient-end: #FF6347;
  --v354-radius: 0.8rem;
  --v354-radius-sm: 0.5rem;
  --v354-shadow: 0 0.2rem 0.8rem rgba(0,0,0,0.3);
  font-size: 62.5%;
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--v354-bg-dark);
  color: var(--v354-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--v354-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--v354-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Container === */
.v354-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.v354-wrapper {
  max-width: 430px;
  margin: 0 auto;
}

/* === Header === */
.v354-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0F0F23 0%, #1A1A35 100%);
  border-bottom: 0.2rem solid var(--v354-primary);
  height: 5.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  backdrop-filter: blur(1rem);
}

.v354-header-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.v354-header-logo img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.4rem;
}

.v354-header-logo span {
  color: var(--v354-primary);
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

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

.v354-header-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--v354-radius-sm);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

.v354-btn-register {
  background: linear-gradient(135deg, var(--v354-gradient-start), var(--v354-gradient-end));
  color: #fff;
}

.v354-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 1.5rem rgba(255,69,0,0.4);
}

.v354-btn-login {
  background: transparent;
  color: var(--v354-primary);
  border: 0.15rem solid var(--v354-primary);
}

.v354-btn-login:hover {
  background: rgba(255,69,0,0.1);
}

.v354-menu-toggle {
  background: none;
  border: none;
  color: var(--v354-text-light);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Mobile Menu === */
.v354-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 75%;
  max-width: 300px;
  height: 100vh;
  background: linear-gradient(180deg, #0F0F23, #1A1A35);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 2rem 0;
  border-right: 0.15rem solid var(--v354-primary);
  overflow-y: auto;
}

.v354-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: none;
}

.v354-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem 2rem;
  border-bottom: 0.1rem solid var(--v354-border);
  margin-bottom: 1rem;
}

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

.v354-menu-links {
  list-style: none;
}

.v354-menu-links li {
  border-bottom: 0.1rem solid var(--v354-border);
}

.v354-menu-links a {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--v354-text-light);
  font-size: 1.4rem;
  transition: all 0.2s;
}

.v354-menu-links a:hover {
  background: rgba(255,69,0,0.1);
  color: var(--v354-primary);
  padding-left: 2rem;
}

/* === Main Content === */
.v354-main {
  padding-top: 5.6rem;
  min-height: 100vh;
}

/* === Carousel/Slider === */
.v354-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--v354-radius) var(--v354-radius);
}

.v354-slides-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}

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

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

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

.v354-slide-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 5;
}

.v354-slide-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.v354-dot-active {
  background: var(--v354-primary);
  width: 2.5rem;
  border-radius: 0.5rem;
}

/* === Section Headings === */
.v354-section {
  padding: 2rem 0;
}

.v354-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--v354-primary);
  margin-bottom: 1.2rem;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v354-section-title i {
  font-size: 2rem;
}

.v354-section-subtitle {
  font-size: 1.3rem;
  color: var(--v354-text-muted);
  margin-bottom: 1.5rem;
  padding: 0 1.2rem;
}

/* === Game Grid === */
.v354-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0 1.2rem;
}

.v354-game-card {
  background: var(--v354-bg-card);
  border-radius: var(--v354-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s;
  border: 0.1rem solid var(--v354-border);
}

.v354-game-card:hover {
  transform: translateY(-0.3rem);
  box-shadow: 0 0.4rem 1.2rem rgba(255,69,0,0.2);
  border-color: var(--v354-primary);
}

.v354-game-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.v354-game-card p {
  font-size: 1rem;
  color: var(--v354-text-light);
  text-align: center;
  padding: 0.4rem 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3rem;
}

/* === Category Label === */
.v354-cat-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--v354-gradient-start), var(--v354-gradient-end));
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  border-radius: var(--v354-radius-sm);
  margin: 0 1.2rem 1rem;
  text-transform: uppercase;
}

/* === Promo CTA === */
.v354-promo-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--v354-gradient-start), var(--v354-gradient-end));
  color: #fff;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: var(--v354-radius);
  font-size: 1.4rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

.v354-promo-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0.5rem 1.5rem rgba(255,69,0,0.4);
}

.v354-promo-text {
  color: var(--v354-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.v354-promo-text:hover {
  color: var(--v354-secondary);
}

/* === Content Blocks === */
.v354-content-block {
  padding: 2rem 1.2rem;
  line-height: 1.8;
}

.v354-content-block h2 {
  font-size: 1.7rem;
  color: var(--v354-primary);
  margin-bottom: 1rem;
}

.v354-content-block h3 {
  font-size: 1.5rem;
  color: var(--v354-secondary);
  margin-bottom: 0.8rem;
}

.v354-content-block p {
  color: var(--v354-text-muted);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* === Feature Cards === */
.v354-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 0 1.2rem;
}

.v354-feature-card {
  background: var(--v354-bg-card);
  border-radius: var(--v354-radius);
  padding: 1.5rem 1rem;
  text-align: center;
  border: 0.1rem solid var(--v354-border);
  transition: all 0.2s;
}

.v354-feature-card:hover {
  border-color: var(--v354-primary);
  transform: translateY(-0.2rem);
}

.v354-feature-card i {
  font-size: 2.5rem;
  color: var(--v354-primary);
  margin-bottom: 0.8rem;
}

.v354-feature-card h3 {
  font-size: 1.3rem;
  color: var(--v354-text-light);
  margin-bottom: 0.4rem;
}

.v354-feature-card p {
  font-size: 1.1rem;
  color: var(--v354-text-muted);
}

/* === Testimonials === */
.v354-testimonial {
  background: var(--v354-bg-card);
  border-radius: var(--v354-radius);
  padding: 1.5rem;
  margin: 0 1.2rem 1rem;
  border-left: 0.3rem solid var(--v354-primary);
}

.v354-testimonial p {
  color: var(--v354-text-muted);
  font-style: italic;
  margin-bottom: 0.8rem;
}

.v354-testimonial-author {
  color: var(--v354-primary);
  font-weight: 700;
  font-size: 1.2rem;
}

/* === Winners Showcase === */
.v354-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  border-bottom: 0.1rem solid var(--v354-border);
}

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

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

.v354-winner-amount {
  color: var(--v354-primary);
  font-weight: 800;
  font-size: 1.3rem;
}

/* === Payment Methods === */
.v354-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0 1.2rem;
  justify-content: center;
}

.v354-payment-item {
  background: var(--v354-bg-card);
  border-radius: var(--v354-radius-sm);
  padding: 0.8rem 1.5rem;
  font-size: 1.2rem;
  color: var(--v354-text-muted);
  border: 0.1rem solid var(--v354-border);
}

/* === Footer === */
.v354-footer {
  background: linear-gradient(180deg, #0F0F23, #080816);
  border-top: 0.2rem solid var(--v354-primary);
  padding: 3rem 1.2rem 8rem;
}

.v354-footer-brand {
  color: var(--v354-text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.v354-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.v354-footer-links a {
  color: var(--v354-text-muted);
  font-size: 1.1rem;
  transition: color 0.2s;
}

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

.v354-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.v354-footer-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--v354-gradient-start), var(--v354-gradient-end));
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: var(--v354-radius-sm);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s;
}

.v354-footer-promo-btn:hover {
  transform: scale(1.05);
}

.v354-footer-copy {
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 1rem;
  padding-top: 1.5rem;
  border-top: 0.1rem solid var(--v354-border);
}

/* === Bottom Navigation === */
.v354-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1A1A35, #0F0F23);
  border-top: 0.15rem solid var(--v354-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6rem;
  padding: 0 0.5rem;
}

.v354-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5.5rem;
  background: none;
  border: none;
  color: var(--v354-text-muted);
  cursor: pointer;
  transition: all 0.25s;
  border-radius: var(--v354-radius-sm);
  padding: 0.4rem;
  gap: 0.2rem;
}

.v354-bottom-nav-btn i,
.v354-bottom-nav-btn span.material-symbols-outlined {
  font-size: 2.4rem;
  transition: color 0.2s, transform 0.2s;
}

.v354-bottom-nav-btn span {
  font-size: 1rem;
  font-weight: 600;
}

.v354-bottom-nav-btn:hover,
.v354-nav-active {
  color: var(--v354-primary);
}

.v354-bottom-nav-btn:hover i,
.v354-nav-active i,
.v354-bottom-nav-btn:hover span.material-symbols-outlined,
.v354-nav-active span.material-symbols-outlined {
  transform: scale(1.15);
  color: var(--v354-primary);
}

/* === Desktop: hide bottom nav === */
@media (min-width: 769px) {
  .v354-bottom-nav {
    display: none;
  }
  .v354-main {
    padding-bottom: 0;
  }
}

/* === Mobile: bottom padding for nav === */
@media (max-width: 768px) {
  .v354-main {
    padding-bottom: 8rem;
  }
  .v354-footer {
    padding-bottom: 8rem;
  }
}

/* === Responsive adjustments === */
@media (max-width: 430px) {
  .v354-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
  }
  .v354-header-btn {
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
  }
}

@media (min-width: 431px) and (max-width: 768px) {
  .v354-game-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* === Utility === */
.v354-text-center { text-align: center; }
.v354-mt-1 { margin-top: 1rem; }
.v354-mt-2 { margin-top: 2rem; }
.v354-mb-1 { margin-bottom: 1rem; }
.v354-mb-2 { margin-bottom: 2rem; }
.v354-py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.v354-py-2 { padding-top: 2rem; padding-bottom: 2rem; }
