/**
 * S5 Casino PH - Theme Stylesheet
 * CSS class prefix: v7e1-
 * Color palette: #0097A7 | #8B008B | #9370DB | #3A3A3A
 * Mobile-first design, max-width 430px
 */

:root {
  --v7e1-primary: #0097A7;
  --v7e1-secondary: #8B008B;
  --v7e1-accent: #9370DB;
  --v7e1-dark: #3A3A3A;
  --v7e1-bg: #1a1a2e;
  --v7e1-bg-card: #16213e;
  --v7e1-bg-light: #0f3460;
  --v7e1-text: #e8e8e8;
  --v7e1-text-muted: #a0a0b0;
  --v7e1-gold: #ffd700;
  --v7e1-white: #ffffff;
  --v7e1-border: #2a2a4a;
  --v7e1-radius: 8px;
  --v7e1-radius-lg: 12px;
  --v7e1-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --v7e1-transition: all 0.3s ease;
  font-size: 62.5%;
}

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

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

a {
  color: var(--v7e1-primary);
  text-decoration: none;
  transition: var(--v7e1-transition);
}

a:hover {
  color: var(--v7e1-accent);
}

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

/* ========== HEADER ========== */
.v7e1-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, var(--v7e1-dark) 0%, #2d2d5e 100%);
  z-index: 1000;
  border-bottom: 2px solid var(--v7e1-primary);
  padding: 0 1rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.v7e1-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v7e1-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.v7e1-logo-area span {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--v7e1-gold);
  letter-spacing: 0.5px;
}

.v7e1-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.v7e1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border: none;
  border-radius: var(--v7e1-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--v7e1-transition);
  text-decoration: none;
  white-space: nowrap;
}

.v7e1-btn-register {
  background: linear-gradient(135deg, var(--v7e1-primary), #00b4c8);
  color: var(--v7e1-white);
}

.v7e1-btn-register:hover {
  background: linear-gradient(135deg, #00b4c8, var(--v7e1-primary));
  transform: scale(1.05);
}

.v7e1-btn-login {
  background: linear-gradient(135deg, var(--v7e1-secondary), #a500a5);
  color: var(--v7e1-white);
}

.v7e1-btn-login:hover {
  background: linear-gradient(135deg, #a500a5, var(--v7e1-secondary));
  transform: scale(1.05);
}

.v7e1-menu-toggle {
  background: none;
  border: none;
  color: var(--v7e1-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* ========== MOBILE MENU ========== */
.v7e1-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg, var(--v7e1-dark) 0%, #1a1a3e 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.v7e1-menu-active {
  right: 0 !important;
}

.v7e1-mobile-menu .v7e1-menu-close {
  background: none;
  border: none;
  color: var(--v7e1-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 12px;
  right: 16px;
}

.v7e1-mobile-menu .v7e1-menu-title {
  font-size: 1.6rem;
  color: var(--v7e1-gold);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.v7e1-mobile-menu a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--v7e1-border);
  color: var(--v7e1-text);
  font-size: 1.4rem;
  transition: var(--v7e1-transition);
}

.v7e1-mobile-menu a:hover {
  color: var(--v7e1-primary);
  padding-left: 8px;
}

.v7e1-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.v7e1-overlay-active {
  opacity: 1;
  pointer-events: auto;
}

/* ========== MAIN CONTENT ========== */
.v7e1-main {
  padding-top: 56px;
  min-height: 100vh;
}

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

.v7e1-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========== BANNER SLIDER ========== */
.v7e1-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--v7e1-radius-lg);
  margin: 1rem;
}

.v7e1-slider-track {
  display: flex;
  transition: transform 0.4s ease;
}

.v7e1-slider-item {
  min-width: 100%;
  cursor: pointer;
}

.v7e1-slider-item img {
  width: 100%;
  height: auto;
  border-radius: var(--v7e1-radius-lg);
}

.v7e1-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.v7e1-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--v7e1-transition);
}

.v7e1-dot-active {
  background: var(--v7e1-gold) !important;
  transform: scale(1.3);
}

/* ========== SECTION TITLES ========== */
.v7e1-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v7e1-gold);
  padding: 1.2rem 1rem 0.8rem;
  border-bottom: 2px solid var(--v7e1-primary);
  margin: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.v7e1-section-title i {
  color: var(--v7e1-primary);
}

/* ========== GAME GRID ========== */
.v7e1-game-section {
  margin: 1rem 0;
}

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

.v7e1-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--v7e1-transition);
  border-radius: var(--v7e1-radius);
  padding: 4px;
}

.v7e1-game-card:hover {
  background: rgba(0, 151, 167, 0.15);
  transform: translateY(-2px);
}

