/* phpgames.css - Core Stylesheet for phpgames.cfd */
/* All classes use ge87- prefix for namespace isolation */

:root {
  --ge87-light: #E0FFFF;
  --ge87-accent: #87CEEB;
  --ge87-teal: #5F9EA0;
  --ge87-bg: #141414;
  --ge87-text: #E0FFFF;
  --ge87-text-dim: #87CEEB;
  --ge87-card-bg: #1e1e2a;
  --ge87-border: #2a2a3a;
  --ge87-gold: #FFD700;
  --ge87-hover: #5F9EA0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--ge87-bg);
  color: var(--ge87-text);
  max-width: 430px;
  margin: 0 auto;
  padding: 0;
  line-height: 1.5rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ge87-accent); text-decoration: none; }
a:hover { color: var(--ge87-gold); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.ge87-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(135deg, #141414 0%, #1a1a2e 100%);
  border-bottom: 2px solid var(--ge87-teal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  height: 56px;
  box-sizing: border-box;
}

.ge87-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ge87-logo-wrap img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.ge87-logo-wrap span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ge87-light);
  letter-spacing: 0.5px;
}

.ge87-header-btns {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ge87-btn-register {
  background: linear-gradient(135deg, var(--ge87-teal), var(--ge87-accent));
  color: var(--ge87-bg);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.ge87-btn-register:hover { transform: scale(1.05); box-shadow: 0 2px 8px rgba(95,158,160,0.5); }

.ge87-btn-login {
  background: transparent;
  color: var(--ge87-accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--ge87-accent);
  transition: all 0.2s ease;
}

.ge87-btn-login:hover { background: rgba(135,206,235,0.15); }

.ge87-menu-toggle {
  background: none;
  border: none;
  color: var(--ge87-accent);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

/* Mobile Menu */
.ge87-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: none;
  flex-direction: column;
  padding-top: 60px;
}

.ge87-menu-active { display: flex !important; }

.ge87-menu-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--ge87-light);
  font-size: 2.4rem;
  cursor: pointer;
}

.ge87-mobile-menu a {
  display: block;
  padding: 14px 24px;
  font-size: 1.5rem;
  color: var(--ge87-light);
  border-bottom: 1px solid var(--ge87-border);
  transition: background 0.2s;
}

.ge87-mobile-menu a:hover {
  background: rgba(135,206,235,0.15);
  color: var(--ge87-gold);
}

/* Main Content */
main {
  padding-top: 56px;
}

/* Slider */
.ge87-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
}

.ge87-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.ge87-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.ge87-slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.ge87-slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.ge87-dot-active { background: var(--ge87-gold); }

/* Section */
.ge87-section {
  padding: 16px 12px;
}

.ge87-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ge87-light);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ge87-teal);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ge87-section-title i, .ge87-section-title .material-icons {
  color: var(--ge87-accent);
}

/* Game Grid */
.ge87-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ge87-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-align: center;
}

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

.ge87-game-item img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--ge87-border);
  margin-bottom: 4px;
}

.ge87-game-item span {
  font-size: 1rem;
  color: var(--ge87-text-dim);
  line-height: 1.2rem;
  max-height: 2.4rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Promo Buttons */
.ge87-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--ge87-teal), var(--ge87-accent));
  color: var(--ge87-bg);
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 3px 12px rgba(95,158,160,0.3);
}

.ge87-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(95,158,160,0.5);
}

.ge87-promo-link {
  color: var(--ge87-gold);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.ge87-promo-link:hover { color: var(--ge87-accent); }

/* Card */
.ge87-card {
  background: var(--ge87-card-bg);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--ge87-border);
}

.ge87-card h3 {
  font-size: 1.5rem;
  color: var(--ge87-light);
  margin: 0 0 8px 0;
}

.ge87-card p {
  font-size: 1.2rem;
  color: var(--ge87-text-dim);
  margin: 0 0 8px 0;
  line-height: 1.6rem;
}

