/**
 * ABC Link - Core Stylesheet
 * File: css/design-da15.css
 * Class prefix: g15e-
 */

/* ===== CSS Variables ===== */
:root {
  --g15e-primary: #00FFFF;
  --g15e-secondary: #DCDCDC;
  --g15e-accent: #BDC3C7;
  --g15e-light: #F5F5F5;
  --g15e-dark: #0D1117;
  --g15e-card-bg: #161B22;
  --g15e-header-bg: #0D1117;
  --g15e-footer-bg: #0A0E14;
  --g15e-hover: #00CED1;
  --g15e-text: #E6EDF3;
  --g15e-text-muted: #8B949E;
  --g15e-border: #21262D;
  --g15e-gradient: linear-gradient(135deg, #00FFFF 0%, #00CED1 100%);
  --g15e-radius: 8px;
  --g15e-shadow: 0 4px 12px rgba(0, 255, 255, 0.15);
  font-size: 62.5%;
}

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

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

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

/* ===== Header ===== */
.g15e-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: var(--g15e-header-bg);
  border-bottom: 1px solid var(--g15e-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.g15e-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.g15e-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

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

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

.g15e-btn-login {
  padding: 6px 14px;
  border: 1px solid var(--g15e-primary);
  border-radius: 20px;
  background: transparent;
  color: var(--g15e-primary);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 34px;
  min-width: 44px;
}

.g15e-btn-register {
  padding: 6px 14px;
  border: none;
  border-radius: 20px;
  background: var(--g15e-gradient);
  color: var(--g15e-dark);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 34px;
  min-width: 44px;
}

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

.g15e-menu-toggle {
  background: none;
  border: none;
  color: var(--g15e-primary);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Mobile Menu ===== */
.g15e-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.g15e-overlay-active { opacity: 1; visibility: visible; }

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

.g15e-menu-close {
  background: none;
  border: none;
  color: var(--g15e-primary);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 44px;
  min-height: 44px;
}

.g15e-menu-links {
  list-style: none;
  margin-top: 50px;
}

.g15e-menu-links li {
  border-bottom: 1px solid var(--g15e-border);
}

.g15e-menu-links a {
  display: block;
  padding: 14px 0;
  color: var(--g15e-text);
  font-size: 1.5rem;
  transition: color 0.2s;
}

.g15e-menu-links a:hover { color: var(--g15e-primary); }

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

.g15e-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.g15e-slide-active { display: block; }

.g15e-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

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

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

.g15e-dot-active { background: var(--g15e-primary); }

/* ===== Main Content ===== */
.g15e-main {
  padding: 16px 12px;
}

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

.g15e-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g15e-primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--g15e-border);
}

/* ===== Category Tabs ===== */
.g15e-cat-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.g15e-cat-tabs::-webkit-scrollbar { display: none; }

.g15e-cat-tab {
  padding: 8px 16px;
  border: 1px solid var(--g15e-border);
  border-radius: 20px;
  background: var(--g15e-card-bg);
  color: var(--g15e-text-muted);
  font-size: 1.3rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.g15e-cat-active {
  background: var(--g15e-gradient);
  color: var(--g15e-dark);
  border-color: transparent;
  font-weight: 600;
}

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

.g15e-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--g15e-radius);
  overflow: hidden;
}

.g15e-game-item:hover { transform: scale(1.05); }

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

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

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

.g15e-content-block h2 {
  font-size: 1.8rem;
  color: var(--g15e-primary);
  margin-bottom: 12px;
}

.g15e-content-block h3 {
  font-size: 1.5rem;
  color: var(--g15e-primary);
  margin-bottom: 8px;
}

.g15e-content-block p {
  color: var(--g15e-text);
  line-height: 1.7;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

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

.g15e-content-block li {
  color: var(--g15e-text);
  font-size: 1.4rem;
  margin-bottom: 6px;
  line-height: 1.5;
}

/* ===== CTA Button ===== */
.g15e-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--g15e-gradient);
  color: var(--g15e-dark);
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  min-height: 48px;
  min-width: 200px;
}

.g15e-cta-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: var(--g15e-shadow);
}

.g15e-cta-center {
  text-align: center;
  margin: 20px 0;
}

/* ===== Affiliate Text Link ===== */
.g15e-affiliate-link {
  color: var(--g15e-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}
.g15e-affiliate-link:hover { color: var(--g15e-hover); }

/* ===== Bottom Navigation ===== */
.g15e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: var(--g15e-header-bg);
  border-top: 1px solid var(--g15e-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.g15e-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--g15e-text-muted);
  font-size: 1rem;
  cursor: pointer;
  min-width: 60px;
  min-height: 56px;
  transition: all 0.2s;
  gap: 2px;
}

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

.g15e-bottom-btn .material-icons,
.g15e-bottom-btn .bi,
.g15e-bottom-btn ion-icon {
  font-size: 24px;
}

.g15e-bottom-btn span {
  font-size: 1rem;
  line-height: 1.2;
}

/* ===== Footer ===== */
.g15e-footer {
  background: var(--g15e-footer-bg);
  padding: 24px 16px;
  border-top: 1px solid var(--g15e-border);
}

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

.g15e-footer-brand p {
  color: var(--g15e-text-muted);
  font-size: 1.3rem;
  line-height: 1.6;
}

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

.g15e-footer-btn {
  padding: 10px 18px;
  background: var(--g15e-gradient);
  color: var(--g15e-dark);
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.g15e-footer-btn:hover { opacity: 0.9; }

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

.g15e-footer-links a {
  color: var(--g15e-text-muted);
  font-size: 1.2rem;
  transition: color 0.2s;
}
.g15e-footer-links a:hover { color: var(--g15e-primary); }

.g15e-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
}

.g15e-partners img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.g15e-partners img:hover { opacity: 1; }

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

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

.g15e-faq-q {
  padding: 14px 16px;
  font-weight: 600;
  color: var(--g15e-primary);
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.g15e-faq-a {
  padding: 0 16px 14px;
  color: var(--g15e-text);
  font-size: 1.3rem;
  line-height: 1.6;
}

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

@media (min-width: 769px) {
  .g15e-bottom-nav { display: none; }
  .g15e-header { max-width: 430px; }
}

/* ===== Utility ===== */
.g15e-text-center { text-align: center; }
.g15e-mt-10 { margin-top: 10px; }
.g15e-mb-10 { margin-bottom: 10px; }
.g15e-mb-20 { margin-bottom: 20px; }
.g15e-hidden { display: none; }
