/**
 * Hanna Online - Core Stylesheet
 * All classes use g1c2- prefix for namespace isolation
 * Color palette: #34495E (dark bg), #D3D3D3 (light gray),
 *   #FFEBCD (blanched almond), #E65100 (orange accent)
 * Mobile-first design, max-width 430px
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
  --g1c2-primary: #E65100;
  --g1c2-bg: #34495E;
  --g1c2-bg-dark: #2C3E50;
  --g1c2-bg-light: #3D566E;
  --g1c2-text: #D3D3D3;
  --g1c2-text-light: #FFEBCD;
  --g1c2-accent: #E65100;
  --g1c2-accent-hover: #FF6D00;
  --g1c2-border: rgba(211,211,211,0.15);
  --g1c2-shadow: 0 2px 12px rgba(0,0,0,0.25);
  --g1c2-radius: 8px;
  --g1c2-radius-lg: 12px;
  --g1c2-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --g1c2-header-h: 56px;
  --g1c2-bottom-h: 60px;
  font-size: 62.5%;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--g1c2-font);
  font-size: 1.6rem;
  line-height: 1.5rem;
  color: var(--g1c2-text);
  background: var(--g1c2-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--g1c2-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--g1c2-accent-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ============================================
   Layout Containers
   ============================================ */
.g1c2-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.g1c2-wrapper {
  width: 100%;
  overflow-x: hidden;
}
.g1c2-main {
  padding-top: var(--g1c2-header-h);
  padding-bottom: calc(var(--g1c2-bottom-h) + 2rem);
  min-height: 100vh;
}

/* ============================================
   Header / Top Navigation
   ============================================ */
.g1c2-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--g1c2-header-h);
  background: var(--g1c2-bg-dark);
  border-bottom: 1px solid var(--g1c2-border);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  transition: box-shadow 0.3s;
}
.g1c2-header-scrolled {
  box-shadow: var(--g1c2-shadow);
}
.g1c2-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}
.g1c2-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.g1c2-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.g1c2-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g1c2-text-light);
  letter-spacing: 0.02em;
}
.g1c2-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.g1c2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  border-radius: var(--g1c2-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.g1c2-btn-register {
  background: var(--g1c2-accent);
  color: #fff;
}
.g1c2-btn-register:hover {
  background: var(--g1c2-accent-hover);
  transform: scale(1.03);
}
.g1c2-btn-login {
  background: transparent;
  color: var(--g1c2-text-light);
  border: 1.5px solid var(--g1c2-accent);
}
.g1c2-btn-login:hover {
  background: rgba(230,81,0,0.12);
}

/* Hamburger */
.g1c2-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  border: none;
  background: transparent;
  gap: 5px;
  padding: 0;
}
.g1c2-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--g1c2-text);
  border-radius: 2px;
  transition: all 0.3s;
}
.g1c2-hamburger.g1c2-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.g1c2-hamburger.g1c2-active span:nth-child(2) {
  opacity: 0;
}
.g1c2-hamburger.g1c2-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Mobile Slide Menu
   ============================================ */
.g1c2-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
}
.g1c2-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100%;
  background: var(--g1c2-bg-dark);
  z-index: 9999;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
  padding: 1.5rem 0;
}
.g1c2-menu-header {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid var(--g1c2-border);
  margin-bottom: 1rem;
}
.g1c2-menu-header h3 {
  font-size: 1.8rem;
  color: var(--g1c2-text-light);
  font-weight: 700;
}
.g1c2-menu-section {
  padding: 0.5rem 1.5rem;
  font-size: 1.1rem;
  color: var(--g1c2-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-top: 1rem;
}
.g1c2-menu-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.5rem;
  color: var(--g1c2-text);
  font-size: 1.4rem;
  transition: background 0.2s;
}
.g1c2-menu-link:hover {
  background: rgba(230,81,0,0.1);
  color: var(--g1c2-text-light);
}
.g1c2-menu-link i, .g1c2-menu-link .material-icons {
  font-size: 2rem;
  width: 2rem;
  text-align: center;
}

/* ============================================
   Carousel / Banner
   ============================================ */
.g1c2-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--g1c2-radius-lg);
  margin-bottom: 1.5rem;
}
.g1c2-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.g1c2-slide:first-child {
  position: relative;
  opacity: 1;
  z-index: 2;
}
.g1c2-slide img {
  width: 100%;
  aspect-ratio: 16/8;
  object-fit: cover;
  border-radius: var(--g1c2-radius-lg);
}
.g1c2-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.g1c2-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
  border: none;
}
.g1c2-dot-active {
  background: var(--g1c2-accent);
}

/* ============================================
   Section Styles
   ============================================ */
.g1c2-section {
  padding: 2rem 0;
}
.g1c2-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g1c2-text-light);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--g1c2-accent);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.g1c2-section-title i {
  color: var(--g1c2-accent);
  font-size: 2rem;
}

/* ============================================
   Game Grid
   ============================================ */