/* Footer */
.ge87-footer {
  background: #0d0d1a;
  padding: 24px 12px;
  text-align: center;
  border-top: 2px solid var(--ge87-teal);
}

.ge87-footer-brand {
  font-size: 1.2rem;
  color: var(--ge87-text-dim);
  margin-bottom: 16px;
  line-height: 1.6rem;
}

.ge87-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.ge87-footer-links a {
  font-size: 1.1rem;
  color: var(--ge87-accent);
  padding: 4px 8px;
}

.ge87-footer-links a:hover { color: var(--ge87-gold); }

.ge87-footer-copy {
  font-size: 1rem;
  color: #666;
  margin-top: 12px;
}

/* Bottom Navigation */
.ge87-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #1a1a2e, #0d0d1a);
  border-top: 2px solid var(--ge87-teal);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  box-sizing: border-box;
}

.ge87-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--ge87-text-dim);
  transition: all 0.2s ease;
  gap: 2px;
}

.ge87-bottom-nav-btn i,
.ge87-bottom-nav-btn .material-icons,
.ge87-bottom-nav-btn ion-icon {
  font-size: 22px;
}

.ge87-bottom-nav-btn span {
  font-size: 1rem;
  line-height: 1.2rem;
}

.ge87-bottom-nav-btn:hover {
  color: var(--ge87-gold);
  transform: scale(1.1);
}

.ge87-bottom-nav-btn.ge87-nav-active {
  color: var(--ge87-accent);
}

/* Promo buttons in footer */
.ge87-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.ge87-footer-promos .ge87-promo-btn {
  font-size: 1.1rem;
  padding: 6px 14px;
}

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .ge87-bottom-nav { display: none; }
}

/* Mobile: add bottom padding */
@media (max-width: 768px) {
  main { padding-bottom: 72px; }
  .ge87-footer { padding-bottom: 72px; }
}

/* Winner ticker */
.ge87-winner-ticker {
  background: var(--ge87-card-bg);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ge87-winner-ticker .ge87-winner-name {
  color: var(--ge87-gold);
  font-weight: 600;
  font-size: 1.2rem;
}

.ge87-winner-ticker .ge87-winner-amount {
  color: var(--ge87-accent);
  font-weight: 700;
  font-size: 1.2rem;
}

.ge87-winner-ticker .ge87-winner-game {
  color: var(--ge87-text-dim);
  font-size: 1rem;
}

/* H tags */
h1 { font-size: 2rem; margin: 12px 0; color: var(--ge87-light); line-height: 2.4rem; }
h2 { font-size: 1.7rem; margin: 10px 0; color: var(--ge87-light); }
h3 { font-size: 1.4rem; margin: 8px 0; color: var(--ge87-light); }

/* Content paragraphs */
.ge87-content p {
  font-size: 1.2rem;
  color: var(--ge87-text-dim);
  line-height: 1.8rem;
  margin-bottom: 10px;
}

.ge87-content ul {
  font-size: 1.2rem;
  color: var(--ge87-text-dim);
  padding-left: 20px;
  margin-bottom: 10px;
}

.ge87-content li { margin-bottom: 4px; line-height: 1.6rem; }

/* Payment icons row */
.ge87-payment-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 0;
}

.ge87-payment-row span {
  font-size: 1.2rem;
  color: var(--ge87-text-dim);
  padding: 6px 12px;
  background: var(--ge87-card-bg);
  border-radius: 8px;
  border: 1px solid var(--ge87-border);
}

/* Feature grid */
.ge87-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.ge87-feature-item {
  background: var(--ge87-card-bg);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  border: 1px solid var(--ge87-border);
}

.ge87-feature-item i,
.ge87-feature-item .material-icons {
  font-size: 28px;
  color: var(--ge87-accent);
  margin-bottom: 6px;
}

.ge87-feature-item h4 {
  font-size: 1.3rem;
  color: var(--ge87-light);
  margin: 4px 0;
}

.ge87-feature-item p {
  font-size: 1rem;
  color: var(--ge87-text-dim);
  margin: 0;
}
