/* PH888ONE - Core Layout Stylesheet */
/* All CSS classes use gd0c- prefix */

:root {
  --gd0c-primary: #FF4500;
  --gd0c-primary-dark: #E63D00;
  --gd0c-secondary: #FF1493;
  --gd0c-tertiary: #FF7F50;
  --gd0c-bg-dark: #2C3E50;
  --gd0c-bg-light: #BBBBBB;
  --gd0c-text-light: #F5F5F5;
  --gd0c-text-dark: #1A1A1A;
  --gd0c-border: #95A5A6;
  --gd0c-success: #27AE60;
  --gd0c-warning: #F39C12;
  --gd0c-danger: #E74C3C;
  --gd0c-radius: 8px;
  --gd0c-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

* {
  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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--gd0c-text-light);
  background-color: var(--gd0c-bg-dark);
  padding-bottom: 80px;
}

/* Header Styles */
.gd0c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--gd0c-bg-dark);
  border-bottom: 2px solid var(--gd0c-primary);
  z-index: 1000;
  padding: 0.8rem 1rem;
  box-shadow: var(--gd0c-shadow);
}

.gd0c-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
  gap: 1rem;
}

.gd0c-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--gd0c-primary);
  font-weight: bold;
  font-size: 1.6rem;
}

.gd0c-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.gd0c-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gd0c-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--gd0c-radius);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
}

.gd0c-btn-primary {
  background-color: var(--gd0c-primary);
  color: white;
}

.gd0c-btn-primary:hover {
  background-color: var(--gd0c-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 69, 0, 0.3);
}

.gd0c-btn-outline {
  background-color: transparent;
  color: var(--gd0c-primary);
  border: 2px solid var(--gd0c-primary);
}

.gd0c-btn-outline:hover {
  background-color: var(--gd0c-primary);
  color: white;
}

.gd0c-menu-trigger {
  background: none;
  border: none;
  color: var(--gd0c-primary);
  cursor: pointer;
  font-size: 1.6rem;
  padding: 0.4rem;
}

.gd0c-menu-trigger:hover {
  color: var(--gd0c-secondary);
}

/* Mobile Menu */
#web4d0-mobile-menu {
  position: fixed;
  top: 60px;
  left: -100%;
  width: 280px;
  height: calc(100vh - 60px);
  background-color: var(--gd0c-bg-dark);
  border-right: 2px solid var(--gd0c-primary);
  transition: left 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
  padding: 1rem 0;
}

#web4d0-mobile-menu.gd0c-menu-open {
  left: 0;
}

.gd0c-menu-item {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--gd0c-text-light);
  text-decoration: none;
  border-bottom: 1px solid var(--gd0c-border);
  transition: background-color 0.2s ease;
}

.gd0c-menu-item:hover {
  background-color: rgba(255, 69, 0, 0.1);
  color: var(--gd0c-primary);
}

#web4d0-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

#web4d0-menu-backdrop.gd0c-backdrop-active {
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 1;
  pointer-events: all;
}

/* Container and Layout */
.gd0c-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.gd0c-wrapper {
  padding-top: 70px;
}

.gd0c-main {
  width: 100%;
  padding-bottom: 80px;
}

/* Typography */
h1 {
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: var(--gd0c-primary);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.2rem;
  color: var(--gd0c-text-light);
}

h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--gd0c-secondary);
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--gd0c-text-light);
}

a {
  color: var(--gd0c-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gd0c-secondary);
  text-decoration: underline;
}

/* Card Component */
.gd0c-card {
  background-color: rgba(255, 69, 0, 0.1);
  border: 1px solid var(--gd0c-primary);
  border-radius: var(--gd0c-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gd0c-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255, 69, 0, 0.2);
}

/* Game Grid */
.gd0c-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.gd0c-game-item {
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.gd0c-game-item:hover {
  transform: scale(1.08);
}

.gd0c-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--gd0c-radius);
  object-fit: cover;
  border: 2px solid var(--gd0c-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gd0c-game-icon:hover {
  border-color: var(--gd0c-secondary);
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.3);
}

.gd0c-game-name {
  font-size: 1rem;
  color: var(--gd0c-text-light);
  margin-top: 0.4rem;
  line-height: 1.3;
  min-height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Carousel */
.gd0c-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--gd0c-radius);
  margin-bottom: 1.5rem;
  aspect-ratio: 4/3;
}

.gd0c-carousel-slide {
  width: 100%;
  height: 100%;
  display: none;
  cursor: pointer;
}

.gd0c-carousel-slide.gd0c-active {
  display: block;
}

.gd0c-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gd0c-carousel-indicator {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}

.gd0c-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gd0c-carousel-dot.gd0c-active {
  background-color: var(--gd0c-primary);
  transform: scale(1.3);
}

/* Footer */
.gd0c-footer {
  background-color: rgba(44, 62, 80, 0.95);
  border-top: 2px solid var(--gd0c-primary);
  padding: 1.5rem 1rem 1rem;
  margin-top: 2rem;
}

.gd0c-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.gd0c-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--gd0c-border);
  padding-bottom: 1rem;
}

.gd0c-footer-link {
  color: var(--gd0c-primary);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.gd0c-footer-link:hover {
  color: var(--gd0c-secondary);
}

.gd0c-partners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gd0c-border);
}

.gd0c-partner-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.gd0c-partner-logo:hover {
  opacity: 1;
}

.gd0c-footer-bottom {
  text-align: center;
  font-size: 1.1rem;
  color: var(--gd0c-text-light);
}

/* Bottom Navigation */
.gd0c-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--gd0c-bg-dark);
  border-top: 2px solid var(--gd0c-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 64px;
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

.gd0c-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--gd0c-text-light);
  font-size: 1rem;
  gap: 0.3rem;
}

.gd0c-nav-item:hover,
.gd0c-nav-item.gd0c-active {
  color: var(--gd0c-primary);
  transform: scale(1.1);
}

.gd0c-nav-icon {
  font-size: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
}

.gd0c-nav-label {
  font-size: 1rem;
  font-weight: 500;
}

/* Section Spacing */
.gd0c-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gd0c-border);
}

.gd0c-section:last-child {
  border-bottom: none;
}

/* Responsive */
@media (min-width: 769px) {
  .gd0c-bottom-nav {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .gd0c-menu-trigger {
    display: none;
  }

  #web4d0-mobile-menu {
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    border: none;
    padding: 0;
    display: flex;
    gap: 2rem;
    flex-direction: row;
  }

  .gd0c-menu-item {
    padding: 0;
    border-bottom: none;
    font-size: 1.2rem;
  }

  .gd0c-game-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Utility Classes */
.gd0c-text-center {
  text-align: center;
}

.gd0c-text-bold {
  font-weight: bold;
}

.gd0c-text-orange {
  color: var(--gd0c-primary);
}

.gd0c-text-pink {
  color: var(--gd0c-secondary);
}

.gd0c-flex {
  display: flex;
  gap: 1rem;
}

.gd0c-flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gd0c-mt-1 { margin-top: 0.8rem; }
.gd0c-mt-2 { margin-top: 1.5rem; }
.gd0c-mb-1 { margin-bottom: 0.8rem; }
.gd0c-mb-2 { margin-bottom: 1.5rem; }
