/**
 * 3666betapk-click Layout Stylesheet
 * Class prefix: gf4e-
 * Colors: #273746 (dark bg), #FFCCCB (light text)
 */

/* ===== CSS Variables ===== */
:root {
  --gf4e-bg: #273746;
  --gf4e-bg-light: #1e2d3a;
  --gf4e-bg-dark: #1a252f;
  --gf4e-bg-card: #2c3e50;
  --gf4e-text: #FFCCCB;
  --gf4e-text-light: #ffe0df;
  --gf4e-text-muted: #b0bec5;
  --gf4e-accent: #FF6B6B;
  --gf4e-accent-hover: #ff5252;
  --gf4e-gold: #ffd700;
  --gf4e-border: rgba(255, 204, 203, 0.15);
  --gf4e-shadow: rgba(0, 0, 0, 0.3);
  --gf4e-radius: 10px;
  --gf4e-radius-lg: 16px;
  --gf4e-transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--gf4e-bg);
  color: var(--gf4e-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
}

a {
  color: var(--gf4e-accent);
  text-decoration: none;
  transition: var(--gf4e-transition);
}

a:hover {
  color: var(--gf4e-accent-hover);
  text-decoration: underline;
}

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

ul, ol {
  list-style: none;
}

/* ===== Header ===== */
.gf4e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--gf4e-bg-dark), var(--gf4e-bg));
  border-bottom: 2px solid var(--gf4e-accent);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  box-shadow: 0 2px 12px var(--gf4e-shadow);
}

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

.gf4e-logo img {
  height: 36px;
  width: auto;
}

.gf4e-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--gf4e-gold);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

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

.gf4e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--gf4e-radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--gf4e-transition);
  text-transform: none;
  white-space: nowrap;
}

.gf4e-btn-register {
  background: linear-gradient(135deg, var(--gf4e-accent), #ff8a80);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

.gf4e-btn-register:hover {
  background: linear-gradient(135deg, var(--gf4e-accent-hover), #ff6b6b);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.5);
}

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

.gf4e-btn-login:hover {
  background: rgba(255, 107, 107, 0.1);
}

.gf4e-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gf4e-text);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ===== Mobile Menu ===== */
.gf4e-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--gf4e-bg-dark);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 20px;
  overflow-y: auto;
  border-right: 2px solid var(--gf4e-accent);
}

.gf4e-mobile-menu.gf4e-menu-active {
  transform: translateX(0);
}

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

.gf4e-menu-active + .gf4e-menu-overlay {
  display: block;
}

.gf4e-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gf4e-border);
}

.gf4e-menu-close {
  background: none;
  border: none;
  color: var(--gf4e-text);
  font-size: 24px;
  cursor: pointer;
}

.gf4e-menu-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gf4e-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: var(--gf4e-text);
  border-radius: 8px;
  transition: var(--gf4e-transition);
  font-size: 14px;
}

.gf4e-menu-link:hover {
  background: rgba(255, 204, 203, 0.1);
  color: var(--gf4e-accent);
  text-decoration: none;
}

.gf4e-menu-link i,
.gf4e-menu-link .material-icons-outlined {
  font-size: 20px;
  color: var(--gf4e-accent);
}

/* ===== Main Content ===== */
.gf4e-main {
  padding-top: 56px;
  min-height: calc(100vh - 56px);
}

/* ===== Carousel ===== */
.gf4e-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16/7;
  cursor: pointer;
}

.gf4e-slide {
  display: none;
  width: 100%;
  height: 100%;
}

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

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

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

.gf4e-dot-active {
  background: var(--gf4e-accent);
  transform: scale(1.2);
}

/* ===== Section Styling ===== */
.gf4e-section {
  padding: 28px 16px;
}

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

.gf4e-section-title i {
  color: var(--gf4e-accent);
}

/* ===== Tab Navigation ===== */
.gf4e-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.gf4e-tab-btn {
  flex-shrink: 0;
  padding: 8px 18px;
  background: var(--gf4e-bg-card);
  color: var(--gf4e-text-muted);
  border: 1.5px solid var(--gf4e-border);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--gf4e-transition);
  white-space: nowrap;
}

