/* Jilitt PH - Theme Stylesheet */
/* All classes use 'g2de-' prefix for namespace isolation */

/* CSS Variables */
:root {
  --g2de-primary: #FF1493;
  --g2de-secondary: #CD853F;
  --g2de-accent: #BBBBBB;
  --g2de-bg-dark: #0C0C0C;
  --g2de-bg-darker: #080808;
  --g2de-bg-card: #141414;
  --g2de-text: #BBBBBB;
  --g2de-text-light: #FFFFFF;
  --g2de-text-dark: #000000;
  --g2de-border: #2a2a2a;
  --g2de-success: #28a745;
  --g2de-warning: #ffc107;
  --g2de-error: #dc3545;
}

/* Base Reset */
* {
  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.4rem;
  line-height: 1.5;
  color: var(--g2de-text);
  background-color: var(--g2de-bg-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.g2de-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.g2de-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--g2de-bg-darker);
  border-bottom: 2px solid var(--g2de-primary);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(255, 20, 147, 0.3);
}

.g2de-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.g2de-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--g2de-text-light);
}

.g2de-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.g2de-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g2de-primary);
}

.g2de-header-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.g2de-btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.g2de-btn-primary {
  background: linear-gradient(135deg, var(--g2de-primary), #c71185);
  color: var(--g2de-text-light);
}

.g2de-btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.5);
}

.g2de-btn-secondary {
  background: linear-gradient(135deg, var(--g2de-secondary), #b87230);
  color: var(--g2de-text-light);
}

.g2de-btn-secondary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(205, 133, 63, 0.5);
}

.g2de-menu-button {
  background: none;
  border: none;
  color: var(--g2de-text-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.g2de-mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background-color: var(--g2de-bg-darker);
  border-bottom: 2px solid var(--g2de-primary);
  z-index: 9999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.g2de-mobile-menu.g2de-menu-active {
  max-height: 500px;
  overflow-y: auto;
}

.g2de-mobile-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--g2de-text);
  text-decoration: none;
  border-bottom: 1px solid var(--g2de-border);
  transition: all 0.3s ease;
}

.g2de-mobile-menu a:hover,
.g2de-mobile-menu a.g2de-nav-active {
  background-color: var(--g2de-bg-card);
  color: var(--g2de-primary);
  padding-left: 2rem;
}

/* Main Content */
.g2de-main {
  padding-top: 70px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Carousel */
.g2de-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: 8px;
}

.g2de-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.g2de-carousel-slide {
  min-width: 100%;
  position: relative;
}

.g2de-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.g2de-carousel-prev,
.g2de-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(12, 12, 12, 0.7);
  color: var(--g2de-text-light);
  border: none;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g2de-carousel-prev {
  left: 10px;
}

.g2de-carousel-next {
  right: 10px;
}

.g2de-carousel-prev:hover,
.g2de-carousel-next:hover {
  background-color: var(--g2de-primary);
}

.g2de-carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.g2de-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.g2de-carousel-dot.g2de-dot-active {
  background-color: var(--g2de-primary);
  transform: scale(1.3);
}

/* Section */
.g2de-section {
  margin-bottom: 2.5rem;
}

.g2de-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g2de-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g2de-section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(to bottom, var(--g2de-primary), var(--g2de-secondary));
  border-radius: 2px;
}

/* Game Grid */
.g2de-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.g2de-game-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--g2de-bg-card);
  border: 1px solid var(--g2de-border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.g2de-game-item:hover {
  transform: translateY(-3px);
  border-color: var(--g2de-primary);
  box-shadow: 0 5px 15px rgba(255, 20, 147, 0.3);
}

.g2de-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.g2de-game-name {
  padding: 0.5rem;
  font-size: 1rem;
  text-align: center;
  color: var(--g2de-text-light);
  background-color: var(--g2de-bg-darker);
  border-top: 1px solid var(--g2de-border);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.2;
  min-height: 2.4rem;
}

/* Card */
.g2de-card {
  background-color: var(--g2de-bg-card);
  border: 1px solid var(--g2de-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.g2de-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g2de-secondary);
  margin-bottom: 1rem;
}

.g2de-card-content {
  color: var(--g2de-text);
  line-height: 1.6;
}

/* List */
.g2de-list {
  list-style: none;
  padding: 0;
}

.g2de-list-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--g2de-border);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.g2de-list-item:last-child {
  border-bottom: none;
}

.g2de-list-icon {
  color: var(--g2de-primary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Link */
.g2de-link {
  color: var(--g2de-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.g2de-link:hover {
  color: var(--g2de-secondary);
  text-decoration: underline;
}

/* Bottom Navigation (Mobile) */
.g2de-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to right, var(--g2de-bg-darker), var(--g2de-bg-dark), var(--g2de-bg-darker));
  border-top: 2px solid var(--g2de-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(255, 20, 147, 0.3);
}

.g2de-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--g2de-text);
  transition: all 0.3s ease;
  position: relative;
}

.g2de-nav-item:hover,
.g2de-nav-item.g2de-nav-active {
  color: var(--g2de-primary);
  transform: scale(1.1);
}

.g2de-nav-icon {
  font-size: 22px;
  margin-bottom: 3px;
}

.g2de-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Hide bottom navigation on desktop */
@media (min-width: 769px) {
  .g2de-bottom-nav {
    display: none;
  }

  .g2de-main {
    padding-bottom: 2rem;
  }
}

/* Footer */
.g2de-footer {
  background-color: var(--g2de-bg-darker);
  border-top: 2px solid var(--g2de-primary);
  padding: 2rem 0;
  margin-top: 3rem;
}

.g2de-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.g2de-footer-link {
  color: var(--g2de-text);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.3rem 0.8rem;
  background-color: var(--g2de-bg-card);
  border-radius: 4px;
  border: 1px solid var(--g2de-border);
  transition: all 0.3s ease;
}

.g2de-footer-link:hover {
  border-color: var(--g2de-primary);
  color: var(--g2de-primary);
}

.g2de-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.g2de-partner-logo {
  height: 30px;
  width: auto;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.g2de-partner-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

.g2de-copyright {
  text-align: center;
  color: var(--g2de-accent);
  font-size: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--g2de-border);
}

/* Scroll to top button */
.g2de-scroll-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--g2de-primary), #c71185);
  color: var(--g2de-text-light);
  border: none;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.5);
  transition: all 0.3s ease;
}

.g2de-scroll-top:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.7);
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  color: var(--g2de-text-light);
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--g2de-primary);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--g2de-secondary);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--g2de-text-light);
}

p {
  margin-bottom: 1rem;
}

/* Utility Classes */
.g2de-text-center {
  text-align: center;
}

.g2de-text-primary {
  color: var(--g2de-primary);
}

.g2de-text-secondary {
  color: var(--g2de-secondary);
}

.g2de-mt-1 { margin-top: 1rem; }
.g2de-mt-2 { margin-top: 2rem; }
.g2de-mb-1 { margin-bottom: 1rem; }
.g2de-mb-2 { margin-bottom: 2rem; }

/* Touch device optimizations */
.g2de-touch-device .g2de-btn,
.g2de-touch-device .g2de-nav-item {
  -webkit-tap-highlight-color: rgba(255, 20, 147, 0.3);
}
