/**
 * Club Ph - Layout Stylesheet
 * File: css/layout-9030.css
 * Prefix: g30c-
 * Color Palette: #8470FF | #FFBF00 | #3A3A3A | #FFF176
 */

/* === CSS Variables === */
:root {
  --g30c-primary: #8470FF;
  --g30c-gold: #FFBF00;
  --g30c-dark: #3A3A3A;
  --g30c-light: #FFF176;
  --g30c-bg: #1a1a2e;
  --g30c-bg-card: #232347;
  --g30c-bg-deep: #0f0f23;
  --g30c-text: #f0f0f0;
  --g30c-text-muted: #b0b0c8;
  --g30c-accent: #FFBF00;
  --g30c-border: rgba(132, 112, 255, 0.25);
  --g30c-radius: 10px;
  --g30c-radius-sm: 6px;
  --g30c-radius-lg: 16px;
  --g30c-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --g30c-transition: all 0.3s ease;
  font-size: 62.5%;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--g30c-bg);
  color: var(--g30c-text);
  font-size: 1.6rem;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--g30c-gold); text-decoration: none; transition: var(--g30c-transition); }
a:hover { color: var(--g30c-light); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Header === */
.g30c-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(135deg, var(--g30c-bg-deep) 0%, #1e1e3f 100%);
  border-bottom: 1px solid var(--g30c-border);
  padding: 0 1.2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--g30c-transition);
}
.g30c-header-scrolled {
  box-shadow: 0 2px 16px rgba(132, 112, 255, 0.3);
}
.g30c-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}
.g30c-logo img { width: 28px; height: 28px; border-radius: 4px; }
.g30c-logo span {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--g30c-primary), var(--g30c-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.g30c-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.g30c-btn-register {
  background: linear-gradient(135deg, var(--g30c-gold), #e6a800);
  color: var(--g30c-dark);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: var(--g30c-transition);
}
.g30c-btn-register:hover { transform: scale(1.05); box-shadow: 0 2px 12px rgba(255, 191, 0, 0.4); }
.g30c-btn-login {
  background: transparent;
  color: var(--g30c-primary);
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1.5px solid var(--g30c-primary);
  cursor: pointer;
  transition: var(--g30c-transition);
}
.g30c-btn-login:hover { background: var(--g30c-primary); color: #fff; }
.g30c-menu-toggle {
  background: none;
  border: none;
  color: var(--g30c-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* === Mobile Menu === */
.g30c-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100vh;
  background: var(--g30c-bg-deep);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.g30c-menu-active { right: 0; }
.g30c-mobile-menu .g30c-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--g30c-text);
  font-size: 2.4rem;
  cursor: pointer;
}
.g30c-mobile-menu ul { margin-top: 3rem; }
.g30c-mobile-menu li {
  margin-bottom: 0.3rem;
}
.g30c-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0.8rem;
  color: var(--g30c-text);
  font-size: 1.4rem;
  font-weight: 500;
  border-radius: var(--g30c-radius-sm);
  transition: var(--g30c-transition);
}
.g30c-mobile-menu a:hover {
  background: rgba(132, 112, 255, 0.15);
  color: var(--g30c-gold);
}
.g30c-menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  display: none;
}
.g30c-overlay-active { display: block; }

/* === Main Content === */
.g30c-main {
  padding-top: 56px;
  min-height: 100vh;
}

/* === Carousel === */
.g30c-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--g30c-radius-lg) var(--g30c-radius-lg);
}
.g30c-slides-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}
.g30c-slide {
  min-width: 100%;
  display: none;
  cursor: pointer;
}
.g30c-slide-active { display: block; }
.g30c-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.g30c-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.g30c-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
}
.g30c-dot-active { background: var(--g30c-gold); }

/* === Sections === */
.g30c-section {
  padding: 2rem 1.4rem;
}
.g30c-section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--g30c-gold);
  position: relative;
  padding-left: 1.2rem;
}
.g30c-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--g30c-primary);
  border-radius: 2px;
}
.g30c-section-subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--g30c-primary);
  margin: 1.2rem 0 0.8rem;
}

/* === Game Grid === */
.g30c-game-category { margin-bottom: 2rem; }
.g30c-game-category-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g30c-gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.g30c-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.g30c-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--g30c-transition);
  border-radius: var(--g30c-radius);
  padding: 0.5rem;
  background: var(--g30c-bg-card);
  border: 1px solid transparent;
}
.g30c-game-item:hover {
  transform: translateY(-3px);
  border-color: var(--g30c-primary);
  box-shadow: 0 4px 12px rgba(132, 112, 255, 0.3);
}
.g30c-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--g30c-radius-sm);
  margin-bottom: 0.4rem;
}
.g30c-game-item span {
  font-size: 1.1rem;
  color: var(--g30c-text-muted);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Cards === */
.g30c-card {
  background: var(--g30c-bg-card);
  border-radius: var(--g30c-radius);
  padding: 1.6rem;
  border: 1px solid var(--g30c-border);
  margin-bottom: 1.2rem;
}
.g30c-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--g30c-gold);
  margin-bottom: 0.8rem;
}