.gf4e-tab-btn:hover {
  border-color: var(--gf4e-accent);
  color: var(--gf4e-text);
}

.gf4e-tab-active {
  background: linear-gradient(135deg, var(--gf4e-accent), #ff8a80);
  color: #fff;
  border-color: transparent;
}

/* ===== Game Grid ===== */
.gf4e-game-panel {
  display: none;
}

.gf4e-panel-active {
  display: block;
}

.gf4e-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gf4e-game-card {
  background: var(--gf4e-bg-card);
  border-radius: var(--gf4e-radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--gf4e-transition);
  border: 1px solid var(--gf4e-border);
}

.gf4e-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px var(--gf4e-shadow);
  border-color: var(--gf4e-accent);
}

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

.gf4e-game-name {
  padding: 6px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--gf4e-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Features / Highlights ===== */
.gf4e-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gf4e-feature-card {
  background: var(--gf4e-bg-card);
  border-radius: var(--gf4e-radius-lg);
  padding: 20px 14px;
  text-align: center;
  border: 1px solid var(--gf4e-border);
  transition: var(--gf4e-transition);
}

.gf4e-feature-card:hover {
  border-color: var(--gf4e-accent);
  transform: translateY(-2px);
}

.gf4e-feature-icon {
  font-size: 36px;
  color: var(--gf4e-accent);
  margin-bottom: 10px;
}

.gf4e-feature-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gf4e-gold);
  margin-bottom: 6px;
}

.gf4e-feature-desc {
  font-size: 12px;
  color: var(--gf4e-text-muted);
  line-height: 1.5;
}

/* ===== Promo Banner ===== */
.gf4e-promo-banner {
  background: linear-gradient(135deg, var(--gf4e-bg-card), var(--gf4e-bg-dark));
  border-radius: var(--gf4e-radius-lg);
  padding: 24px 18px;
  text-align: center;
  border: 2px solid var(--gf4e-accent);
  margin: 16px;
  position: relative;
  overflow: hidden;
}

.gf4e-promo-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.05) 0%, transparent 70%);
}

.gf4e-promo-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--gf4e-gold);
  margin-bottom: 8px;
}

.gf4e-promo-text {
  font-size: 14px;
  color: var(--gf4e-text-muted);
  margin-bottom: 16px;
}

.gf4e-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--gf4e-accent), #ff8a80);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--gf4e-transition);
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4);
}

.gf4e-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

/* ===== Content Section ===== */
.gf4e-content-block {
  background: var(--gf4e-bg-card);
  border-radius: var(--gf4e-radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--gf4e-border);
}

.gf4e-content-block h2 {
  font-size: 18px;
  color: var(--gf4e-gold);
  margin-bottom: 12px;
}

.gf4e-content-block h3 {
  font-size: 16px;
  color: var(--gf4e-text-light);
  margin-bottom: 8px;
}

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

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

.gf4e-content-block li {
  font-size: 14px;
  color: var(--gf4e-text-muted);
  margin-bottom: 6px;
  list-style: disc;
  line-height: 1.6;
}

/* ===== FAQ Accordion ===== */
.gf4e-faq-item {
  background: var(--gf4e-bg-card);
  border-radius: var(--gf4e-radius);
  margin-bottom: 8px;
  border: 1px solid var(--gf4e-border);
  overflow: hidden;
}

.gf4e-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--gf4e-text);
  transition: var(--gf4e-transition);
}

.gf4e-faq-question:hover {
  color: var(--gf4e-accent);
}

.gf4e-faq-icon {
  transition: transform 0.3s ease;
  color: var(--gf4e-accent);
  font-size: 18px;
}

.gf4e-faq-icon-open {
  transform: rotate(180deg);
}

.gf4e-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.gf4e-faq-open {
  max-height: 500px;
}

.gf4e-faq-answer p {
  padding: 0 16px 14px;
  font-size: 13px;
  color: var(--gf4e-text-muted);
  line-height: 1.7;
}

