/**
 * PhilWin Layout Stylesheet
 * All classes use gde4- prefix for namespace isolation
 * Color palette: #E8F5E8 | #F08080 | #BAE1FF | #1B263B | #004D40
 * @version 1.0.0
 */

/* === CSS Variables === */
:root {
  --gde4-primary: #004D40;
  --gde4-secondary: #F08080;
  --gde4-accent: #BAE1FF;
  --gde4-bg: #1B263B;
  --gde4-bg-light: #243447;
  --gde4-text: #E8F5E8;
  --gde4-text-muted: #a8c8a8;
  --gde4-highlight: #F08080;
  --gde4-success: #4CAF50;
  --gde4-gold: #FFD700;
  --gde4-radius: 8px;
  --gde4-shadow: 0 2px 12px rgba(0,0,0,0.3);
  font-size: 62.5%;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--gde4-bg);
  color: var(--gde4-text);
  font-size: 1.6rem;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gde4-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gde4-highlight); }

img { max-width: 100%; height: auto; display: block; }

/* === Container === */
.gde4-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  width: 100%;
}

.gde4-wrapper {
  width: 100%;
  min-height: 100vh;
}

/* === Header === */
.gde4-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--gde4-primary) 0%, #00382e 100%);
  border-bottom: 2px solid rgba(240,128,128,0.3);
  height: 56px;
}

.gde4-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 100%;
}

.gde4-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gde4-text);
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
}

.gde4-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.gde4-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.gde4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--gde4-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  line-height: 1;
  min-height: 36px;
}

.gde4-btn-register {
  background: linear-gradient(135deg, var(--gde4-highlight) 0%, #e06060 100%);
  color: #fff;
}

.gde4-btn-login {
  background: transparent;
  color: var(--gde4-accent);
  border: 1.5px solid var(--gde4-accent);
}

.gde4-btn:hover { transform: scale(1.03); }
.gde4-btn-register:hover { box-shadow: 0 0 16px rgba(240,128,128,0.5); }
.gde4-btn-login:hover { background: rgba(186,225,255,0.1); }

.gde4-menu-toggle {
  background: none;
  border: none;
  color: var(--gde4-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* === Mobile Menu === */
.gde4-mobile-menu {
  display: none;
  max-height: 0;
  overflow: hidden;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--gde4-bg-light);
  border-bottom: 2px solid var(--gde4-primary);
  transition: max-height 0.3s ease;
}

.gde4-mobile-menu a {
  display: block;
  padding: 1.2rem 1.6rem;
  color: var(--gde4-text);
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(232,245,232,0.1);
  transition: background 0.2s;
}

.gde4-mobile-menu a:hover {
  background: rgba(0,77,64,0.3);
  color: var(--gde4-highlight);
}

/* === Carousel === */
.gde4-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--gde4-radius);
  margin-top: 1rem;
}

.gde4-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.gde4-slide {
  min-width: 100%;
  cursor: pointer;
  position: relative;
}

.gde4-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--gde4-radius);
}

.gde4-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.gde4-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(232,245,232,0.3);
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}

.gde4-dot.gde4-active { background: var(--gde4-highlight); }

/* === Section Headings === */
.gde4-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gde4-text);
  margin: 2rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--gde4-primary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.gde4-section-title i {
  color: var(--gde4-highlight);
  font-size: 2.2rem;
}

/* === Game Grid === */
.gde4-game-section {
  margin-bottom: 2rem;
}

.gde4-game-category {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--gde4-accent);
  margin-bottom: 0.8rem;
  padding-left: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gde4-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.gde4-game-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--gde4-radius);
  padding: 0.4rem;
}

.gde4-game-card:hover { transform: translateY(-2px); }

.gde4-game-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 2px solid rgba(0,77,64,0.4);
  margin-bottom: 0.3rem;
  object-fit: cover;
}

.gde4-game-card span {
  font-size: 1.1rem;
  color: var(--gde4-text-muted);
  display: block;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Content Cards === */
.gde4-card {
  background: var(--gde4-bg-light);
  border-radius: var(--gde4-radius);
  padding: 1.6rem;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(0,77,64,0.3);
}

.gde4-card h2 {
  font-size: 1.8rem;
  color: var(--gde4-text);
  margin-bottom: 1rem;
}

.gde4-card h3 {
  font-size: 1.5rem;
  color: var(--gde4-accent);
  margin: 1rem 0 0.6rem;
}

.gde4-card p {
  font-size: 1.4rem;
  color: var(--gde4-text-muted);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

/* === Promo Links === */
.gde4-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--gde4-highlight) 0%, #d05050 100%);
  color: #fff;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(240,128,128,0.3);
}

.gde4-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240,128,128,0.5);
}

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

.gde4-promo-link:hover { color: #ff9999; }

/* === RTP Table === */
.gde4-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.3rem;
}

.gde4-rtp-table th {
  background: var(--gde4-primary);
  color: var(--gde4-text);
  padding: 0.8rem;
  text-align: left;
  font-weight: 600;
}

.gde4-rtp-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid rgba(232,245,232,0.08);
  color: var(--gde4-text-muted);
}

.gde4-rtp-table tr:hover td { background: rgba(0,77,64,0.15); }

