/* PH333 CSS - Mobile-first gaming platform
   Class prefix: g7df-
   Color scheme: #F8F9FA, #0E1621, #00E5FF, #E0FFFF, #0097A7 */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.g7df-wrapper {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #0E1621;
  background: #F8F9FA;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

.g7df-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #0E1621;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Header styles */
.g7df-header {
  background: linear-gradient(135deg, #0E1621 0%, #0097A7 100%);
  padding: 0.75rem 0;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 229, 255, 0.2);
}

.g7df-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.g7df-logo {
  display: flex;
  align-items: center;
  color: #00E5FF;
  font-weight: bold;
  font-size: 1.1rem;
}

.g7df-logo-img {
  width: 32px;
  height: 32px;
  margin-right: 0.5rem;
  border-radius: 50%;
}

.g7df-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Button styles */
.g7df-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  gap: 0.375rem;
  touch-action: manipulation;
}

.g7df-btn-primary {
  background: linear-gradient(135deg, #00E5FF 0%, #0097A7 100%);
  color: #0E1621;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.g7df-btn-primary:hover, .g7df-btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
}

.g7df-btn-secondary {
  background: linear-gradient(135deg, #E0FFFF 0%, #00E5FF 100%);
  color: #0E1621;
  border: 1px solid #00E5FF;
}

.g7df-btn-outline {
  background: transparent;
  color: #00E5FF;
  border: 1px solid #00E5FF;
}

.g7df-btn-accent {
  background: linear-gradient(135deg, #0097A7 0%, #00E5FF 100%);
  color: #F8F9FA;
}

.g7df-btn-small {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.g7df-btn-large {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

/* Hamburger menu */
.g7df-hamburger {
  display: flex;
  flex-direction: column;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
}

.g7df-hamburger span {
  width: 100%;
  height: 2px;
  background: #00E5FF;
  margin: 2px 0;
  transition: 0.3s;
  border-radius: 1px;
}

.g7df-hamburger-active span:nth-child(1) {
  transform: rotate(-45deg) translate(-4px, 4px);
}

.g7df-hamburger-active span:nth-child(2) {
  opacity: 0;
}

.g7df-hamburger-active span:nth-child(3) {
  transform: rotate(45deg) translate(-4px, -4px);
}

/* Mobile navigation */
.g7df-mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #0E1621 0%, #0097A7 100%);
  z-index: 1001;
  transition: right 0.3s ease;
  padding-top: 4rem;
}

.g7df-nav-open {
  right: 0;
}

.g7df-nav-menu {
  list-style: none;
  padding: 1rem;
}

.g7df-nav-item {
  margin-bottom: 0.5rem;
}

.g7df-nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  color: #E0FFFF;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
  gap: 0.75rem;
  font-weight: 500;
}

.g7df-nav-link:hover {
  background: rgba(0, 229, 255, 0.1);
  color: #00E5FF;
}

.g7df-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(14, 22, 33, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.g7df-overlay-active {
  opacity: 1;
  visibility: visible;
}

.g7df-nav-locked {
  overflow: hidden;
}

/* Main content */
.g7df-main {
  margin-top: 4rem;
  padding-bottom: 5rem;
}

.g7df-section {
  padding: 2rem 0;
}

.g7df-section-title {
  text-align: center;
  margin-bottom: 2rem;
  color: #0E1621;
  position: relative;
}

.g7df-section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, #00E5FF, #0097A7);
}

.g7df-bg-surface {
  background: linear-gradient(135deg, #E0FFFF 0%, #F8F9FA 100%);
}

/* Hero section */
.g7df-hero {
  background: linear-gradient(135deg, #0E1621 0%, #0097A7 50%, #00E5FF 100%);
  color: #F8F9FA;
  padding: 3rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.g7df-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(224,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.g7df-hero-content {
  position: relative;
  z-index: 2;
}

.g7df-hero h1 {
  color: #F8F9FA;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.g7df-hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Game grid */
.g7df-game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.g7df-game-item {
  background: #F8F9FA;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.g7df-game-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 229, 255, 0.2);
}

.g7df-game-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.g7df-game-info {
  padding: 1rem;
}

.g7df-game-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #0E1621;
}

.g7df-game-type {
  font-size: 0.75rem;
  color: #0097A7;
  background: rgba(0, 229, 255, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  display: inline-block;
}

/* Feature highlights */
.g7df-features {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.g7df-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: #F8F9FA;
  border-radius: 0.75rem;
  border-left: 4px solid #00E5FF;
  box-shadow: 0 2px 10px rgba(0, 229, 255, 0.1);
}

.g7df-feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #00E5FF, #0097A7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F8F9FA;
  font-size: 1.25rem;
}

.g7df-feature-content h4 {
  margin-bottom: 0.5rem;
  color: #0E1621;
}

.g7df-feature-content p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #555;
}

/* Stats display */
.g7df-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.g7df-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: linear-gradient(135deg, #E0FFFF, #F8F9FA);
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.g7df-stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: bold;
  color: #0097A7;
  margin-bottom: 0.5rem;
}

.g7df-stat-label {
  font-size: 0.875rem;
  color: #666;
}

/* Carousel */
.g7df-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  margin: 2rem 0;
}

.g7df-carousel-track {
  display: flex;
  transition: transform 0.3s ease;
}

.g7df-carousel-slide {
  flex: 0 0 100%;
}

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

.g7df-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.g7df-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.3);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.g7df-dot-active {
  background: #00E5FF;
}

/* Promotional sections */
.g7df-promo-section {
  background: linear-gradient(135deg, #0E1621, #0097A7);
  color: #F8F9FA;
  padding: 2.5rem 0;
  text-align: center;
  border-radius: 1rem;
  margin: 2rem 0;
}

.g7df-promo-content h3 {
  color: #00E5FF;
  margin-bottom: 1rem;
}

.g7df-promo-highlight {
  font-size: 1.25rem;
  font-weight: bold;
  color: #E0FFFF;
  margin: 1rem 0;
}

/* Filter buttons */
.g7df-filter-controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.g7df-filter-btn {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border: 1px solid #00E5FF;
  background: transparent;
  color: #00E5FF;
  border-radius: 1.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.g7df-filter-active,
.g7df-filter-btn:hover {
  background: #00E5FF;
  color: #0E1621;
}

/* Search input */
.g7df-search-box {
  margin-bottom: 1.5rem;
}

.g7df-search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #00E5FF;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: #F8F9FA;
  color: #0E1621;
}

.g7df-search-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.3);
}

/* Modal styles */
.g7df-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 22, 33, 0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.g7df-modal-active {
  opacity: 1;
  visibility: visible;
}

.g7df-modal-content {
  background: #F8F9FA;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 350px;
  width: 90%;
  text-align: center;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.g7df-modal-active .g7df-modal-content {
  transform: scale(1);
}

.g7df-modal-open {
  overflow: hidden;
}

/* Notification styles */
.g7df-notification {
  position: fixed;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #00E5FF, #0097A7);
  color: #F8F9FA;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
  z-index: 3000;
  max-width: 350px;
  width: 90%;
  text-align: center;
  font-weight: 500;
}

.g7df-notification-success {
  background: linear-gradient(135deg, #4CAF50, #45a049);
}

.g7df-notification-error {
  background: linear-gradient(135deg, #f44336, #da190b);
}

.g7df-notification-warning {
  background: linear-gradient(135deg, #ff9800, #f57000);
}

/* Footer */
.g7df-footer {
  background: #0E1621;
  color: #E0FFFF;
  padding: 2rem 0 6rem;
  text-align: center;
}

.g7df-footer-content {
  margin-bottom: 1rem;
}

.g7df-footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.g7df-footer-link {
  color: #E0FFFF;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.g7df-footer-link:hover {
  color: #00E5FF;
}

.g7df-copyright {
  font-size: 0.8125rem;
  opacity: 0.8;
  margin: 0;
}

/* Bottom navigation */
.g7df-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, #0E1621 0%, #0097A7 100%);
  display: flex;
  justify-content: space-around;
  padding: 0.75rem 0;
  box-shadow: 0 -2px 10px rgba(0, 229, 255, 0.2);
  z-index: 1000;
}

.g7df-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #E0FFFF;
  transition: all 0.3s ease;
  padding: 0.25rem;
  min-width: 60px;
}

.g7df-bottom-nav-item:hover,
.g7df-bottom-nav-item.g7df-active {
  color: #00E5FF;
  transform: translateY(-1px);
}

.g7df-bottom-nav-icon {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.g7df-bottom-nav-text {
  font-size: 0.6875rem;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 380px) {
  .g7df-container {
    padding: 0 0.75rem;
  }
  
  .g7df-game-grid {
    grid-template-columns: 1fr;
  }
  
  .g7df-stats {
    grid-template-columns: 1fr;
  }
  
  .g7df-btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }
  
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  
  .g7df-bottom-nav-text {
    font-size: 0.625rem;
  }
  
  .g7df-bottom-nav-icon {
    font-size: 1.125rem;
  }
}

/* Loading animation */
.g7df-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 229, 255, 0.3);
  border-radius: 50%;
  border-top-color: #00E5FF;
  animation: g7df-spin 1s ease-in-out infinite;
}

@keyframes g7df-spin {
  to { transform: rotate(360deg); }
}

/* Utility classes */
.g7df-text-center { text-align: center; }
.g7df-text-left { text-align: left; }
.g7df-text-right { text-align: right; }

.g7df-mb-0 { margin-bottom: 0; }
.g7df-mb-1 { margin-bottom: 0.5rem; }
.g7df-mb-2 { margin-bottom: 1rem; }
.g7df-mb-3 { margin-bottom: 1.5rem; }

.g7df-mt-0 { margin-top: 0; }
.g7df-mt-1 { margin-top: 0.5rem; }
.g7df-mt-2 { margin-top: 1rem; }
.g7df-mt-3 { margin-top: 1.5rem; }

.g7df-hidden { display: none; }
.g7df-visible { display: block; }

/* Touch optimizations */
.g7df-btn, .g7df-game-item, .g7df-nav-link, .g7df-bottom-nav-item {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.g7df-btn:focus,
.g7df-nav-link:focus,
.g7df-bottom-nav-item:focus {
  outline: 2px solid #00E5FF;
  outline-offset: 2px;
}