/**
 * Super Ace Game - Main Stylesheet
 * Version: 1.0.0
 * Mobile-First Responsive Design
 */

:root {
  --gdf7-primary: #9370DB;
  --gdf7-secondary: #DDA0DD;
  --gdf7-dark: #333333;
  --gdf7-darker: #1a1a1a;
  --gdf7-light: #f5f5f5;
  --gdf7-white: #ffffff;
  --gdf7-text: #e0e0e0;
  --gdf7-text-muted: #a0a0a0;
  --gdf7-border: #444444;
  --gdf7-shadow: rgba(0, 0, 0, 0.3);
  --gdf7-gradient: linear-gradient(135deg, var(--gdf7-primary) 0%, var(--gdf7-secondary) 100%);
  --gdf7-gradient-dark: linear-gradient(135deg, #6a5acd 0%, #ba55d3 100%);
}

* {
  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.5;
  color: var(--gdf7-text);
  background-color: var(--gdf7-dark);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Header Styles */
.gdf7-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--gdf7-darker);
  box-shadow: 0 2px 10px var(--gdf7-shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

.gdf7-header-scrolled {
  box-shadow: 0 4px 20px var(--gdf7-shadow);
}

.gdf7-header-container {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.gdf7-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--gdf7-white);
  font-size: 1.8rem;
  font-weight: 700;
}

.gdf7-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}

.gdf7-header-buttons {
  display: flex;
  gap: 8px;
}

.gdf7-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.gdf7-btn-primary {
  background: var(--gdf7-gradient);
  color: var(--gdf7-white);
}

.gdf7-btn-secondary {
  background: transparent;
  color: var(--gdf7-secondary);
  border: 2px solid var(--gdf7-secondary);
}

.gdf7-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--gdf7-shadow);
}

.gdf7-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.gdf7-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--gdf7-white);
  transition: all 0.3s ease;
}

.gdf7-menu-toggle.gdf7-menu-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.gdf7-menu-toggle.gdf7-menu-open span:nth-child(2) {
  opacity: 0;
}

.gdf7-menu-toggle.gdf7-menu-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.gdf7-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--gdf7-darker);
  box-shadow: 2px 0 20px var(--gdf7-shadow);
  z-index: 9999;
  transition: left 0.3s ease;
  padding: 60px 0 20px;
  overflow-y: auto;
}

.gdf7-mobile-menu.gdf7-menu-open {
  left: 0;
}

.gdf7-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.gdf7-menu-overlay.gdf7-overlay-active {
  opacity: 1;
  visibility: visible;
}

.gdf7-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gdf7-menu-item {
  border-bottom: 1px solid var(--gdf7-border);
}

.gdf7-menu-link {
  display: block;
  padding: 16px 24px;
  color: var(--gdf7-text);
  text-decoration: none;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.gdf7-menu-link:hover {
  background-color: var(--gdf7-primary);
  color: var(--gdf7-white);
  padding-left: 32px;
}

/* Main Content */
.gdf7-main {
  max-width: 430px;
  margin: 0 auto;
  padding: 80px 16px 100px;
  min-height: 100vh;
}

/* Carousel */
.gdf7-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.gdf7-carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.gdf7-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.gdf7-carousel-slide.gdf7-slide-active {
  opacity: 1;
}

.gdf7-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gdf7-carousel-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.gdf7-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gdf7-carousel-indicator.gdf7-indicator-active {
  background-color: var(--gdf7-white);
  transform: scale(1.2);
}

/* Section Styles */
.gdf7-section {
  margin-bottom: 32px;
}

.gdf7-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gdf7-white);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gdf7-section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--gdf7-gradient);
  border-radius: 2px;
}

/* Game Grid */
.gdf7-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.gdf7-game-card {
  position: relative;
  background-color: var(--gdf7-darker);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px var(--gdf7-shadow);
}

.gdf7-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px var(--gdf7-shadow);
}

.gdf7-game-card.gdf7-card-hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px var(--gdf7-shadow);
}

.gdf7-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.gdf7-game-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 20px 6px 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gdf7-white);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gdf7-game-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Content Cards */
.gdf7-card {
  background-color: var(--gdf7-darker);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px var(--gdf7-shadow);
  border: 1px solid var(--gdf7-border);
}

