/**
 * PH90 - Main CSS Stylesheet
 * All classes use gd46 prefix to avoid conflicts
 * Color palette: #4DB6AC | #008B8B | #262626 | #40E0D0
 */

/* CSS Variables */
:root {
  --gd46-primary: #4DB6AC;
  --gd46-secondary: #008B8B;
  --gd46-dark: #262626;
  --gd46-accent: #40E0D0;
  --gd46-light: #E0F7FA;
  --gd46-white: #FFFFFF;
  --gd46-gray-100: #F5F5F5;
  --gd46-gray-200: #EEEEEE;
  --gd46-gray-300: #BDBDBD;
  --gd46-gray-600: #757575;
  --gd46-gray-800: #424242;
  --gd46-text: #212121;
  --gd46-shadow: rgba(0, 0, 0, 0.1);
  --gd46-shadow-lg: rgba(0, 0, 0, 0.15);
}

/* Reset and Base Styles */
* {
  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.6rem;
  line-height: 1.6;
  color: var(--gd46-text);
  background: linear-gradient(135deg, #F5F5F5 0%, #E0F2F1 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.gd46-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
  background: var(--gd46-white);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

/* Header Styles */
.gd46-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, var(--gd46-secondary) 0%, var(--gd46-primary) 100%);
  padding: 1rem 1.5rem;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gd46-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--gd46-white);
  font-weight: 700;
  font-size: 1.8rem;
}

.gd46-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.gd46-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.gd46-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.gd46-btn-primary {
  background: var(--gd46-accent);
  color: var(--gd46-dark);
}

.gd46-btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: var(--gd46-white);
  border: 2px solid var(--gd46-white);
}

.gd46-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gd46-btn:active {
  transform: scale(0.98);
}

.gd46-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.4rem;
  color: var(--gd46-white);
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.gd46-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.gd46-menu-overlay.gd46-active {
  opacity: 1;
  visibility: visible;
}

.gd46-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--gd46-white);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.gd46-mobile-menu.gd46-active {
  right: 0;
}

.gd46-menu-header {
  padding: 2rem 1.5rem 1rem;
  background: linear-gradient(135deg, var(--gd46-secondary) 0%, var(--gd46-primary) 100%);
  color: var(--gd46-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gd46-menu-close {
  background: none;
  border: none;
  color: var(--gd46-white);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

.gd46-menu-links {
  padding: 1rem 0;
}

.gd46-menu-link {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--gd46-text);
  text-decoration: none;
  font-size: 1.5rem;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.gd46-menu-link:hover {
  background: var(--gd46-light);
  border-left-color: var(--gd46-primary);
  color: var(--gd46-secondary);
}

/* Main Content */
.gd46-main {
  padding-top: 70px;
  padding-bottom: 80px;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .gd46-main {
    padding-bottom: 80px;
  }
}

/* Carousel */
.gd46-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gd46-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.gd46-carousel-slide {
  min-width: 100%;
  position: relative;
}

.gd46-carousel-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.gd46-carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--gd46-white);
}

/* Section Styles */
.gd46-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--gd46-gray-200);
}

.gd46-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gd46-secondary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.gd46-section-title::before {
  content: '';
  width: 4px;
  height: 2.4rem;
  background: linear-gradient(to bottom, var(--gd46-primary), var(--gd46-accent));
  border-radius: 2px;
}

/* Game Grid */
.gd46-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.gd46-game-card {
  background: var(--gd46-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.gd46-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gd46-game-card:active {
  transform: scale(0.98);
}

.gd46-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.gd46-game-name {
  padding: 0.6rem 0.4rem;
  font-size: 1rem;
  color: var(--gd46-text);
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--gd46-light);
}

/* Promotional Links */
.gd46-promo-link {
  color: var(--gd46-secondary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--gd46-accent);
  transition: all 0.3s ease;
}

.gd46-promo-link:hover {
  color: var(--gd46-primary);
  border-color: var(--gd46-primary);
}

/* Feature Cards */
.gd46-feature-card {
  background: linear-gradient(135deg, var(--gd46-light) 0%, var(--gd46-white) 100%);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--gd46-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.gd46-feature-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gd46-secondary);
  margin-bottom: 0.8rem;
}

.gd46-feature-text {
  font-size: 1.4rem;
  color: var(--gd46-gray-600);
  line-height: 1.6;
}

/* FAQ Styles */
.gd46-faq-item {
  background: var(--gd46-white);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gd46-faq-question {
  padding: 1.2rem 1.5rem;
  background: linear-gradient(135deg, var(--gd46-primary) 0%, var(--gd46-secondary) 100%);
  color: var(--gd46-white);
  font-weight: 600;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gd46-faq-answer {
  padding: 1.5rem;
  background: var(--gd46-white);
  color: var(--gd46-gray-800);
  line-height: 1.6;
}

/* Bottom Navigation */
.gd46-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--gd46-dark);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

@media (min-width: 769px) {
  .gd46-bottom-nav {
    display: none;
  }
}

.gd46-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--gd46-gray-300);
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 0.5rem;
}

.gd46-nav-icon {
  font-size: 24px;
  margin-bottom: 0.3rem;
  transition: transform 0.3s ease;
}

.gd46-nav-text {
  font-size: 10px;
  font-weight: 500;
}

.gd46-nav-item:hover {
  color: var(--gd46-accent);
}

.gd46-nav-item:hover .gd46-nav-icon {
  transform: scale(1.1);
}

.gd46-nav-item.gd46-nav-active {
  color: var(--gd46-accent);
}

.gd46-nav-item.gd46-nav-active .gd46-nav-icon {
  transform: scale(1.15);
}

/* Footer */
.gd46-footer {
  background: linear-gradient(135deg, var(--gd46-dark) 0%, #1a1a1a 100%);
  color: var(--gd46-gray-300);
  padding: 2rem 1.5rem 100px;
  margin-top: 2rem;
}

.gd46-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gd46-footer-link {
  color: var(--gd46-accent);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.gd46-footer-link:hover {
  color: var(--gd46-primary);
}

.gd46-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.gd46-partner-logo {
  width: 50px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.gd46-partner-logo:hover {
  opacity: 1;
}

.gd46-copyright {
  text-align: center;
  font-size: 1.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gd46-gray-800);
  color: var(--gd46-gray-600);
}

/* H1 Title */
.gd46-h1-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gd46-dark);
  margin: 1.5rem 0;
  line-height: 1.3;
  padding: 0 0.5rem;
}

/* Utility Classes */
.gd46-mb-1 { margin-bottom: 1rem; }
.gd46-mb-2 { margin-bottom: 2rem; }
.gd46-mt-1 { margin-top: 1rem; }
.gd46-mt-2 { margin-top: 2rem; }
.gd46-text-center { text-align: center; }
.gd46-text-primary { color: var(--gd46-primary); }
.gd46-text-secondary { color: var(--gd46-secondary); }

/* Touch Feedback */
.gd46-btn:active,
.gd46-game-card:active,
.gd46-nav-item:active {
  transform: scale(0.95);
}

/* Responsive Adjustments */
@media (max-width: 380px) {
  .gd46-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gd46-section-title {
    font-size: 1.8rem;
  }
}
