/**
 * 7Game Asia - Main Stylesheet
 * All classes use prefix: g19d-
 * Mobile-first responsive design
 * Color scheme: #34495E (dark) | #F4A460 (sandy)
 */

/* ===== CSS VARIABLES ===== */
:root {
  --g19d-primary: #F4A460;
  --g19d-secondary: #34495E;
  --g19d-dark: #2C3E50;
  --g19d-light: #ECF0F1;
  --g19d-accent: #E67E22;
  --g19d-success: #27AE60;
  --g19d-warning: #F39C12;
  --g19d-danger: #E74C3C;
  --g19d-white: #FFFFFF;
  --g19d-black: #000000;
  --g19d-gray: #95A5A6;
  --g19d-text: #2C3E50;
  --g19d-bg: #FFFFFF;
  --g19d-border: #BDC3C7;
  --g19d-shadow: rgba(0, 0, 0, 0.1);
  --g19d-shadow-lg: rgba(0, 0, 0, 0.2);
  --g19d-transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--g19d-text);
  background-color: var(--g19d-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--g19d-primary);
  text-decoration: none;
  transition: var(--g19d-transition);
}

a:hover {
  color: var(--g19d-accent);
}

/* ===== LAYOUT ===== */
.g19d-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.g19d-wrapper {
  padding-top: 60px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* ===== HEADER & NAVIGATION ===== */
.g19d-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--g19d-secondary) 0%, var(--g19d-dark) 100%);
  box-shadow: 0 2px 10px var(--g19d-shadow);
  z-index: 1000;
  transition: var(--g19d-transition);
}

.g19d-header-scrolled {
  box-shadow: 0 4px 20px var(--g19d-shadow-lg);
}

.g19d-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  max-width: 430px;
  margin: 0 auto;
}

.g19d-logo-section {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.g19d-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.g19d-site-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g19d-white);
  text-transform: capitalize;
}

.g19d-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.g19d-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--g19d-transition);
  text-align: center;
  display: inline-block;
}

.g19d-btn-primary {
  background: linear-gradient(135deg, var(--g19d-primary) 0%, var(--g19d-accent) 100%);
  color: var(--g19d-white);
}

.g19d-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 164, 96, 0.4);
}

.g19d-btn-outline {
  background: transparent;
  color: var(--g19d-white);
  border: 2px solid var(--g19d-primary);
}

.g19d-btn-outline:hover {
  background: var(--g19d-primary);
  color: var(--g19d-white);
}

.g19d-menu-toggle {
  background: transparent;
  border: none;
  color: var(--g19d-white);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== MOBILE MENU ===== */
.g19d-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--g19d-white);
  box-shadow: -2px 0 10px var(--g19d-shadow);
  transition: right 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
}

.g19d-menu-open {
  right: 0;
}

.g19d-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--g19d-transition);
  z-index: 9998;
}

.g19d-overlay-visible {
  opacity: 1;
  visibility: visible;
}

.g19d-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-bottom: 1px solid var(--g19d-border);
}

.g19d-menu-close {
  background: transparent;
  border: none;
  font-size: 2.4rem;
  cursor: pointer;
  color: var(--g19d-secondary);
}

.g19d-menu-list {
  list-style: none;
  padding: 2rem 0;
}

.g19d-menu-item {
  margin: 0;
}

.g19d-menu-link {
  display: block;
  padding: 1.2rem 2rem;
  color: var(--g19d-text);
  font-size: 1.5rem;
  font-weight: 500;
  transition: var(--g19d-transition);
  border-left: 3px solid transparent;
}

.g19d-menu-link:hover {
  background: var(--g19d-light);
  border-left-color: var(--g19d-primary);
  color: var(--g19d-primary);
}

/* ===== BOTTOM NAVIGATION ===== */
.g19d-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--g19d-secondary) 0%, var(--g19d-dark) 100%);
  box-shadow: 0 -2px 10px var(--g19d-shadow);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.8rem 0;
  height: 64px;
}

.g19d-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
  cursor: pointer;
  transition: var(--g19d-transition);
  border-radius: 8px;
}

