/**
 * Jiligames PH - Main Theme Stylesheet
 * All classes use prefix: gb70-
 * Color Palette: #DA70D6 (Orchid), #4B0082 (Indigo), #8A2BE2 (BlueViolet), #1C2833 (Dark)
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
  --gb70-primary: #DA70D6;
  --gb70-secondary: #4B0082;
  --gb70-accent: #8A2BE2;
  --gb70-dark: #1C2833;
  --gb70-darker: #0f161b;
  --gb70-light: #e8d5f0;
  --gb70-white: #ffffff;
  --gb70-gray: #6c757d;
  --gb70-success: #28a745;
  --gb70-bg-overlay: rgba(28, 40, 51, 0.95);
  --gb70-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --gb70-transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--gb70-light);
  background-color: var(--gb70-dark);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Container */
.gb70-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.gb70-wrapper {
  padding-top: 60px;
  padding-bottom: 80px;
}

/* Header */
.gb70-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--gb70-secondary) 0%, var(--gb70-dark) 100%);
  box-shadow: var(--gb70-shadow);
  padding: 0.8rem 0;
}

.gb70-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.gb70-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--gb70-primary);
}

.gb70-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.gb70-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gb70-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gb70-header-buttons {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.gb70-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--gb70-transition);
  border: none;
  text-align: center;
}

.gb70-btn-primary {
  background: linear-gradient(135deg, var(--gb70-primary) 0%, var(--gb70-accent) 100%);
  color: var(--gb70-white);
}

.gb70-btn-secondary {
  background: transparent;
  color: var(--gb70-primary);
  border: 2px solid var(--gb70-primary);
}

.gb70-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(218, 112, 214, 0.4);
}

.gb70-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.gb70-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gb70-primary);
  transition: var(--gb70-transition);
}

/* Mobile Menu */
.gb70-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--gb70-bg-overlay);
  backdrop-filter: blur(10px);
  z-index: 9999;
  transition: var(--gb70-transition);
  overflow-y: auto;
  padding: 2rem;
}

.gb70-mobile-menu.gb70-menu-open {
  right: 0;
}

.gb70-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gb70-accent);
}

.gb70-menu-close {
  background: none;
  border: none;
  color: var(--gb70-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

.gb70-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gb70-menu-nav a {
  display: block;
  padding: 1rem;
  color: var(--gb70-light);
  text-decoration: none;
  border-radius: 8px;
  transition: var(--gb70-transition);
  font-size: 1.5rem;
}

.gb70-menu-nav a:hover {
  background: rgba(138, 43, 226, 0.2);
  color: var(--gb70-primary);
  padding-left: 1.5rem;
}

.gb70-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--gb70-transition);
}

.gb70-menu-overlay.gb70-overlay-show {
  opacity: 1;
  visibility: visible;
}

/* Main Content */
.gb70-main {
  min-height: calc(100vh - 140px);
}

/* Carousel */
.gb70-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.gb70-carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.gb70-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.gb70-carousel-slide.gb70-slide-active {
  opacity: 1;
}

.gb70-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.gb70-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gb70-bg-overlay);
  border: none;
  color: var(--gb70-white);
  font-size: 1.8rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--gb70-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gb70-carousel-btn:hover {
  background: var(--gb70-primary);
}

.gb70-carousel-prev {
  left: 10px;
}

.gb70-carousel-next {
  right: 10px;
}

.gb70-carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.gb70-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--gb70-transition);
}

.gb70-carousel-indicator.gb70-indicator-active {
  background: var(--gb70-primary);
  width: 24px;
  border-radius: 4px;
}

/* Section */
.gb70-section {
  margin-bottom: 2.5rem;
}

.gb70-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gb70-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Game Grid */
.gb70-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.gb70-game-card {
  background: var(--gb70-darker);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--gb70-transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.gb70-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(138, 43, 226, 0.3);
}

.gb70-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.gb70-game-name {
  padding: 0.6rem;
  font-size: 1.1rem;
  color: var(--gb70-light);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Content Card */
.gb70-card {
  background: var(--gb70-darker);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gb70-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gb70-accent);
  margin-bottom: 1rem;
}

.gb70-card-content {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--gb70-light);
}

.gb70-card-content p {
  margin-bottom: 1rem;
}

.gb70-card-content a {
  color: var(--gb70-primary);
  text-decoration: none;
  font-weight: 600;
}

.gb70-card-content a:hover {
  text-decoration: underline;
}

/* Feature List */
.gb70-feature-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.gb70-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem;
  background: rgba(138, 43, 226, 0.1);
  border-radius: 8px;
  border-left: 3px solid var(--gb70-primary);
}

.gb70-feature-icon {
  color: var(--gb70-primary);
  font-size: 1.6rem;
  flex-shrink: 0;
}

.gb70-feature-text {
  flex: 1;
  font-size: 1.3rem;
  color: var(--gb70-light);
}

/* FAQ Item */
.gb70-faq-item {
  background: var(--gb70-darker);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.gb70-faq-question {
  padding: 1.2rem;
  font-weight: 600;
  color: var(--gb70-accent);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.gb70-faq-answer {
  padding: 0 1.2rem 1.2rem;
  color: var(--gb70-light);
  line-height: 1.7;
}

/* Bottom Navigation */
.gb70-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--gb70-secondary) 0%, var(--gb70-darker) 100%);
  border-top: 2px solid var(--gb70-accent);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

.gb70-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--gb70-light);
  transition: var(--gb70-transition);
  padding: 0.5rem;
  border-radius: 8px;
}

.gb70-bottom-nav a:hover {
  background: rgba(218, 112, 214, 0.15);
}

.gb70-bottom-nav a.gb70-nav-active {
  color: var(--gb70-primary);
}

.gb70-bottom-nav-icon {
  font-size: 22px;
}

.gb70-bottom-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Footer */
.gb70-footer {
  background: var(--gb70-darker);
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 2px solid var(--gb70-accent);
}

.gb70-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.gb70-footer-link {
  color: var(--gb70-accent);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: var(--gb70-transition);
}

.gb70-footer-link:hover {
  background: rgba(138, 43, 226, 0.2);
  color: var(--gb70-primary);
}

.gb70-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.gb70-partner-logo {
  height: 30px;
  width: auto;
  opacity: 0.7;
  transition: var(--gb70-transition);
}

.gb70-partner-logo:hover {
  opacity: 1;
}

.gb70-copyright {
  text-align: center;
  color: var(--gb70-gray);
  font-size: 1.1rem;
  padding: 1rem;
  border-top: 1px solid rgba(138, 43, 226, 0.2);
}

/* H1 Heading */
h1.gb70-main-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gb70-primary);
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Utility Classes */
.gb70-text-center {
  text-align: center;
}

.gb70-mt-1 { margin-top: 1rem; }
.gb70-mt-2 { margin-top: 2rem; }
.gb70-mb-1 { margin-bottom: 1rem; }
.gb70-mb-2 { margin-bottom: 2rem; }

.gb70-promo-link {
  color: var(--gb70-primary);
  font-weight: 700;
  text-decoration: none;
  transition: var(--gb70-transition);
}

.gb70-promo-link:hover {
  color: var(--gb70-accent);
  text-decoration: underline;
}

/* Desktop Styles */
@media (min-width: 769px) {
  .gb70-bottom-nav {
    display: none;
  }

  .gb70-wrapper {
    padding-bottom: 2rem;
  }

  .gb70-game-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .gb70-wrapper {
    padding-bottom: 80px;
  }
}
