/**
 * OKE Meme - Core Design Stylesheet
 * All classes use pgcf- prefix for namespace isolation
 * Color palette: #D2691E | #F5DEB3 | #FFEFD5 | #1B263B | #006400
 * @version 1.0.0
 */

/* ===== CSS Variables ===== */
:root {
  --pgcf-primary: #D2691E;
  --pgcf-secondary: #006400;
  --pgcf-accent: #F5DEB3;
  --pgcf-bg-dark: #1B263B;
  --pgcf-bg-light: #FFEFD5;
  --pgcf-text-light: #FFEFD5;
  --pgcf-text-dark: #1B263B;
  --pgcf-gold: #D2691E;
  --pgcf-green: #006400;
  --pgcf-cream: #F5DEB3;
  --pgcf-radius: 8px;
  --pgcf-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --pgcf-header-h: 56px;
  --pgcf-bnav-h: 60px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--pgcf-text-light);
  background: var(--pgcf-bg-dark);
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== Header ===== */
.pgcf-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--pgcf-header-h);
  background: var(--pgcf-bg-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  border-bottom: 1px solid rgba(210, 105, 30, 0.3);
  transition: background 0.3s, box-shadow 0.3s;
}
.pgcf-header-scrolled {
  background: rgba(27, 38, 59, 0.97);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
.pgcf-logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.pgcf-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.pgcf-logo-area span {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--pgcf-gold);
  letter-spacing: 0.5px;
}
.pgcf-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pgcf-btn-register {
  background: var(--pgcf-primary);
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: var(--pgcf-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.pgcf-btn-register:hover { background: #b8591a; transform: scale(1.03); }
.pgcf-btn-login {
  background: transparent;
  color: var(--pgcf-accent);
  border: 1px solid var(--pgcf-accent);
  padding: 0.5rem 1.2rem;
  border-radius: var(--pgcf-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.pgcf-btn-login:hover { background: rgba(245, 222, 179, 0.15); }
.pgcf-menu-toggle {
  background: none;
  border: none;
  color: var(--pgcf-accent);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* ===== Mobile Menu ===== */
.pgcf-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.pgcf-overlay-active { opacity: 1; pointer-events: auto; }
.pgcf-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100%;
  background: var(--pgcf-bg-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  border-left: 1px solid rgba(210, 105, 30, 0.3);
}
.pgcf-menu-active { right: 0; }
.pgcf-mobile-menu .pgcf-menu-close {
  background: none;
  border: none;
  color: var(--pgcf-accent);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.2rem;
}
.pgcf-menu-links {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pgcf-menu-links a {
  display: block;
  padding: 1rem 1.2rem;
  color: var(--pgcf-accent);
  font-size: 1.5rem;
  border-radius: var(--pgcf-radius);
  transition: background 0.2s;
}
.pgcf-menu-links a:hover { background: rgba(210, 105, 30, 0.2); }

/* ===== Main Content ===== */
.pgcf-main {
  padding-top: var(--pgcf-header-h);
  min-height: 100vh;
}

/* ===== Carousel ===== */
.pgcf-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--pgcf-radius) var(--pgcf-radius);
}
.pgcf-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.pgcf-carousel-slide img { width: 100%; height: auto; }
.pgcf-slide-active { display: block; }
.pgcf-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.pgcf-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s;
}
.pgcf-dot-active { background: var(--pgcf-primary); }

/* ===== Section Titles ===== */
.pgcf-section {
  padding: 2rem 1.2rem;
}
.pgcf-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pgcf-gold);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--pgcf-primary);
}
.pgcf-section-subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--pgcf-cream);
  margin-bottom: 1rem;
}

