/**
 * staph.sbs - Core Stylesheet
 * All classes use g4f2- prefix for namespace isolation
 * Mobile-first design, max-width 430px
 */

/* CSS Variables */
:root {
  --g4f2-primary: #6495ED;
  --g4f2-navy: #000080;
  --g4f2-steel: #4682B4;
  --g4f2-dark: #2C2C2C;
  --g4f2-bg: #0a0e1a;
  --g4f2-bg-card: #111827;
  --g4f2-bg-card-alt: #162032;
  --g4f2-text: #e8ecf1;
  --g4f2-text-muted: #94a3b8;
  --g4f2-accent: #fbbf24;
  --g4f2-accent2: #34d399;
  --g4f2-border: rgba(100, 149, 237, 0.2);
  --g4f2-radius: 10px;
  --g4f2-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  font-size: 62.5%;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--g4f2-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--g4f2-accent); }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.g4f2-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
}

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

.g4f2-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.g4f2-logo-wrap img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.g4f2-logo-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g4f2-primary);
  letter-spacing: 0.5px;
}

.g4f2-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.g4f2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  min-height: 34px;
}

.g4f2-btn-register {
  background: var(--g4f2-accent);
  color: var(--g4f2-dark);
}

.g4f2-btn-register:hover {
  background: #f59e0b;
  transform: scale(1.03);
}

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

.g4f2-btn-login:hover {
  background: rgba(100, 149, 237, 0.15);
}

.g4f2-menu-toggle {
  background: none;
  border: none;
  color: var(--g4f2-primary);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

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

.g4f2-overlay-active { display: block; opacity: 1; }

.g4f2-mobile-menu {
  position: fixed;
  top: 0; right: -280px;
  width: 260px;
  height: 100%;
  background: linear-gradient(180deg, #0c1445, var(--g4f2-bg));
  z-index: 9999;
  padding: 60px 16px 24px;
  transition: right 0.3s ease;
  overflow-y: auto;
}

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

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

.g4f2-menu-link {
  display: block;
  padding: 12px 0;
  color: var(--g4f2-text);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--g4f2-border);
  transition: color 0.2s, padding-left 0.2s;
}

.g4f2-menu-link:hover {
  color: var(--g4f2-primary);
  padding-left: 8px;
}

/* ==================== CAROUSEL ==================== */
.g4f2-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  margin-top: 56px;
  overflow: hidden;
  border-radius: 0 0 var(--g4f2-radius) var(--g4f2-radius);
}

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

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

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

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

.g4f2-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s;
  border: none;
}

.g4f2-dot-active { background: var(--g4f2-accent); }

/* ==================== MAIN CONTENT ==================== */
.g4f2-main {
  padding: 16px 12px 90px;
}

.g4f2-section {
  margin-bottom: 24px;
}

.g4f2-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g4f2-text);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--g4f2-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.g4f2-section-title i,
.g4f2-section-title span.material-symbols-outlined {
  color: var(--g4f2-accent);
  font-size: 2.2rem;
}

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

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

.g4f2-game-item:hover { transform: translateY(-3px); }

.g4f2-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  background: var(--g4f2-bg-card);
}

.g4f2-game-item:hover img {
  border-color: var(--g4f2-primary);
}

.g4f2-game-name {
  font-size: 1.1rem;
  color: var(--g4f2-text-muted);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==================== CARDS / MODULES ==================== */
.g4f2-card {
  background: var(--g4f2-bg-card);
  border-radius: var(--g4f2-radius);
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--g4f2-border);
}

.g4f2-card-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--g4f2-primary);
  margin-bottom: 10px;
}

.g4f2-card p {
  color: var(--g4f2-text-muted);
  font-size: 1.35rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.g4f2-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--g4f2-primary), var(--g4f2-steel));
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
}

.g4f2-promo-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(100, 149, 237, 0.4);
}

.g4f2-promo-text {
  color: var(--g4f2-accent);
  font-weight: 600;
  cursor: pointer;
}

.g4f2-promo-text:hover {
  text-decoration: underline;
}

/* ==================== FOOTER ==================== */
.g4f2-footer {
  background: linear-gradient(180deg, var(--g4f2-bg-card), #060a14);
  padding: 24px 12px 100px;
  border-top: 1px solid var(--g4f2-border);
}

.g4f2-footer-brand {
  font-size: 1.35rem;
  color: var(--g4f2-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.g4f2-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.g4f2-footer-promos .g4f2-promo-btn {
  flex: 1 1 calc(50% - 4px);
  min-width: calc(50% - 4px);
  font-size: 1.2rem;
  padding: 8px 10px;
}

.g4f2-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 16px;
}

.g4f2-footer-links a {
  color: var(--g4f2-text-muted);
  font-size: 1.25rem;
}

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

.g4f2-copyright {
  text-align: center;
  color: var(--g4f2-text-muted);
  font-size: 1.2rem;
  opacity: 0.6;
}

/* ==================== BOTTOM NAV ==================== */
.g4f2-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(135deg, #0c1445, var(--g4f2-navy));
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  border-top: 1px solid var(--g4f2-border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

.g4f2-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--g4f2-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  gap: 2px;
  padding: 4px 0;
}

.g4f2-bottom-nav-btn i,
.g4f2-bottom-nav-btn .material-symbols-outlined,
.g4f2-bottom-nav-btn ion-icon {
  font-size: 22px;
  transition: color 0.2s, transform 0.2s;
}

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

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

.g4f2-bottom-nav-btn:hover i,
.g4f2-bottom-nav-btn:hover .material-symbols-outlined,
.g4f2-bottom-nav-btn:hover ion-icon,
.g4f2-nav-active i,
.g4f2-nav-active .material-symbols-outlined,
.g4f2-nav-active ion-icon {
  transform: scale(1.15);
  color: var(--g4f2-accent);
}

/* ==================== HELPERS ==================== */
.g4f2-text-center { text-align: center; }
.g4f2-mt-8 { margin-top: 8px; }
.g4f2-mt-16 { margin-top: 16px; }
.g4f2-mb-16 { margin-bottom: 16px; }

.g4f2-divider {
  border: none;
  height: 1px;
  background: var(--g4f2-border);
  margin: 16px 0;
}

.g4f2-badge {
  display: inline-block;
  background: var(--g4f2-primary);
  color: #fff;
  font-size: 1.1rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.g4f2-list {
  list-style: none;
  padding: 0;
}

.g4f2-list li {
  padding: 6px 0 6px 18px;
  position: relative;
  color: var(--g4f2-text-muted);
  font-size: 1.35rem;
}

.g4f2-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--g4f2-primary);
  border-radius: 50%;
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 769px) {
  .g4f2-bottom-nav { display: none; }
  .g4f2-main { padding-bottom: 40px; }
  .g4f2-footer { padding-bottom: 40px; }
}

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

@media (max-width: 360px) {
  .g4f2-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .g4f2-game-name { font-size: 1rem; }
}