.g19d-bottom-nav-item:hover {
  background: rgba(244, 164, 96, 0.1);
  transform: scale(1.05);
}

.g19d-bottom-nav-item.g19d-nav-active {
  background: rgba(244, 164, 96, 0.2);
}

.g19d-bottom-nav-item i {
  font-size: 2.4rem;
  color: var(--g19d-primary);
}

.g19d-bottom-nav-item span {
  font-size: 1.1rem;
  color: var(--g19d-white);
  text-align: center;
}

/* ===== CAROUSEL/SLIDER ===== */
.g19d-carousel {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--g19d-shadow);
}

.g19d-slides {
  position: relative;
  width: 100%;
  height: 200px;
}

.g19d-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.g19d-slide-active {
  opacity: 1;
  z-index: 1;
}

.g19d-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== GAME GRID ===== */
.g19d-section {
  padding: 2rem 0;
}

.g19d-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--g19d-border);
}

.g19d-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g19d-secondary);
  text-transform: capitalize;
}

.g19d-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.g19d-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--g19d-transition);
  padding: 0.8rem;
  border-radius: 8px;
  background: var(--g19d-white);
  box-shadow: 0 2px 8px var(--g19d-shadow);
}

.g19d-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px var(--g19d-shadow-lg);
}

.g19d-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.g19d-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g19d-game-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--g19d-text);
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
}

/* ===== CONTENT SECTIONS ===== */
.g19d-content-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--g19d-border);
}

.g19d-content-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--g19d-secondary);
  margin-bottom: 1.5rem;
}

.g19d-content-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--g19d-dark);
  margin: 2rem 0 1rem;
}

.g19d-content-text {
  font-size: 1.4rem;
  line-height: 1.7;
  color: var(--g19d-text);
  margin-bottom: 1.5rem;
}

.g19d-list {
  list-style: none;
  margin: 1.5rem 0;
}

.g19d-list-item {
  padding: 0.8rem 0;
  padding-left: 2.5rem;
  position: relative;
  font-size: 1.4rem;
  line-height: 1.6;
}

.g19d-list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--g19d-success);
  font-weight: 700;
  font-size: 1.6rem;
}

/* ===== FOOTER ===== */
.g19d-footer {
  background: var(--g19d-secondary);
  color: var(--g19d-white);
  padding: 3rem 0 8rem;
  margin-top: 4rem;
}

.g19d-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.g19d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.g19d-footer-link {
  color: var(--g19d-primary);
  font-size: 1.3rem;
  font-weight: 500;
}

.g19d-partners {
  margin: 2rem 0;
}

.g19d-partners-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--g19d-white);
}

.g19d-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.g19d-partner-logo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--g19d-white);
  padding: 0.5rem;
}

.g19d-partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.g19d-copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.2rem;
  color: var(--g19d-gray);
}

/* ===== UTILITIES ===== */
.g19d-text-center {
  text-align: center;
}

.g19d-text-bold {
  font-weight: 700;
  color: var(--g19d-primary);
}

.g19d-mb-1 { margin-bottom: 1rem; }
.g19d-mb-2 { margin-bottom: 2rem; }
.g19d-mb-3 { margin-bottom: 3rem; }
.g19d-mt-1 { margin-top: 1rem; }
.g19d-mt-2 { margin-top: 2rem; }
.g19d-mt-3 { margin-top: 3rem; }

.g19d-hidden {
  display: none;
}

/* ===== RESPONSIVE - DESKTOP ===== */
@media (min-width: 769px) {
  .g19d-bottom-nav {
    display: none;
  }

  .g19d-wrapper {
    padding-bottom: 2rem;
  }

  .g19d-nav-actions {
    gap: 1.5rem;
  }

  .g19d-menu-toggle {
    display: none;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes g19d-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.g19d-animate-on-scroll {
  opacity: 0;
}

.g19d-animated {
  animation: g19d-fadeIn 0.6s ease forwards;
}

/* ===== TOOLTIP ===== */
.g19d-tooltip {
  position: absolute;
  background: var(--g19d-dark);
  color: var(--g19d-white);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 1.2rem;
  white-space: nowrap;
  z-index: 10000;
  pointer-events: none;
}