/* ===== Game Grid ===== */
.pgcf-game-category-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--pgcf-gold);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--pgcf-green);
}
.pgcf-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.pgcf-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-align: center;
}
.pgcf-game-item:hover { transform: translateY(-2px); }
.pgcf-game-item img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(210, 105, 30, 0.3);
}
.pgcf-game-item span {
  font-size: 1.1rem;
  color: var(--pgcf-cream);
  margin-top: 0.3rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Cards ===== */
.pgcf-card {
  background: rgba(27, 38, 59, 0.7);
  border: 1px solid rgba(210, 105, 30, 0.25);
  border-radius: var(--pgcf-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.pgcf-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pgcf-gold);
  margin-bottom: 0.8rem;
}

/* ===== Buttons ===== */
.pgcf-btn-promo {
  display: inline-block;
  background: linear-gradient(135deg, var(--pgcf-primary), #e87d30);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}
.pgcf-btn-promo:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(210, 105, 30, 0.4);
}

/* ===== Promo Link Text ===== */
.pgcf-promo-link {
  color: var(--pgcf-gold);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
  border-bottom: 1px dashed var(--pgcf-primary);
}
.pgcf-promo-link:hover { color: #e87d30; }

/* ===== Footer ===== */
.pgcf-footer {
  background: rgba(27, 38, 59, 0.9);
  border-top: 1px solid rgba(210, 105, 30, 0.3);
  padding: 2rem 1.2rem 6rem;
}
.pgcf-footer-brand {
  font-size: 1.3rem;
  color: var(--pgcf-accent);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.pgcf-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.pgcf-footer-links a {
  color: var(--pgcf-cream);
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  background: rgba(210, 105, 30, 0.15);
  border-radius: 4px;
  transition: background 0.2s;
}
.pgcf-footer-links a:hover { background: rgba(210, 105, 30, 0.35); }
.pgcf-footer-promo-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.pgcf-footer-copy {
  font-size: 1.1rem;
  color: rgba(245, 222, 179, 0.5);
  text-align: center;
}

/* ===== Bottom Navigation ===== */
.pgcf-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--pgcf-bnav-h);
  background: linear-gradient(180deg, #1a2d42, var(--pgcf-bg-dark));
  border-top: 2px solid var(--pgcf-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
}
.pgcf-bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: var(--pgcf-accent);
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
  padding: 0.2rem;
}
.pgcf-bnav-btn:active { transform: scale(0.9); }
.pgcf-bnav-btn .pgcf-bnav-icon { font-size: 2.2rem; line-height: 1; }
.pgcf-bnav-btn .pgcf-bnav-label {
  font-size: 1rem;
  margin-top: 0.15rem;
  opacity: 0.85;
}
.pgcf-bnav-active {
  color: var(--pgcf-primary) !important;
}
.pgcf-bnav-active .pgcf-bnav-label {
  opacity: 1;
  font-weight: 600;
}

/* ===== Content Typography ===== */
.pgcf-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--pgcf-cream);
}
.pgcf-content h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--pgcf-gold);
  margin: 1.5rem 0 0.8rem;
}
.pgcf-content h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--pgcf-cream);
  margin: 1.2rem 0 0.6rem;
}
.pgcf-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.pgcf-content ul li {
  list-style: disc;
  margin-bottom: 0.5rem;
  color: var(--pgcf-cream);
}

/* ===== Internal Link ===== */
.pgcf-internal-link {
  color: var(--pgcf-accent);
  border-bottom: 1px solid rgba(245, 222, 179, 0.4);
  transition: border-color 0.2s;
}
.pgcf-internal-link:hover { border-color: var(--pgcf-accent); }

/* ===== Responsive ===== */
@media (min-width: 769px) {
  .pgcf-bnav { display: none; }
}
@media (max-width: 768px) {
  .pgcf-main { padding-bottom: 80px; }
  .pgcf-footer { padding-bottom: 6rem; }
}

/* ===== Utility ===== */
.pgcf-text-center { text-align: center; }
.pgcf-mt-1 { margin-top: 0.5rem; }
.pgcf-mt-2 { margin-top: 1rem; }
.pgcf-mb-2 { margin-bottom: 1rem; }
.pgcf-hidden { display: none; }