/* === Testimonials === */
.gde4-testimonial {
  background: var(--gde4-bg-light);
  border-left: 3px solid var(--gde4-highlight);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  border-radius: 0 var(--gde4-radius) var(--gde4-radius) 0;
}

.gde4-testimonial p {
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gde4-text-muted);
  margin-bottom: 0.4rem;
}

.gde4-testimonial .gde4-author {
  font-size: 1.2rem;
  color: var(--gde4-accent);
  font-weight: 600;
}

/* === Winners Badge === */
.gde4-winner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--gde4-bg-light);
  padding: 1rem;
  border-radius: var(--gde4-radius);
  margin-bottom: 0.8rem;
  border: 1px solid rgba(255,215,0,0.2);
}

.gde4-winner .gde4-amount {
  color: var(--gde4-gold);
  font-weight: 700;
  font-size: 1.5rem;
}

.gde4-winner .gde4-game-name {
  color: var(--gde4-text-muted);
  font-size: 1.2rem;
}

/* === Footer === */
.gde4-footer {
  background: linear-gradient(180deg, var(--gde4-bg-light) 0%, #111b2b 100%);
  padding: 2rem 0 1rem;
  margin-top: 2rem;
  border-top: 2px solid var(--gde4-primary);
}

.gde4-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.gde4-footer-brand p {
  font-size: 1.3rem;
  color: var(--gde4-text-muted);
  line-height: 1.6;
  max-width: 360px;
  margin: 0 auto;
}

.gde4-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.gde4-footer-links a {
  background: rgba(0,77,64,0.3);
  color: var(--gde4-text);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.gde4-footer-links a:hover {
  background: var(--gde4-primary);
  color: #fff;
}

.gde4-footer-promo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.gde4-footer-promo .gde4-promo-btn {
  font-size: 1.2rem;
  padding: 0.6rem 1.4rem;
}

.gde4-footer-copy {
  text-align: center;
  font-size: 1.2rem;
  color: rgba(232,245,232,0.4);
  padding-top: 1rem;
  border-top: 1px solid rgba(232,245,232,0.08);
}

/* === Bottom Navigation === */
.gde4-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background: linear-gradient(180deg, #1a2e40 0%, var(--gde4-primary) 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 2px solid rgba(240,128,128,0.3);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}

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

.gde4-nav-btn i, .gde4-nav-btn .material-icons {
  font-size: 22px;
  transition: transform 0.2s;
}

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

.gde4-nav-btn:hover, .gde4-nav-btn.gde4-active {
  color: var(--gde4-highlight);
}

.gde4-nav-btn:hover i, .gde4-nav-btn.gde4-active i,
.gde4-nav-btn:hover .material-icons, .gde4-nav-btn.gde4-active .material-icons {
  transform: scale(1.15);
}

.gde4-nav-btn.gde4-active {
  position: relative;
}

.gde4-nav-btn.gde4-active::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--gde4-highlight);
  border-radius: 2px;
}

/* === Main Content === */
.gde4-main {
  padding-top: 56px;
  padding-bottom: 1rem;
}

/* === Payment Icons === */
.gde4-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.gde4-payment-item {
  background: var(--gde4-bg-light);
  padding: 1rem 1.6rem;
  border-radius: var(--gde4-radius);
  font-size: 1.3rem;
  color: var(--gde4-text-muted);
  border: 1px solid rgba(0,77,64,0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* === FAQ Accordion === */
.gde4-faq-item {
  background: var(--gde4-bg-light);
  border-radius: var(--gde4-radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
  border: 1px solid rgba(0,77,64,0.2);
}

.gde4-faq-q {
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: var(--gde4-accent);
  font-size: 1.4rem;
  cursor: pointer;
}

.gde4-faq-a {
  padding: 0 1.2rem 1rem;
  color: var(--gde4-text-muted);
  font-size: 1.3rem;
  line-height: 1.5;
}

/* === App Download CTA === */
.gde4-app-cta {
  background: linear-gradient(135deg, var(--gde4-primary) 0%, #00382e 100%);
  border-radius: var(--gde4-radius);
  padding: 2rem 1.6rem;
  text-align: center;
  border: 1px solid rgba(240,128,128,0.2);
}

.gde4-app-cta h3 {
  color: var(--gde4-highlight);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.gde4-app-cta p {
  color: var(--gde4-text-muted);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

/* === Internal Links === */
.gde4-internal-link {
  color: var(--gde4-accent);
  text-decoration: underline;
  font-weight: 500;
}

.gde4-internal-link:hover {
  color: var(--gde4-highlight);
}

/* === Responsive === */
@media (max-width: 768px) {
  .gde4-main {
    padding-bottom: 80px;
  }
}

@media (min-width: 769px) {
  .gde4-bottom-nav {
    display: none;
  }
  .gde4-container {
    max-width: 430px;
  }
}

/* === Utility Classes === */
.gde4-text-center { text-align: center; }
.gde4-mt-1 { margin-top: 0.5rem; }
.gde4-mt-2 { margin-top: 1rem; }
.gde4-mt-3 { margin-top: 1.5rem; }
.gde4-mb-1 { margin-bottom: 0.5rem; }
.gde4-mb-2 { margin-bottom: 1rem; }
.gde4-mb-3 { margin-bottom: 1.5rem; }
.gde4-bold { font-weight: 700; }
.gde4-highlight { color: var(--gde4-highlight); }