/* ===== Internal Links ===== */
.gf4e-internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.gf4e-internal-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: var(--gf4e-bg-card);
  color: var(--gf4e-text);
  border-radius: 20px;
  font-size: 12px;
  border: 1px solid var(--gf4e-border);
  transition: var(--gf4e-transition);
}

.gf4e-internal-link:hover {
  border-color: var(--gf4e-accent);
  color: var(--gf4e-accent);
  text-decoration: none;
}

/* ===== Footer ===== */
.gf4e-footer {
  background: var(--gf4e-bg-dark);
  border-top: 2px solid var(--gf4e-accent);
  padding: 28px 16px 16px;
  margin-top: 24px;
}

.gf4e-footer-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gf4e-border);
}

.gf4e-footer-partner {
  padding: 4px 12px;
  background: var(--gf4e-bg-card);
  border-radius: 6px;
  font-size: 11px;
  color: var(--gf4e-text-muted);
  border: 1px solid var(--gf4e-border);
}

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

.gf4e-footer-link {
  font-size: 12px;
  color: var(--gf4e-text-muted);
  transition: var(--gf4e-transition);
}

.gf4e-footer-link:hover {
  color: var(--gf4e-accent);
}

.gf4e-footer-copy {
  text-align: center;
  font-size: 11px;
  color: var(--gf4e-text-muted);
  opacity: 0.7;
  margin-top: 12px;
}

/* ===== Bottom Navigation ===== */
.gf4e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--gf4e-bg-dark), #111d27);
  border-top: 2px solid var(--gf4e-accent);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 4px;
  box-shadow: 0 -2px 12px var(--gf4e-shadow);
}

.gf4e-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: var(--gf4e-text-muted);
  cursor: pointer;
  transition: var(--gf4e-transition);
  padding: 4px 2px;
  border-radius: 10px;
}

.gf4e-nav-btn:hover,
.gf4e-nav-btn.gf4e-nav-active {
  color: var(--gf4e-accent);
  background: rgba(255, 107, 107, 0.08);
}

.gf4e-nav-btn i,
.gf4e-nav-btn .material-icons-outlined,
.gf4e-nav-btn .bi {
  font-size: 22px;
  margin-bottom: 2px;
}

.gf4e-nav-label {
  font-size: 10px;
  font-weight: 500;
}

/* ===== Back to Top ===== */
.gf4e-back-top {
  position: fixed;
  bottom: 72px;
  right: 16px;
  z-index: 999;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gf4e-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 10px rgba(255, 107, 107, 0.5);
  transition: var(--gf4e-transition);
}

.gf4e-back-top:hover {
  transform: translateY(-2px);
}

/* ===== Help Page Content ===== */
.gf4e-help-hero {
  background: linear-gradient(135deg, var(--gf4e-bg-dark), var(--gf4e-bg-card));
  border-radius: var(--gf4e-radius-lg);
  padding: 24px 18px;
  text-align: center;
  margin-bottom: 20px;
  border: 1px solid var(--gf4e-border);
}

.gf4e-help-hero h1 {
  font-size: 22px;
  color: var(--gf4e-gold);
  margin-bottom: 8px;
}

.gf4e-help-hero p {
  font-size: 14px;
  color: var(--gf4e-text-muted);
}

.gf4e-step-card {
  background: var(--gf4e-bg-card);
  border-radius: var(--gf4e-radius);
  padding: 16px;
  margin-bottom: 12px;
  border-left: 4px solid var(--gf4e-accent);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.gf4e-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--gf4e-accent), #ff8a80);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.gf4e-step-content h3 {
  font-size: 15px;
  color: var(--gf4e-gold);
  margin-bottom: 4px;
}

.gf4e-step-content p {
  font-size: 13px;
  color: var(--gf4e-text-muted);
  line-height: 1.6;
}

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

  .gf4e-menu-toggle {
    display: block;
  }

  .gf4e-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .gf4e-game-name {
    font-size: 10px;
  }
}

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

  .gf4e-main {
    max-width: 768px;
    margin: 0 auto;
  }

  .gf4e-game-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .gf4e-features {
    grid-template-columns: repeat(4, 1fr);
  }
}
