/* jljlph.click Mobile-First CSS Framework */
/* All classes prefixed with 'g48d-' to avoid conflicts */
/* Color Scheme: #000080, #E5E5E5, #4169E1, #1C2833, #FF5722, #AFEEEE */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #000080 0%, #4169E1 50%, #1C2833 100%);
  color: #E5E5E5;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container and Layout */
.g48d-wrapper {
  max-width: 430px;
  margin: 0 auto;
  background: #1C2833;
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 128, 0.3);
}

.g48d-container {
  padding: 0 1rem;
  max-width: 100%;
}

/* Header Styles */
.g48d-header {
  background: linear-gradient(90deg, #000080, #4169E1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 128, 0.4);
  transition: all 0.3s ease;
}

.g48d-header-scrolled {
  background: rgba(0, 0, 128, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.8rem 0;
}

.g48d-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.g48d-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #E5E5E5;
  font-weight: bold;
  font-size: 1.5rem;
}

.g48d-logo-img {
  width: 40px;
  height: 40px;
  margin-right: 0.5rem;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(255, 87, 34, 0.3);
}

.g48d-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Button Styles */
.g48d-btn {
  border: none;
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.g48d-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.g48d-btn:hover::before {
  left: 100%;
}

.g48d-btn-primary {
  background: linear-gradient(135deg, #FF5722, #4169E1);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.g48d-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

.g48d-btn-secondary {
  background: linear-gradient(135deg, #AFEEEE, #4169E1);
  color: #1C2833;
  box-shadow: 0 4px 15px rgba(175, 238, 238, 0.3);
}

.g48d-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(175, 238, 238, 0.4);
}

.g48d-btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* Touch States */
.g48d-touch-active {
  transform: scale(0.95);
  opacity: 0.8;
}

/* Mobile Menu */
.g48d-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.g48d-menu-line {
  width: 25px;
  height: 3px;
  background: #E5E5E5;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.g48d-toggle-active .g48d-menu-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.g48d-toggle-active .g48d-menu-line:nth-child(2) {
  opacity: 0;
}

.g48d-toggle-active .g48d-menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.g48d-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #000080, #1C2833);
  transition: right 0.3s ease;
  z-index: 1001;
  padding: 2rem 0;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.g48d-menu-active {
  right: 0;
}

.g48d-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.g48d-menu-list {
  list-style: none;
  padding: 0;
}

.g48d-menu-item {
  margin: 0;
}

.g48d-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  color: #E5E5E5;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(229, 229, 229, 0.1);
  transition: all 0.3s ease;
}

.g48d-menu-link:hover {
  background: rgba(65, 105, 225, 0.2);
  color: #AFEEEE;
}

/* Main Content */
.g48d-main {
  padding: 2rem 0 6rem 0;
  background: linear-gradient(180deg, #1C2833, #000080);
}

.g48d-content-section {
  margin-bottom: 3rem;
  padding: 2rem 1rem;
  background: rgba(229, 229, 229, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(175, 238, 238, 0.1);
}

.g48d-section-title {
  font-size: 2rem;
  font-weight: bold;
  color: #AFEEEE;
  text-align: center;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.g48d-content-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #E5E5E5;
  margin-bottom: 1rem;
  text-align: center;
}

.g48d-content-text {
  color: #E5E5E5;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  text-align: center;
}

.g48d-text-center {
  text-align: center;
}

.g48d-mt-1 { margin-top: 1rem; }
.g48d-mt-2 { margin-top: 2rem; }
.g48d-mb-1 { margin-bottom: 1rem; }
.g48d-mb-2 { margin-bottom: 2rem; }

/* Carousel Styles */
.g48d-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin: 2rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 128, 0.3);
}

.g48d-carousel-container {
  display: flex;
  transition: transform 0.5s ease;
}

.g48d-carousel-slide {
  min-width: 100%;
  position: relative;
  transition: transform 0.5s ease;
}

.g48d-carousel-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
}

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

.g48d-carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(229, 229, 229, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.g48d-indicator-active {
  background: #FF5722;
  transform: scale(1.2);
}

/* Game Grid */
.g48d-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.g48d-game-item {
  display: block;
  text-decoration: none;
  background: rgba(229, 229, 229, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(175, 238, 238, 0.2);
}

.g48d-game-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 87, 34, 0.3);
  border-color: #FF5722;
}

.g48d-game-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.g48d-game-item:hover .g48d-game-img {
  transform: scale(1.05);
}

.g48d-game-name {
  display: block;
  padding: 1rem 0.75rem;
  color: #E5E5E5;
  font-weight: 500;
  text-align: center;
  font-size: 0.9rem;
}

.g48d-img-loaded {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Feature Grid */
.g48d-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.g48d-feature-item {
  background: rgba(229, 229, 229, 0.05);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  border: 1px solid rgba(175, 238, 238, 0.1);
  transition: all 0.3s ease;
}

.g48d-feature-item:hover {
  background: rgba(229, 229, 229, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(65, 105, 225, 0.2);
}

.g48d-feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #FF5722;
}

.g48d-feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #AFEEEE;
  margin-bottom: 1rem;
}

.g48d-feature-desc {
  color: #E5E5E5;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Category Filters */
.g48d-category-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.g48d-category-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #4169E1;
  background: transparent;
  color: #E5E5E5;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.g48d-category-btn:hover,
.g48d-category-btn.active {
  background: #4169E1;
  color: white;
  transform: translateY(-2px);
}

.g48d-game-category {
  margin-bottom: 3rem;
}

.g48d-category-title {
  font-size: 1.5rem;
  color: #AFEEEE;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
}

/* FAQ Styles */
.g48d-faq-item {
  background: rgba(229, 229, 229, 0.05);
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 1px solid rgba(175, 238, 238, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.g48d-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  color: #E5E5E5;
  font-weight: 500;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.g48d-faq-question:hover {
  background: rgba(65, 105, 225, 0.1);
}

.g48d-faq-icon {
  font-size: 1.2rem;
  color: #FF5722;
  transition: transform 0.3s ease;
}

.g48d-faq-open .g48d-faq-icon {
  transform: rotate(180deg);
}

.g48d-faq-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.g48d-faq-open .g48d-faq-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  max-height: 500px;
}

.g48d-faq-answer {
  color: #E5E5E5;
  line-height: 1.6;
}

/* Bottom Navigation */
.g48d-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(90deg, #000080, #4169E1);
  z-index: 1000;
  box-shadow: 0 -2px 15px rgba(0, 0, 128, 0.4);
}

.g48d-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  padding: 0.75rem 0;
}

.g48d-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.g48d-bottom-nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: rgba(229, 229, 229, 0.7);
  transition: all 0.3s ease;
}

.g48d-nav-active a,
.g48d-bottom-nav-item:hover a {
  color: #AFEEEE;
  transform: translateY(-2px);
}

.g48d-nav-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.g48d-nav-text {
  font-size: 0.7rem;
  font-weight: 500;
}

/* Footer */
.g48d-footer {
  background: linear-gradient(180deg, #1C2833, #000080);
  padding: 3rem 0 2rem 0;
  margin-top: 4rem;
}

.g48d-footer-content {
  text-align: center;
}

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

.g48d-footer-link {
  color: #E5E5E5;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.g48d-footer-link:hover {
  color: #AFEEEE;
}

.g48d-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.g48d-partner-img {
  width: 60px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.g48d-partner-img:hover {
  opacity: 1;
}

.g48d-copyright {
  color: rgba(229, 229, 229, 0.6);
  font-size: 0.8rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(229, 229, 229, 0.1);
}

/* Responsive Design */
@media (min-width: 375px) {
  .g48d-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .g48d-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 400px) {
  .g48d-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Animations */
@keyframes g48d-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes g48d-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.g48d-animate-fadeInUp {
  animation: g48d-fadeInUp 0.6s ease-out;
}

.g48d-animate-pulse {
  animation: g48d-pulse 2s infinite;
}

/* Loading States */
.g48d-loading {
  position: relative;
  overflow: hidden;
}

.g48d-loading::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: g48d-shimmer 1.5s infinite;
}

@keyframes g48d-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Utility Classes */
.g48d-hidden {
  display: none !important;
}

.g48d-visible {
  display: block !important;
}

.g48d-opacity-50 {
  opacity: 0.5;
}

.g48d-opacity-75 {
  opacity: 0.75;
}

/* CTA Sections */
.g48d-cta-section {
  background: linear-gradient(135deg, #FF5722, #4169E1);
  padding: 3rem 2rem;
  border-radius: 20px;
  text-align: center;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.g48d-cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(175, 238, 238, 0.1) 0%, transparent 70%);
  animation: g48d-pulse 4s infinite;
}

.g48d-cta-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.g48d-cta-text {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.g48d-cta-btn {
  background: white;
  color: #1C2833;
  font-weight: bold;
  padding: 1rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.g48d-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Promo Button States */
.g48d-promo-btn {
  position: relative;
  overflow: hidden;
}

.g48d-promo-btn::after {
  content: '🎁';
  position: absolute;
  top: -5px;
  right: -5px;
  background: #FF5722;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  animation: g48d-pulse 2s infinite;
}