/**
 * jljl77 apps - Main Stylesheet
 * Mobile-first responsive design
 */

/* Base Styles and Variables */
:root {
  font-size: 62.5%;
  --gda5-primary: #4169E1;
  --gda5-bg: #2D2D2D;
  --gda5-text: #FFFFFF;
  --gda5-text-secondary: #CCCCCC;
  --gda5-accent: #FF5722;
  --gda5-success: #4CAF50;
  --gda5-warning: #FFC107;
  --gda5-error: #F44336;
  --gda5-container-padding: 1.6rem;
  --gda5-border-radius: 0.8rem;
  --gda5-transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--gda5-text);
  background-color: var(--gda5-bg);
  max-width: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1.6rem 0;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gda5-text);
}

h1 {
  font-size: 2.4rem;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 2rem;
}

p {
  margin: 0 0 1.6rem 0;
}

a {
  color: var(--gda5-primary);
  text-decoration: none;
  transition: var(--gda5-transition);
}

a:hover {
  color: var(--gda5-text);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout */
.gda5-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 var(--gda5-container-padding);
}

.gda5-wrapper {
  width: 100%;
  padding: 1.6rem 0;
}

.gda5-section {
  margin-bottom: 3.2rem;
}

.gda5-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 1rem;
}

.gda5-flex {
  display: flex;
}

.gda5-flex-column {
  display: flex;
  flex-direction: column;
}

.gda5-flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gda5-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Header & Navigation */
.gda5-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--gda5-bg);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gda5-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem var(--gda5-container-padding);
  max-width: 430px;
  margin: 0 auto;
}

.gda5-logo {
  display: flex;
  align-items: center;
}

.gda5-logo img {
  height: 3.2rem;
  width: auto;
  margin-right: 0.8rem;
}

.gda5-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gda5-primary);
}

.gda5-menu-toggle {
  display: block;
  font-size: 2.4rem;
  color: var(--gda5-text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.gda5-menu-toggle.gda5-active {
  color: var(--gda5-primary);
}

.gda5-nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--gda5-bg);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  flex-direction: column;
  padding: 1rem 0;
}

.gda5-nav-menu.gda5-menu-open {
  display: flex;
}

.gda5-nav-link {
  display: block;
  padding: 1.2rem var(--gda5-container-padding);
  color: var(--gda5-text);
  font-size: 1.6rem;
  font-weight: 500;
  text-decoration: none;
}

.gda5-nav-link:hover,
.gda5-nav-link.gda5-active {
  background-color: rgba(65, 105, 225, 0.1);
  color: var(--gda5-primary);
}

.gda5-auth-buttons {
  display: flex;
  gap: 1rem;
}

/* Main Content Area */
.gda5-main {
  margin-top: 6.4rem;
  margin-bottom: 6.4rem;
  padding: 1.6rem 0;
}

/* Button Styles */
.gda5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: var(--gda5-border-radius);
  cursor: pointer;
  transition: var(--gda5-transition);
  text-decoration: none;
  min-height: 4.4rem;
}

.gda5-btn-primary {
  background-color: var(--gda5-primary);
  color: var(--gda5-text);
}

.gda5-btn-primary:hover {
  background-color: #3150b3;
  color: var(--gda5-text);
  text-decoration: none;
}

.gda5-btn-secondary {
  background-color: transparent;
  color: var(--gda5-primary);
  border: 2px solid var(--gda5-primary);
}

.gda5-btn-secondary:hover {
  background-color: rgba(65, 105, 225, 0.1);
  color: var(--gda5-primary);
  text-decoration: none;
}

.gda5-btn-accent {
  background-color: var(--gda5-accent);
  color: var(--gda5-text);
}

.gda5-btn-accent:hover {
  background-color: #e64a19;
  color: var(--gda5-text);
  text-decoration: none;
}

.gda5-btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  min-height: 3.6rem;
}

.gda5-btn-lg {
  padding: 1.2rem 2.4rem;
  font-size: 1.6rem;
  min-height: 5.2rem;
}

.gda5-btn-block {
  display: flex;
  width: 100%;
}

/* Card Component */
.gda5-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--gda5-border-radius);
  overflow: hidden;
  margin-bottom: 1.6rem;
}

