/**
 * Game Zone App - Main Stylesheet
 * Prefix: w397f-
 * Domain: gamezoneapp.cfd
 * Palette: #8B7355 | #495057 | #FFA500 | #2D2D2D | #3C3C3C | #FAF0E6
 */

:root {
  --w397f-primary: #8B7355;
  --w397f-secondary: #495057;
  --w397f-accent: #FFA500;
  --w397f-dark: #2D2D2D;
  --w397f-darker: #3C3C3C;
  --w397f-light: #FAF0E6;
  --w397f-bg: #2D2D2D;
  --w397f-text: #FAF0E6;
  --w397f-card-bg: #3C3C3C;
  --w397f-border: #8B7355;
  --w397f-radius: 8px;
  --w397f-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--w397f-bg);
  color: var(--w397f-text);
  line-height: 1.6;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ====== HEADER ====== */
.w397f-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--w397f-darker);
  border-bottom: 2px solid var(--w397f-primary);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.w397f-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.w397f-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--w397f-accent);
}

.w397f-site-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--w397f-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.w397f-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.w397f-btn-register,
.w397f-btn-login {
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

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

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

.w397f-btn-register:hover,
.w397f-btn-login:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.w397f-menu-toggle {
  background: none;
  border: none;
  color: var(--w397f-light);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  margin-left: 4px;
}

/* ====== MOBILE MENU ====== */
.w397f-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

.w397f-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--w397f-darker);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 20px;
  overflow-y: auto;
}

.w397f-menu-open { right: 0 !important; }
.w397f-menu-closed { right: -280px; }

.w397f-menu-close {
  background: none;
  border: none;
  color: var(--w397f-light);
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  top: 12px;
  right: 12px;
}

.w397f-menu-links {
  list-style: none;
  margin-top: 40px;
}

.w397f-menu-links li {
  border-bottom: 1px solid rgba(139, 115, 85, 0.3);
}

.w397f-menu-links a {
  display: block;
  padding: 14px 0;
  color: var(--w397f-light);
  font-size: 15px;
  transition: color 0.2s;
}

.w397f-menu-links a:hover {
  color: var(--w397f-accent);
  text-decoration: none;
}

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

.w397f-carousel-slide {
  display: none;
  width: 100%;
}

.w397f-carousel-slide img {
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
}

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

