/**
 * Jiliee Link - Theme Styles
 * All classes use g4fd- prefix for namespace isolation
 */

/* CSS Variables for color palette */
:root {
  --g4fd-primary: #FF1493;
  --g4fd-secondary: #40E0D0;
  --g4fd-dark: #273746;
  --g4fd-light: #E0E0E0;
  --g4fd-accent1: #FFB6C1;
  --g4fd-accent2: #66CDAA;
  --g4fd-text: #ffffff;
  --g4fd-text-muted: #cccccc;
  --g4fd-bg-dark: #1a1a2e;
  --g4fd-bg-card: #16213e;
  --g4fd-gradient: linear-gradient(135deg, var(--g4fd-primary) 0%, var(--g4fd-secondary) 100%);
}

/* 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.6rem;
  line-height: 1.5;
  color: var(--g4fd-text);
  background-color: var(--g4fd-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.g4fd-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.g4fd-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--g4fd-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  padding: 0.8rem 0;
}

.g4fd-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.g4fd-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--g4fd-text);
  font-weight: 700;
  font-size: 1.8rem;
}

.g4fd-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.g4fd-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.g4fd-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.g4fd-btn-primary {
  background: var(--g4fd-gradient);
  color: var(--g4fd-text);
}

.g4fd-btn-secondary {
  background: transparent;
  color: var(--g4fd-secondary);
  border: 2px solid var(--g4fd-secondary);
}

.g4fd-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
}

.g4fd-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--g4fd-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.g4fd-mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background-color: var(--g4fd-bg-card);
  padding: 1rem 0;
  z-index: 9999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.g4fd-mobile-menu.g4fd-menu-open {
  display: block;
  max-height: 500px;
  overflow-y: auto;
}

.g4fd-menu-item {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--g4fd-text);
  text-decoration: none;
  font-size: 1.5rem;
  transition: background 0.3s ease;
}

.g4fd-menu-item:hover {
  background-color: var(--g4fd-primary);
}

/* Hero Section */
.g4fd-hero {
  margin-top: 70px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.g4fd-hero-slide {
  width: 100%;
  display: none;
}

.g4fd-hero-slide:first-child {
  display: block;
}

.g4fd-hero-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Main Content */
.g4fd-main {
  min-height: calc(100vh - 200px);
  padding-bottom: 80px;
}

.g4fd-section {
  margin-bottom: 3rem;
}

.g4fd-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g4fd-secondary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.g4fd-section-title h2 {
  font-size: 2rem;
}

/* Game Grid */
.g4fd-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.g4fd-game-card {
  background-color: var(--g4fd-bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.g4fd-game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(64, 224, 208, 0.3);
}

.g4fd-game-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.g4fd-game-name {
  padding: 0.5rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--g4fd-text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Content Cards */
.g4fd-card {
  background-color: var(--g4fd-bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(64, 224, 208, 0.2);
}

.g4fd-card h3 {
  color: var(--g4fd-secondary);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.g4fd-card p {
  color: var(--g4fd-text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.g4fd-card a {
  color: var(--g4fd-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.g4fd-card a:hover {
  color: var(--g4fd-secondary);
  text-decoration: underline;
}

/* Feature List */
.g4fd-feature-list {
  list-style: none;
  padding: 0;
}

.g4fd-feature-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--g4fd-text-muted);
}

.g4fd-feature-list li:last-child {
  border-bottom: none;
}

.g4fd-feature-list li::before {
  content: '✓';
  color: var(--g4fd-secondary);
  font-weight: bold;
  margin-right: 0.8rem;
}

/* FAQ Section */
.g4fd-faq-item {
  background-color: var(--g4fd-bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(64, 224, 208, 0.2);
}

.g4fd-faq-question {
  color: var(--g4fd-primary);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.g4fd-faq-answer {
  color: var(--g4fd-text-muted);
  line-height: 1.6;
}

/* Bottom Navigation */
.g4fd-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--g4fd-dark) 0%, #1a1a2e 100%);
  border-top: 2px solid var(--g4fd-primary);
  z-index: 1000;
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.g4fd-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--g4fd-text-muted);
  min-width: 60px;
  min-height: 60px;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
}

.g4fd-nav-item:hover {
  background-color: rgba(255, 20, 147, 0.1);
  transform: scale(1.05);
}

.g4fd-nav-item.g4fd-nav-active {
  color: var(--g4fd-primary);
}

.g4fd-nav-item i,
.g4fd-nav-item svg {
  font-size: 2.2rem;
  width: 24px;
  height: 24px;
}

.g4fd-nav-label {
  font-size: 1rem;
  font-weight: 500;
}

/* Footer */
.g4fd-footer {
  background-color: var(--g4fd-bg-dark);
  padding: 3rem 0 8rem 0;
  margin-top: 3rem;
}

.g4fd-footer-content {
  text-align: center;
  margin-bottom: 2rem;
}

.g4fd-footer-title {
  color: var(--g4fd-secondary);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.g4fd-footer-text {
  color: var(--g4fd-text-muted);
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.g4fd-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.g4fd-footer-link {
  color: var(--g4fd-accent2);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.g4fd-footer-link:hover {
  color: var(--g4fd-primary);
}

.g4fd-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.g4fd-partner-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.g4fd-partner-logo:hover {
  opacity: 1;
}

.g4fd-copyright {
  color: var(--g4fd-text-muted);
  font-size: 1.2rem;
  text-align: center;
}

/* H1 Title */
.g4fd-h1-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--g4fd-primary);
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

/* Highlight Box */
.g4fd-highlight {
  background: var(--g4fd-gradient);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.g4fd-highlight h3 {
  color: var(--g4fd-text);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.g4fd-highlight p {
  color: var(--g4fd-text);
  font-size: 1.3rem;
  opacity: 0.9;
}

/* Toast Notification */
.g4fd-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--g4fd-secondary);
  color: var(--g4fd-dark);
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.g4fd-toast.g4fd-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Loading State */
.g4fd-loading {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Desktop Responsive */
@media (min-width: 769px) {
  .g4fd-bottom-nav {
    display: none;
  }

  .g4fd-main {
    padding-bottom: 2rem;
  }

  .g4fd-menu-toggle {
    display: block;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .g4fd-menu-toggle {
    display: block;
  }

  .g4fd-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }
}

/* Small Mobile */
@media (max-width: 380px) {
  .g4fd-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .g4fd-section-title {
    font-size: 1.8rem;
  }
}

/* Utility Classes */
.g4fd-text-center {
  text-align: center;
}

.g4fd-mt-1 {
  margin-top: 1rem;
}

.g4fd-mb-1 {
  margin-bottom: 1rem;
}

.g4fd-mt-2 {
  margin-top: 2rem;
}

.g4fd-mb-2 {
  margin-bottom: 2rem;
}

/* Animated Button */
@keyframes g4fd-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 20, 147, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 20, 147, 0);
  }
}

.g4fd-btn-pulse {
  animation: g4fd-pulse 2s infinite;
}