/* === Promo Buttons === */
.g30c-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--g30c-primary), #6a5acd);
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
  padding: 1rem 2rem;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: var(--g30c-transition);
  text-align: center;
  min-width: 44px;
  min-height: 44px;
}
.g30c-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(132, 112, 255, 0.5);
}
.g30c-promo-btn-gold {
  background: linear-gradient(135deg, var(--g30c-gold), #e6a800);
  color: var(--g30c-dark);
}
.g30c-promo-text {
  color: var(--g30c-gold);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: var(--g30c-transition);
}
.g30c-promo-text:hover { color: var(--g30c-light); }

/* === Winner Table === */
.g30c-winners-table {
  width: 100%;
  font-size: 1.2rem;
}
.g30c-winners-table th {
  color: var(--g30c-gold);
  text-align: left;
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid var(--g30c-border);
  font-weight: 600;
}
.g30c-winners-table td {
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid rgba(132, 112, 255, 0.1);
  color: var(--g30c-text-muted);
}

/* === Features Grid === */
.g30c-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.g30c-feature-item {
  background: var(--g30c-bg-card);
  border-radius: var(--g30c-radius);
  padding: 1.2rem;
  text-align: center;
  border: 1px solid var(--g30c-border);
  transition: var(--g30c-transition);
}
.g30c-feature-item:hover { border-color: var(--g30c-primary); }
.g30c-feature-item i, .g30c-feature-item .material-symbols-outlined {
  font-size: 2.4rem;
  color: var(--g30c-gold);
  margin-bottom: 0.6rem;
}
.g30c-feature-item h3 {
  font-size: 1.3rem;
  color: var(--g30c-text);
  margin-bottom: 0.4rem;
}
.g30c-feature-item p {
  font-size: 1.1rem;
  color: var(--g30c-text-muted);
}

/* === Testimonials === */
.g30c-testimonial {
  background: var(--g30c-bg-card);
  border-radius: var(--g30c-radius);
  padding: 1.4rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--g30c-primary);
}
.g30c-testimonial-name {
  font-weight: 700;
  color: var(--g30c-gold);
  font-size: 1.3rem;
}
.g30c-testimonial-text {
  color: var(--g30c-text-muted);
  font-size: 1.3rem;
  margin-top: 0.4rem;
  font-style: italic;
}

/* === Payment Methods === */
.g30c-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.g30c-payment-item {
  background: var(--g30c-bg-card);
  border-radius: var(--g30c-radius-sm);
  padding: 0.8rem 1.4rem;
  font-size: 1.2rem;
  color: var(--g30c-text-muted);
  border: 1px solid var(--g30c-border);
}

/* === App Download CTA === */
.g30c-app-cta {
  background: linear-gradient(135deg, var(--g30c-bg-card), rgba(132, 112, 255, 0.15));
  border-radius: var(--g30c-radius-lg);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--g30c-border);
}
.g30c-app-cta h3 {
  font-size: 1.8rem;
  color: var(--g30c-gold);
  margin-bottom: 0.8rem;
}

/* === Footer === */
.g30c-footer {
  background: var(--g30c-bg-deep);
  padding: 2rem 1.4rem 8rem;
  border-top: 1px solid var(--g30c-border);
}
.g30c-footer-brand {
  font-size: 1.3rem;
  color: var(--g30c-text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}
.g30c-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.g30c-footer-links a {
  font-size: 1.2rem;
  color: var(--g30c-text-muted);
  padding: 0.4rem 0.8rem;
  background: rgba(132, 112, 255, 0.1);
  border-radius: 15px;
  transition: var(--g30c-transition);
}
.g30c-footer-links a:hover { color: var(--g30c-gold); background: rgba(132, 112, 255, 0.2); }
.g30c-footer-copy {
  font-size: 1.1rem;
  color: var(--g30c-text-muted);
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--g30c-border);
}

/* === Bottom Navigation === */
.g30c-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #1e1e3f 0%, var(--g30c-bg-deep) 100%);
  border-top: 1px solid var(--g30c-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.4rem;
}
.g30c-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--g30c-text-muted);
  transition: var(--g30c-transition);
  padding: 0.2rem;
  border-radius: 8px;
}
.g30c-nav-btn:hover, .g30c-nav-btn:focus {
  color: var(--g30c-gold);
  transform: scale(1.08);
}
.g30c-nav-btn.g30c-nav-active { color: var(--g30c-gold); }
.g30c-nav-btn i, .g30c-nav-btn .material-symbols-outlined, .g30c-nav-btn ion-icon, .g30c-nav-btn bi {
  font-size: 2.2rem;
  margin-bottom: 0.1rem;
}
.g30c-nav-btn span {
  font-size: 1rem;
  font-weight: 500;
}

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

/* === Content Paragraph === */
.g30c-content p {
  font-size: 1.4rem;
  color: var(--g30c-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* === Responsive === */
@media (min-width: 769px) {
  .g30c-bottom-nav { display: none; }
  .g30c-menu-toggle { display: none; }
  .g30c-footer { padding-bottom: 2rem; }
}
@media (max-width: 768px) {
  .g30c-main { padding-bottom: 80px; }
}