.gdf7-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gdf7-white);
  margin-bottom: 12px;
}

.gdf7-card-content {
  color: var(--gdf7-text);
  line-height: 1.6;
}

.gdf7-card-content p {
  margin-bottom: 12px;
}

.gdf7-card-content a {
  color: var(--gdf7-secondary);
  text-decoration: none;
  font-weight: 600;
}

.gdf7-card-content a:hover {
  text-decoration: underline;
}

/* Link Styles */
.gdf7-link {
  color: var(--gdf7-secondary);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gdf7-link:hover {
  color: var(--gdf7-primary);
  text-decoration: underline;
}

/* Promo Banner */
.gdf7-promo {
  background: var(--gdf7-gradient);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(147, 112, 219, 0.3);
}

.gdf7-promo-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gdf7-white);
  margin-bottom: 12px;
}

.gdf7-promo-text {
  color: var(--gdf7-white);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.gdf7-promo-btn {
  display: inline-block;
  background-color: var(--gdf7-white);
  color: var(--gdf7-primary);
  padding: 12px 32px;
  border-radius: 24px;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gdf7-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px var(--gdf7-shadow);
}

/* Feature List */
.gdf7-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gdf7-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gdf7-border);
}

.gdf7-feature-item:last-child {
  border-bottom: none;
}

.gdf7-feature-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--gdf7-primary);
}

.gdf7-feature-text {
  color: var(--gdf7-text);
  line-height: 1.5;
}

/* FAQ Styles */
.gdf7-faq-item {
  background-color: var(--gdf7-darker);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--gdf7-border);
}

.gdf7-faq-question {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gdf7-white);
  margin-bottom: 8px;
}

.gdf7-faq-answer {
  color: var(--gdf7-text);
  line-height: 1.5;
}

/* Footer */
.gdf7-footer {
  background-color: var(--gdf7-darker);
  border-top: 1px solid var(--gdf7-border);
  padding: 24px 16px 100px;
  margin-top: 32px;
}

.gdf7-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.gdf7-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  justify-content: center;
}

.gdf7-footer-link {
  color: var(--gdf7-secondary);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.gdf7-footer-link:hover {
  color: var(--gdf7-primary);
}

.gdf7-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 20px;
}

.gdf7-partner-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.gdf7-partner-logo:hover {
  opacity: 1;
}

.gdf7-footer-text {
  text-align: center;
  color: var(--gdf7-text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
}

.gdf7-copyright {
  text-align: center;
  color: var(--gdf7-text-muted);
  font-size: 1.2rem;
  margin-top: 16px;
}

/* Bottom Navigation (Mobile) */
.gdf7-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--gdf7-darker);
  border-top: 2px solid var(--gdf7-primary);
  box-shadow: 0 -2px 10px var(--gdf7-shadow);
  z-index: 1000;
  padding: 8px 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 64px;
}

.gdf7-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--gdf7-text);
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 4px 8px;
}

.gdf7-nav-item:hover {
  background-color: var(--gdf7-primary);
  color: var(--gdf7-white);
  transform: scale(1.1);
}

.gdf7-nav-item.gdf7-active {
  color: var(--gdf7-secondary);
}

.gdf7-nav-icon {
  font-size: 24px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gdf7-nav-label {
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

/* Desktop Styles */
@media (min-width: 769px) {
  .gdf7-bottom-nav {
    display: none;
  }

  .gdf7-main {
    padding-bottom: 80px;
  }

  .gdf7-footer {
    padding-bottom: 24px;
  }

  .gdf7-menu-toggle {
    display: none;
  }

  .gdf7-header-buttons {
    gap: 12px;
  }

  .gdf7-btn {
    padding: 10px 20px;
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .gdf7-main {
    padding-bottom: 100px;
  }
}

/* Utility Classes */
.gdf7-text-center {
  text-align: center;
}

.gdf7-mt-1 {
  margin-top: 8px;
}

.gdf7-mt-2 {
  margin-top: 16px;
}

.gdf7-mb-1 {
  margin-bottom: 8px;
}

.gdf7-mb-2 {
  margin-bottom: 16px;
}

.gdf7-hidden {
  display: none;
}

/* Ripple Effect */
.gdf7-ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  animation: gdf7-ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes gdf7-ripple-animation {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  100% {
    transform: scale(4);
    opacity: 0;
  }
}
