/**
 * 3JL Login - Design System CSS
 * All classes prefixed with "gdd2-" to avoid conflicts
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
  --gdd2-primary: #00CED1;
  --gdd2-secondary: #26A69A;
  --gdd2-accent: #E0FFFF;
  --gdd2-dark: #1C2833;
  --gdd2-darker: #0F1820;
  --gdd2-light: #E0FFFF;
  --gdd2-white: #FFFFFF;
  --gdd2-gray: #6B7280;
  --gdd2-border: #374151;
  --gdd2-shadow: rgba(0, 206, 209, 0.2);
  --gdd2-gradient: linear-gradient(135deg, #00CED1 0%, #26A69A 100%);
  --gdd2-font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--gdd2-font-main);
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--gdd2-light);
  background-color: var(--gdd2-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.gdd2-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header Styles */
.gdd2-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--gdd2-darker) 0%, var(--gdd2-dark) 100%);
  border-bottom: 1px solid var(--gdd2-primary);
  box-shadow: 0 2px 10px var(--gdd2-shadow);
  backdrop-filter: blur(10px);
}

.gdd2-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 430px;
  margin: 0 auto;
}

.gdd2-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--gdd2-white);
}

.gdd2-logo-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 8px;
  object-fit: cover;
}

.gdd2-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gdd2-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gdd2-header-buttons {
  display: flex;
  gap: 1rem;
}

.gdd2-btn {
  padding: 0.8rem 1.6rem;
  font-size: 1.4rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gdd2-btn-primary {
  background: var(--gdd2-gradient);
  color: var(--gdd2-dark);
}

.gdd2-btn-secondary {
  background: transparent;
  color: var(--gdd2-primary);
  border: 2px solid var(--gdd2-primary);
}

.gdd2-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--gdd2-shadow);
}

.gdd2-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gdd2-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.gdd2-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--gdd2-darker);
  z-index: 9999;
  transition: right 0.3s ease;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.gdd2-mobile-menu.gdd2-active {
  right: 0;
}

.gdd2-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  display: none;
}

.gdd2-mobile-menu.gdd2-active + .gdd2-menu-overlay {
  display: block;
}

.gdd2-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--gdd2-border);
}

.gdd2-menu-close {
  background: none;
  border: none;
  color: var(--gdd2-light);
  font-size: 2.8rem;
  cursor: pointer;
  padding: 0.5rem;
}

.gdd2-menu-nav {
  padding: 1.5rem;
}

.gdd2-menu-link {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--gdd2-light);
  text-decoration: none;
  font-size: 1.6rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.gdd2-menu-link:hover {
  background: var(--gdd2-primary);
  color: var(--gdd2-dark);
  transform: translateX(5px);
}

/* Main Content */
.gdd2-main {
  margin-top: 80px;
  padding-bottom: 100px;
  min-height: 100vh;
}

/* Carousel */
.gdd2-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.gdd2-carousel-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}

.gdd2-carousel-slide {
  min-width: 100%;
  position: relative;
}

.gdd2-carousel-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Headings */
.gdd2-heading {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gdd2-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.gdd2-subheading {
  font-size: 2rem;
  font-weight: 600;
  color: var(--gdd2-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

/* Cards */
.gdd2-card {
  background: linear-gradient(145deg, var(--gdd2-dark) 0%, var(--gdd2-darker) 100%);
  border: 1px solid var(--gdd2-border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gdd2-card-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gdd2-primary);
  margin-bottom: 1rem;
}

.gdd2-card-content {
  font-size: 1.5rem;
  color: var(--gdd2-light);
  line-height: 1.6;
}

/* Game Grid */
.gdd2-game-section {
  margin-bottom: 3rem;
}

.gdd2-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.gdd2-game-item {
  position: relative;
  text-align: center;
  text-decoration: none;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.gdd2-game-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--gdd2-shadow);
}

.gdd2-game-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.gdd2-game-name {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gdd2-light);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Links */
.gdd2-link {
  color: var(--gdd2-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.gdd2-link:hover {
  border-bottom-color: var(--gdd2-primary);
}

/* Promotional Links */
.gdd2-promo-link {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--gdd2-gradient);
  color: var(--gdd2-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.6rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gdd2-promo-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--gdd2-shadow);
}

/* Text Links */
.gdd2-text-promo {
  color: var(--gdd2-primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--gdd2-secondary);
  transition: all 0.3s ease;
}

.gdd2-text-promo:hover {
  color: var(--gdd2-secondary);
  border-bottom-color: var(--gdd2-primary);
}

/* FAQ Section */
.gdd2-faq-item {
  background: rgba(0, 206, 209, 0.05);
  border: 1px solid var(--gdd2-border);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.gdd2-faq-question {
  padding: 1.5rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gdd2-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gdd2-faq-answer {
  padding: 0 1.5rem 1.5rem;
  font-size: 1.5rem;
  color: var(--gdd2-light);
  line-height: 1.6;
  display: none;
}

.gdd2-faq-item.gdd2-active .gdd2-faq-answer {
  display: block;
}

/* Footer */
.gdd2-footer {
  background: linear-gradient(180deg, var(--gdd2-dark) 0%, var(--gdd2-darker) 100%);
  border-top: 2px solid var(--gdd2-primary);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
}

.gdd2-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.gdd2-footer-link {
  color: var(--gdd2-light);
  text-decoration: none;
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.gdd2-footer-link:hover {
  background: var(--gdd2-primary);
  color: var(--gdd2-dark);
}

.gdd2-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.gdd2-partner-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.gdd2-partner-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.gdd2-copyright {
  text-align: center;
  color: var(--gdd2-gray);
  font-size: 1.3rem;
  padding: 1.5rem;
  border-top: 1px solid var(--gdd2-border);
}

/* Mobile Bottom Navigation */
.gdd2-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--gdd2-darker);
  border-top: 2px solid var(--gdd2-primary);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  box-shadow: 0 -2px 10px var(--gdd2-shadow);
}

.gdd2-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--gdd2-gray);
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 0.5rem;
}

.gdd2-nav-item:hover {
  background: rgba(0, 206, 209, 0.1);
  color: var(--gdd2-primary);
  transform: scale(1.05);
}

.gdd2-nav-item.gdd2-active {
  color: var(--gdd2-primary);
}

.gdd2-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
}

.gdd2-nav-text {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Responsive Design */
@media (min-width: 769px) {
  .gdd2-bottom-nav {
    display: none;
  }

  .gdd2-main {
    padding-bottom: 2rem;
  }

  .gdd2-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .gdd2-menu-toggle {
    display: block;
  }

  .gdd2-header-buttons {
    display: none;
  }
}

/* Utility Classes */
.gdd2-hidden {
  display: none !important;
}

.gdd2-text-center {
  text-align: center;
}

.gdd2-mt-1 {
  margin-top: 1rem;
}

.gdd2-mt-2 {
  margin-top: 2rem;
}

.gdd2-mt-3 {
  margin-top: 3rem;
}

.gdd2-mb-1 {
  margin-bottom: 1rem;
}

.gdd2-mb-2 {
  margin-bottom: 2rem;
}

.gdd2-mb-3 {
  margin-bottom: 3rem;
}

.gdd2-p-1 {
  padding: 1rem;
}

.gdd2-p-2 {
  padding: 2rem;
}

.gdd2-p-3 {
  padding: 3rem;
}

/* Animations */
@keyframes gdd2-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gdd2-animate-fadeIn {
  animation: gdd2-fadeIn 0.5s ease forwards;
}

/* Accessibility */
.gdd2-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