.gda5-card-header {
  padding: 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gda5-card-body {
  padding: 1.6rem;
}

.gda5-card-footer {
  padding: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gda5-card-title {
  margin-bottom: 0.8rem;
}

/* Carousel */
.gda5-carousel {
  position: relative;
  width: 100%;
  height: 20rem;
  overflow: hidden;
  border-radius: var(--gda5-border-radius);
  margin-bottom: 2.4rem;
}

.gda5-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.gda5-carousel-slide.gda5-active {
  opacity: 1;
  z-index: 1;
}

.gda5-carousel-controls {
  position: absolute;
  bottom: 1.6rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 2;
}

.gda5-carousel-indicator {
  width: 1rem;
  height: 1rem;
  margin: 0 0.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.gda5-carousel-indicator.gda5-active {
  background-color: var(--gda5-primary);
}

.gda5-carousel-prev,
.gda5-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--gda5-text);
  border: none;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 2rem;
}

.gda5-carousel-prev {
  left: 1rem;
}

.gda5-carousel-next {
  right: 1rem;
}

/* Game Grid */
.gda5-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.4rem;
}

.gda5-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.gda5-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--gda5-border-radius);
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 0.6rem;
}

.gda5-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gda5-game-name {
  font-size: 1.2rem;
  color: var(--gda5-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Category Section */
.gda5-category {
  margin-bottom: 3.2rem;
}

.gda5-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.6rem;
}

.gda5-category-title {
  font-size: 2rem;
  margin: 0;
}

.gda5-category-link {
  font-size: 1.4rem;
}

/* Footer */
.gda5-footer {
  background-color: #222222;
  padding: 3.2rem 0;
}

.gda5-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  margin-bottom: 2.4rem;
}

.gda5-footer-link {
  color: var(--gda5-text-secondary);
  font-size: 1.4rem;
}

.gda5-footer-partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.6rem;
  margin-bottom: 2.4rem;
}

.gda5-partner-logo {
  width: 100%;
  height: auto;
  filter: grayscale(100%) brightness(0.8);
  transition: var(--gda5-transition);
}

.gda5-partner-logo:hover {
  filter: grayscale(0%) brightness(1);
}

.gda5-copyright {
  text-align: center;
  color: var(--gda5-text-secondary);
  font-size: 1.2rem;
  margin-top: 2.4rem;
}

/* Mobile Bottom Navigation */
.gda5-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #222222;
  display: flex;
  justify-content: space-around;
  padding: 0.8rem 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.gda5-mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.8rem;
  color: var(--gda5-text-secondary);
  text-decoration: none;
  flex: 1;
}

.gda5-mobile-nav-btn.gda5-active {
  color: var(--gda5-primary);
}

.gda5-mobile-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}

.gda5-mobile-nav-text {
  font-size: 1.2rem;
  text-align: center;
}

/* Utility Classes */
.gda5-text-center {
  text-align: center;
}

.gda5-text-primary {
  color: var(--gda5-primary);
}

.gda5-text-accent {
  color: var(--gda5-accent);
}

.gda5-mb-0 {
  margin-bottom: 0;
}

.gda5-mb-1 {
  margin-bottom: 0.8rem;
}

.gda5-mb-2 {
  margin-bottom: 1.6rem;
}

.gda5-mb-3 {
  margin-bottom: 2.4rem;
}

.gda5-mb-4 {
  margin-bottom: 3.2rem;
}

.gda5-p-2 {
  padding: 1.6rem;
}

.gda5-rounded {
  border-radius: var(--gda5-border-radius);
}

.gda5-shadow {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gda5-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gda5-text);
  background-color: var(--gda5-accent);
  border-radius: 1rem;
}

.gda5-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 2.4rem 0;
}

/* Media Queries */
@media (min-width: 769px) {
  h1 {
    font-size: 3.2rem;
  }
  
  h2 {
    font-size: 2.8rem;
  }
  
  h3 {
    font-size: 2.4rem;
  }
  
  .gda5-container {
    max-width: 1200px;
  }
  
  .gda5-menu-toggle {
    display: none;
  }
  
  .gda5-nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    box-shadow: none;
    padding: 0;
    margin-left: 2rem;
  }
  
  .gda5-nav-link {
    padding: 1rem 1.2rem;
  }
  
  .gda5-game-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .gda5-carousel {
    height: 30rem;
  }
  
  .gda5-footer-links {
    grid-template-columns: repeat(4, 1fr);
  }
} 