.g1c2-game-category {
  margin-bottom: 2rem;
}
.g1c2-game-category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--g1c2-text-light);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.g1c2-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.g1c2-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.g1c2-game-card:hover {
  transform: scale(1.05);
}
.g1c2-game-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--g1c2-radius);
  object-fit: cover;
  border: 2px solid var(--g1c2-border);
  transition: border-color 0.2s;
}
.g1c2-game-card:hover img {
  border-color: var(--g1c2-accent);
}
.g1c2-game-name {
  font-size: 1.1rem;
  color: var(--g1c2-text);
  text-align: center;
  margin-top: 0.3rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* ============================================
   Content Cards
   ============================================ */
.g1c2-card {
  background: var(--g1c2-bg-light);
  border-radius: var(--g1c2-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--g1c2-border);
}
.g1c2-card h2, .g1c2-card h3 {
  color: var(--g1c2-text-light);
  margin-bottom: 0.8rem;
}
.g1c2-card p {
  color: var(--g1c2-text);
  margin-bottom: 0.6rem;
  line-height: 1.6;
}
.g1c2-card-link {
  color: var(--g1c2-accent);
  font-weight: 600;
  cursor: pointer;
}
.g1c2-card-link:hover {
  text-decoration: underline;
}

/* ============================================
   Promo Button Large
   ============================================ */
.g1c2-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--g1c2-accent);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: var(--g1c2-radius-lg);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  width: 100%;
  max-width: 320px;
}
.g1c2-promo-btn:hover {
  background: var(--g1c2-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(230,81,0,0.35);
}

/* ============================================
   Footer
   ============================================ */
.g1c2-footer {
  background: var(--g1c2-bg-dark);
  padding: 2rem 0 1.5rem;
  border-top: 1px solid var(--g1c2-border);
}
.g1c2-footer-brand {
  text-align: center;
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--g1c2-border);
}
.g1c2-footer-brand p {
  font-size: 1.3rem;
  color: var(--g1c2-text);
  line-height: 1.5;
  margin-bottom: 0.4rem;
}
.g1c2-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.g1c2-footer-link {
  color: var(--g1c2-accent);
  font-size: 1.2rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--g1c2-border);
  border-radius: 4px;
  transition: all 0.2s;
}
.g1c2-footer-link:hover {
  background: rgba(230,81,0,0.1);
  border-color: var(--g1c2-accent);
}
.g1c2-footer-copy {
  text-align: center;
  font-size: 1.2rem;
  color: rgba(211,211,211,0.5);
}

/* ============================================
   Bottom Navigation (Mobile Fixed)
   ============================================ */
.g1c2-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--g1c2-bottom-h);
  background: var(--g1c2-bg-dark);
  border-top: 1px solid var(--g1c2-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.g1c2-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--g1c2-text);
  transition: all 0.2s;
  padding: 0.2rem;
  gap: 2px;
}
.g1c2-bottom-nav-btn:hover,
.g1c2-bottom-nav-active {
  color: var(--g1c2-accent);
}
.g1c2-bottom-nav-btn i,
.g1c2-bottom-nav-btn .material-icons,
.g1c2-bottom-nav-btn ion-icon,
.g1c2-bottom-nav-btn bi {
  font-size: 2.2rem;
  transition: transform 0.2s;
}
.g1c2-bottom-nav-btn:hover i,
.g1c2-bottom-nav-btn:hover .material-icons,
.g1c2-bottom-nav-btn:hover ion-icon {
  transform: scale(1.15);
}
.g1c2-bottom-nav-btn span {
  font-size: 1rem;
  font-weight: 500;
}
.g1c2-bottom-nav-active i,
.g1c2-bottom-nav-active .material-icons,
.g1c2-bottom-nav-active ion-icon {
  color: var(--g1c2-accent);
}
.g1c2-bottom-nav-active span {
  color: var(--g1c2-accent);
  font-weight: 600;
}

/* ============================================
   Helpers & Utilities
   ============================================ */
.g1c2-text-center { text-align: center; }
.g1c2-mb-1 { margin-bottom: 1rem; }
.g1c2-mb-2 { margin-bottom: 2rem; }
.g1c2-mt-1 { margin-top: 1rem; }
.g1c2-mt-2 { margin-top: 2rem; }
.g1c2-py-1 { padding: 1rem 0; }
.g1c2-hidden { display: none !important; }
.g1c2-text-accent { color: var(--g1c2-accent); }
.g1c2-text-light { color: var(--g1c2-text-light); }
.g1c2-promo-text {
  font-weight: 700;
  color: var(--g1c2-accent);
  cursor: pointer;
}
.g1c2-promo-text:hover {
  text-decoration: underline;
}

/* CTA center */
.g1c2-cta-center {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
}

/* ============================================
   Responsive - Desktop hide bottom nav
   ============================================ */
@media (min-width: 769px) {
  .g1c2-bottom-nav { display: none; }
  .g1c2-main { padding-bottom: 2rem; }
  .g1c2-container { max-width: 600px; }
}
@media (max-width: 768px) {
  .g1c2-main {
    padding-bottom: calc(var(--g1c2-bottom-h) + 2rem);
  }
}