.v7e1-game-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--v7e1-radius);
  object-fit: cover;
  border: 2px solid var(--v7e1-border);
  transition: var(--v7e1-transition);
}

.v7e1-game-card:hover img {
  border-color: var(--v7e1-primary);
}

.v7e1-game-card span {
  font-size: 1rem;
  color: var(--v7e1-text);
  text-align: center;
  margin-top: 4px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== CONTENT SECTIONS ========== */
.v7e1-content-block {
  padding: 1rem;
  margin: 0.5rem 1rem;
  background: var(--v7e1-bg-card);
  border-radius: var(--v7e1-radius-lg);
  border-left: 3px solid var(--v7e1-primary);
}

.v7e1-content-block h2 {
  font-size: 1.6rem;
  color: var(--v7e1-gold);
  margin-bottom: 0.8rem;
}

.v7e1-content-block h3 {
  font-size: 1.4rem;
  color: var(--v7e1-primary);
  margin: 0.8rem 0 0.4rem;
}

.v7e1-content-block p {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--v7e1-text-muted);
  margin-bottom: 0.6rem;
}

.v7e1-content-block ul {
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
}

.v7e1-content-block li {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--v7e1-text-muted);
}

.v7e1-content-block strong {
  color: var(--v7e1-primary);
}

/* ========== PROMO BUTTONS ========== */
.v7e1-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--v7e1-primary), #00b4c8);
  color: var(--v7e1-white);
  padding: 8px 20px;
  border-radius: var(--v7e1-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--v7e1-transition);
  margin: 4px 0;
  text-align: center;
}

.v7e1-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 151, 167, 0.4);
}

.v7e1-promo-btn-alt {
  background: linear-gradient(135deg, var(--v7e1-secondary), #a500a5);
}

.v7e1-promo-btn-gold {
  background: linear-gradient(135deg, #c8a200, var(--v7e1-gold));
  color: var(--v7e1-dark);
}

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

.v7e1-promo-link:hover {
  color: var(--v7e1-gold);
}

/* ========== FOOTER ========== */
.v7e1-footer {
  background: linear-gradient(180deg, var(--v7e1-dark), #111128);
  padding: 2rem 1rem 1.5rem;
  margin-top: 2rem;
  border-top: 2px solid var(--v7e1-primary);
}

.v7e1-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

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

.v7e1-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 1rem 0;
}

.v7e1-footer-links a {
  padding: 6px 12px;
  background: rgba(0, 151, 167, 0.15);
  border-radius: var(--v7e1-radius);
  font-size: 1.1rem;
  color: var(--v7e1-text);
  border: 1px solid var(--v7e1-border);
  transition: var(--v7e1-transition);
}

.v7e1-footer-links a:hover {
  background: var(--v7e1-primary);
  color: var(--v7e1-white);
}

.v7e1-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--v7e1-text-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--v7e1-border);
}

/* ========== BOTTOM NAVIGATION ========== */
.v7e1-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #2d2d5e, var(--v7e1-dark));
  border-top: 2px solid var(--v7e1-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 4px;
}

.v7e1-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: var(--v7e1-text-muted);
  cursor: pointer;
  transition: var(--v7e1-transition);
  padding: 4px 0;
  border-radius: var(--v7e1-radius);
}

.v7e1-bottom-nav-btn i,
.v7e1-bottom-nav-btn span.material-symbols-outlined {
  font-size: 22px;
  margin-bottom: 2px;
}

.v7e1-bottom-nav-btn span.v7e1-nav-label {
  font-size: 1rem;
  line-height: 1;
}

.v7e1-bottom-nav-btn:hover,
.v7e1-bottom-nav-btn.v7e1-nav-active {
  color: var(--v7e1-gold);
  transform: scale(1.1);
}

.v7e1-bottom-nav-btn.v7e1-nav-active {
  background: rgba(255, 215, 0, 0.1);
}

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

/* ========== UTILITY CLASSES ========== */
.v7e1-text-center { text-align: center; }
.v7e1-text-gold { color: var(--v7e1-gold); }
.v7e1-text-primary { color: var(--v7e1-primary); }
.v7e1-text-accent { color: var(--v7e1-accent); }
.v7e1-mt-1 { margin-top: 0.5rem; }
.v7e1-mt-2 { margin-top: 1rem; }
.v7e1-mb-1 { margin-bottom: 0.5rem; }
.v7e1-mb-2 { margin-bottom: 1rem; }
.v7e1-p-1 { padding: 0.5rem; }
.v7e1-p-2 { padding: 1rem; }

.v7e1-hidden { display: none; }

/* ========== RESPONSIVE HELPERS ========== */
@media (max-width: 768px) {
  .v7e1-desktop-only { display: none !important; }
}

@media (min-width: 769px) {
  .v7e1-mobile-only { display: none !important; }
}