.w397f-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(250, 240, 230, 0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.w397f-dot-active {
  background: var(--w397f-accent) !important;
}

/* ====== MAIN CONTENT ====== */
main {
  padding: 16px 12px;
}

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

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

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

/* ====== CATEGORY TABS ====== */
.w397f-tabs {
  display: flex;
  overflow-x: auto;
  gap: 6px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.w397f-tabs::-webkit-scrollbar { display: none; }

.w397f-tab-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 1.5px solid var(--w397f-primary);
  border-radius: 20px;
  background: transparent;
  color: var(--w397f-light);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.w397f-tab-active {
  background: var(--w397f-accent) !important;
  color: var(--w397f-dark) !important;
  border-color: var(--w397f-accent) !important;
}

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

.w397f-game-card {
  background: var(--w397f-card-bg);
  border-radius: var(--w397f-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(139, 115, 85, 0.2);
}

.w397f-game-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--w397f-shadow);
}

.w397f-game-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.w397f-game-card-title {
  padding: 4px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--w397f-light);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ====== PROMO BANNER ====== */
.w397f-promo-banner {
  background: linear-gradient(135deg, var(--w397f-primary), var(--w397f-accent));
  border-radius: var(--w397f-radius);
  padding: 20px 16px;
  text-align: center;
  margin-bottom: 24px;
}

.w397f-promo-banner h3 {
  font-size: 20px;
  color: var(--w397f-dark);
  margin-bottom: 8px;
}

.w397f-promo-banner p {
  font-size: 14px;
  color: var(--w397f-dark);
  margin-bottom: 14px;
}

.w397f-promo-cta {
  display: inline-block;
  background: var(--w397f-dark);
  color: var(--w397f-accent);
  padding: 10px 28px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.w397f-promo-cta:hover {
  transform: scale(1.05);
  text-decoration: none;
}

/* ====== SEO CONTENT ====== */
.w397f-content-block {
  background: var(--w397f-card-bg);
  border-radius: var(--w397f-radius);
  padding: 18px 14px;
  margin-bottom: 16px;
  border-left: 3px solid var(--w397f-accent);
}

.w397f-content-block h2 {
  font-size: 18px;
  color: var(--w397f-accent);
  margin-bottom: 10px;
}

.w397f-content-block h3 {
  font-size: 16px;
  color: var(--w397f-primary);
  margin: 12px 0 6px;
}

.w397f-content-block p {
  font-size: 14px;
  color: var(--w397f-light);
  margin-bottom: 10px;
  line-height: 1.7;
}

.w397f-content-block ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.w397f-content-block li {
  font-size: 14px;
  color: var(--w397f-light);
  margin-bottom: 6px;
  line-height: 1.6;
}

/* ====== FOOTER ====== */
.w397f-footer {
  background: var(--w397f-darker);
  border-top: 2px solid var(--w397f-primary);
  padding: 24px 16px 20px;
}

.w397f-footer-brand {
  text-align: center;
  margin-bottom: 20px;
}

.w397f-footer-brand h4 {
  color: var(--w397f-accent);
  font-size: 18px;
  margin-bottom: 8px;
}

.w397f-footer-brand p {
  color: rgba(250, 240, 230, 0.7);
  font-size: 13px;
}

.w397f-footer-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.w397f-footer-partners img {
  height: 28px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.w397f-footer-partners img:hover {
  opacity: 1;
}

.w397f-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.w397f-footer-links a {
  color: rgba(250, 240, 230, 0.7);
  font-size: 13px;
  transition: color 0.2s;
}

.w397f-footer-links a:hover {
  color: var(--w397f-accent);
}

.w397f-footer-copy {
  text-align: center;
  font-size: 12px;
  color: rgba(250, 240, 230, 0.5);
  padding-top: 12px;
  border-top: 1px solid rgba(139, 115, 85, 0.3);
}

/* ====== BOTTOM NAV ====== */
.w397f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 62px;
  background: linear-gradient(180deg, #3a3a3a, #2a2a2a);
  border-top: 2px solid var(--w397f-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.4);
}

.w397f-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 58px;
  background: none;
  border: none;
  color: rgba(250, 240, 230, 0.6);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 8px;
  padding: 4px 2px;
}

.w397f-bottom-btn:hover,
.w397f-bottom-btn:focus {
  color: var(--w397f-accent);
  background: rgba(255, 165, 0, 0.08);
}

.w397f-bottom-btn .material-icons,
.w397f-bottom-btn ion-icon {
  font-size: 24px;
  line-height: 1;
}

.w397f-bottom-btn .bi {
  font-size: 22px;
}

.w397f-bottom-btn span {
  font-size: 10px;
  margin-top: 2px;
  font-weight: 500;
}

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

/* ====== HELP PAGE STYLES ====== */
.w397f-page-header {
  background: linear-gradient(135deg, var(--w397f-dark), var(--w397f-darker));
  padding: 24px 16px;
  text-align: center;
  border-bottom: 2px solid var(--w397f-primary);
}

.w397f-page-header h1 {
  font-size: 22px;
  color: var(--w397f-accent);
  margin-bottom: 6px;
}

.w397f-page-header p {
  font-size: 14px;
  color: rgba(250, 240, 230, 0.7);
}

.w397f-breadcrumb {
  padding: 10px 12px;
  font-size: 12px;
  color: rgba(250, 240, 230, 0.6);
}

.w397f-breadcrumb a {
  color: var(--w397f-accent);
}

.w397f-article {
  padding: 0 12px 24px;
}

.w397f-faq-item {
  background: var(--w397f-card-bg);
  border-radius: var(--w397f-radius);
  padding: 14px;
  margin-bottom: 12px;
  border-left: 3px solid var(--w397f-accent);
}

.w397f-faq-item h3 {
  font-size: 15px;
  color: var(--w397f-accent);
  margin-bottom: 6px;
}

.w397f-faq-item p {
  font-size: 14px;
  color: var(--w397f-light);
  line-height: 1.7;
}

.w397f-cta-box {
  background: linear-gradient(135deg, var(--w397f-primary), var(--w397f-accent));
  border-radius: var(--w397f-radius);
  padding: 20px 16px;
  text-align: center;
  margin: 20px 0;
}

.w397f-cta-box h3 {
  color: var(--w397f-dark);
  font-size: 18px;
  margin-bottom: 8px;
}

.w397f-cta-box p {
  color: var(--w397f-dark);
  font-size: 14px;
  margin-bottom: 14px;
}

/* ====== RESPONSIVE ====== */
@media (min-width: 769px) {
  body { max-width: 100%; }
  .w397f-header { max-width: 100%; padding: 10px 24px; }
  .w397f-game-panel { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 360px) {
  .w397f-game-panel { grid-template-columns: repeat(3, 1fr); }
  .w397f-site-name { font-size: 14px; }
  .w397f-btn-register, .w397f-btn-login { padding: 5px 10px; font-size: 12px; }
}
