/**
 * PhilWin Layout Stylesheet
 * File: css/layout-f8e9.css
 * Prefix: wf8e9-
 * Colors: #FFE135 | #FFFACD | #2D2D2D | #DEB887 | #6A5ACD | #BBBBBB
 */

/* CSS Variables */
:root {
  --wf8e9-gold: #FFE135;
  --wf8e9-cream: #FFFACD;
  --wf8e9-dark: #2D2D2D;
  --wf8e9-tan: #DEB887;
  --wf8e9-purple: #6A5ACD;
  --wf8e9-gray: #BBBBBB;
  --wf8e9-bg: #1a1a2e;
  --wf8e9-card-bg: #16213e;
  --wf8e9-text: #f0f0f0;
  --wf8e9-accent: #FFE135;
  --wf8e9-radius: 8px;
  --wf8e9-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, sans-serif;
  background: var(--wf8e9-bg);
  color: var(--wf8e9-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--wf8e9-gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.wf8e9-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.wf8e9-wrapper { width: 100%; padding: 1.2rem 0; }
.wf8e9-grid { display: grid; gap: 1rem; }

/* Header */
.wf8e9-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--wf8e9-dark) 0%, #0f3460 100%);
  border-bottom: 2px solid var(--wf8e9-gold);
  max-width: 430px; margin: 0 auto;
}
.wf8e9-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; height: 5.2rem;
}
.wf8e9-logo-area { display: flex; align-items: center; gap: 0.6rem; }
.wf8e9-logo-area img { width: 3.2rem; height: 3.2rem; border-radius: 0.6rem; }
.wf8e9-logo-area span { font-size: 1.8rem; font-weight: 800; color: var(--wf8e9-gold); letter-spacing: 0.5px; }
.wf8e9-header-actions { display: flex; gap: 0.6rem; align-items: center; }
.wf8e9-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.4rem; border-radius: var(--wf8e9-radius);
  font-size: 1.3rem; font-weight: 700; border: none; cursor: pointer;
  transition: all 0.2s ease; min-height: 4rem;
}
.wf8e9-btn-register {
  background: linear-gradient(135deg, var(--wf8e9-gold), #f0c000);
  color: var(--wf8e9-dark);
}
.wf8e9-btn-register:hover { transform: scale(1.05); background: linear-gradient(135deg, #f0c000, var(--wf8e9-gold)); }
.wf8e9-btn-login {
  background: transparent; color: var(--wf8e9-gold);
  border: 2px solid var(--wf8e9-gold);
}
.wf8e9-btn-login:hover { background: var(--wf8e9-gold); color: var(--wf8e9-dark); }
.wf8e9-menu-btn {
  background: none; border: none; color: var(--wf8e9-gold);
  font-size: 2.2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile Menu */
.wf8e9-mobile-menu {
  position: fixed; top: 0; right: -80%; width: 75%; height: 100vh;
  background: linear-gradient(180deg, var(--wf8e9-dark), #0a1628);
  z-index: 9999; transition: right 0.3s ease;
  padding: 2rem 1.5rem; overflow-y: auto;
}
.wf8e9-menu-active { right: 0; }
.wf8e9-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
  display: none; opacity: 0; transition: opacity 0.3s ease;
}
.wf8e9-overlay-active { display: block; opacity: 1; }
.wf8e9-menu-close {
  background: none; border: none; color: var(--wf8e9-gold);
  font-size: 2.4rem; cursor: pointer; float: right; margin-bottom: 1rem;
}
.wf8e9-menu-list { clear: both; list-style: none; padding-top: 1rem; }
.wf8e9-menu-list li {
  border-bottom: 1px solid rgba(255,225,53,0.15);
}
.wf8e9-menu-list a {
  display: block; padding: 1.2rem 0; color: var(--wf8e9-cream);
  font-size: 1.5rem; font-weight: 500;
  transition: color 0.2s ease;
}
.wf8e9-menu-list a:hover { color: var(--wf8e9-gold); text-decoration: none; }

/* Carousel */
.wf8e9-carousel { position: relative; overflow: hidden; margin-top: 5.4rem; }
.wf8e9-slide {
  display: none; width: 100%; cursor: pointer;
}
.wf8e9-slide-active { display: block; animation: wf8e9fadeSlide 0.5s ease; }
@keyframes wf8e9fadeSlide { from { opacity: 0.3; } to { opacity: 1; } }
.wf8e9-slide img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.wf8e9-dots {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.6rem;
}
.wf8e9-dot {
  width: 1rem; height: 1rem; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: background 0.3s ease; border: none;
}
.wf8e9-dot-active { background: var(--wf8e9-gold); }

/* Section Headers */
.wf8e9-section { padding: 1.5rem 1.2rem; }
.wf8e9-section-title {
  font-size: 1.8rem; font-weight: 800; color: var(--wf8e9-gold);
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--wf8e9-purple);
}
.wf8e9-section-title i { margin-right: 0.5rem; }

/* Game Grid */
.wf8e9-game-category-title {
  font-size: 1.5rem; font-weight: 700; color: var(--wf8e9-tan);
  margin: 1.2rem 0 0.8rem; padding-left: 0.4rem;
  border-left: 3px solid var(--wf8e9-gold);
}
.wf8e9-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.wf8e9-game-card {
  display: flex; flex-direction: column; align-items: center;
  background: var(--wf8e9-card-bg); border-radius: var(--wf8e9-radius);
  padding: 0.6rem; cursor: pointer; transition: transform 0.2s ease;
  border: 1px solid rgba(255,225,53,0.1);
}
.wf8e9-game-card:hover { transform: translateY(-2px); border-color: var(--wf8e9-gold); }
.wf8e9-game-card img {
  width: 100%; aspect-ratio: 1; border-radius: 0.6rem;
  margin-bottom: 0.4rem;
}
.wf8e9-game-card span {
  font-size: 1rem; color: var(--wf8e9-cream); text-align: center;
  line-height: 1.2; font-weight: 500; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; width: 100%;
}
.wf8e9-touch-active { transform: scale(0.95); }

/* Content Cards */
.wf8e9-card {
  background: var(--wf8e9-card-bg); border-radius: var(--wf8e9-radius);
  padding: 1.5rem; margin-bottom: 1.2rem;
  border: 1px solid rgba(255,225,53,0.08);
  box-shadow: var(--wf8e9-shadow);
}
.wf8e9-card h3 {
  font-size: 1.5rem; color: var(--wf8e9-gold); margin-bottom: 0.8rem;
}
.wf8e9-card p {
  font-size: 1.3rem; line-height: 1.8; color: var(--wf8e9-gray);
}

/* CTA Button */
.wf8e9-cta {
  display: block; width: 100%; padding: 1.2rem;
  background: linear-gradient(135deg, var(--wf8e9-gold), #f0c000);
  color: var(--wf8e9-dark); font-size: 1.6rem; font-weight: 800;
  text-align: center; border: none; border-radius: var(--wf8e9-radius);
  cursor: pointer; transition: all 0.2s ease; margin: 1.5rem 0;
}
.wf8e9-cta:hover { transform: scale(1.02); box-shadow: 0 4px 20px rgba(255,225,53,0.4); }

/* Promo text link */
.wf8e9-promo-link {
  color: var(--wf8e9-gold); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed var(--wf8e9-gold);
}
.wf8e9-promo-link:hover { text-decoration: none; border-bottom-style: solid; }

/* Footer */
.wf8e9-footer {
  background: linear-gradient(180deg, var(--wf8e9-card-bg), var(--wf8e9-dark));
  padding: 2rem 1.2rem 8rem; border-top: 2px solid var(--wf8e9-gold);
}
.wf8e9-footer-brand {
  font-size: 1.3rem; color: var(--wf8e9-gray); line-height: 1.8;
  margin-bottom: 1.5rem;
}
.wf8e9-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem;
}
.wf8e9-footer-links a {
  padding: 0.5rem 1rem; background: rgba(255,225,53,0.1);
  border-radius: 2rem; font-size: 1.2rem; color: var(--wf8e9-cream);
  border: 1px solid rgba(255,225,53,0.2); transition: all 0.2s ease;
}
.wf8e9-footer-links a:hover { background: var(--wf8e9-gold); color: var(--wf8e9-dark); text-decoration: none; }
.wf8e9-footer-copy {
  font-size: 1.1rem; color: var(--wf8e9-gray); text-align: center;
  padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1);
}

/* Bottom Navigation */
.wf8e9-bnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000; height: 6rem;
  background: linear-gradient(135deg, var(--wf8e9-dark), #0a1628);
  border-top: 2px solid var(--wf8e9-gold);
  display: flex; justify-content: space-around; align-items: center;
  max-width: 430px; margin: 0 auto;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}
.wf8e9-bnav-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 6rem; min-height: 5.6rem;
  background: none; border: none; cursor: pointer;
  color: var(--wf8e9-gray); transition: all 0.25s ease;
  position: relative;
}
.wf8e9-bnav-btn i, .wf8e9-bnav-btn .material-icons-outlined {
  font-size: 2.4rem; margin-bottom: 0.2rem;
  transition: transform 0.25s ease, color 0.25s ease;
}
.wf8e9-bnav-btn span {
  font-size: 1rem; font-weight: 600; white-space: nowrap;
}
.wf8e9-bnav-btn:hover, .wf8e9-bnav-active {
  color: var(--wf8e9-gold);
}
.wf8e9-bnav-btn:hover i, .wf8e9-bnav-active i,
.wf8e9-bnav-btn:hover .material-icons-outlined, .wf8e9-bnav-active .material-icons-outlined {
  transform: scale(1.15);
}
.wf8e9-bnav-active::after {
  content: ''; position: absolute; top: -2px; left: 25%; right: 25%;
  height: 3px; background: var(--wf8e9-gold); border-radius: 0 0 3px 3px;
}

/* Testimonials */
.wf8e9-testimonial {
  background: rgba(106,90,205,0.15); border-left: 3px solid var(--wf8e9-purple);
  padding: 1rem 1.2rem; margin-bottom: 1rem; border-radius: 0 var(--wf8e9-radius) var(--wf8e9-radius) 0;
}
.wf8e9-testimonial-name { font-size: 1.2rem; color: var(--wf8e9-gold); font-weight: 700; }
.wf8e9-testimonial-text { font-size: 1.3rem; color: var(--wf8e9-cream); margin-top: 0.3rem; }

/* Winner showcase */
.wf8e9-winner-row {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.wf8e9-winner-name { font-size: 1.2rem; color: var(--wf8e9-cream); flex: 1; }
.wf8e9-winner-amount { font-size: 1.3rem; color: var(--wf8e9-gold); font-weight: 700; }

/* Payment icons */
.wf8e9-payment-row { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; padding: 1rem 0; }
.wf8e9-payment-item {
  background: rgba(255,225,53,0.08); border-radius: 0.6rem;
  padding: 0.6rem 1.2rem; font-size: 1.2rem; color: var(--wf8e9-cream);
  border: 1px solid rgba(255,225,53,0.15);
}

/* Desktop hide bottom nav, show wider layout */
@media (min-width: 769px) {
  .wf8e9-bnav { display: none; }
  body { max-width: 100%; }
  .wf8e9-header { max-width: 100%; }
  .wf8e9-container { max-width: 800px; }
}

/* Mobile bottom padding */
@media (max-width: 768px) {
  .wf8e9-main-content { padding-bottom: 8rem; }
  .wf8e9-footer { padding-bottom: 8rem; }
}
