/**
 * Pinoy Timezone - Design Stylesheet
 * All classes use g34c- prefix for namespace isolation
 * Mobile-first responsive design, max-width: 430px
 */

/* CSS Variables */
:root {
  --g34c-primary: #FFAA00;
  --g34c-primary-dark: #cc8800;
  --g34c-bg: #141414;
  --g34c-bg-light: #1e1e1e;
  --g34c-bg-card: #222222;
  --g34c-text: #DCDCDC;
  --g34c-text-muted: #C0C0C0;
  --g34c-text-dim: #708090;
  --g34c-border: #CED4DA;
  --g34c-border-dark: #333333;
  --g34c-accent: #FFAA00;
  --g34c-accent-hover: #ffbb33;
  --g34c-danger: #ff4444;
  --g34c-success: #00cc66;
  --g34c-radius: 8px;
  --g34c-radius-lg: 12px;
  --g34c-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --g34c-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.5);
  --g34c-font-size: 62.5%;
  --g34c-header-height: 56px;
  --g34c-bottom-nav-height: 60px;
}

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

html {
  font-size: var(--g34c-font-size);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--g34c-bg);
  color: var(--g34c-text);
  line-height: 1.5rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
}

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

a:hover {
  color: var(--g34c-accent-hover);
}

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

ul, ol {
  list-style: none;
}

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

.g34c-wrapper {
  padding-top: var(--g34c-header-height);
  padding-bottom: 2rem;
}

@media (max-width: 768px) {
  .g34c-wrapper {
    padding-bottom: 80px;
  }
}

/* Header */
.g34c-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--g34c-header-height);
  background: var(--g34c-bg);
  border-bottom: 1px solid var(--g34c-border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  transition: box-shadow 0.3s;
}

.g34c-header-scrolled {
  box-shadow: var(--g34c-shadow-lg);
}

.g34c-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g34c-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.g34c-site-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--g34c-primary);
  white-space: nowrap;
}

.g34c-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g34c-btn-register,
.g34c-btn-login {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--g34c-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 32px;
  min-width: 44px;
}

.g34c-btn-register {
  background: var(--g34c-primary);
  color: var(--g34c-bg);
}

.g34c-btn-register:hover {
  background: var(--g34c-accent-hover);
  transform: scale(1.05);
}

.g34c-btn-login {
  background: transparent;
  color: var(--g34c-primary);
  border: 1px solid var(--g34c-primary);
}

.g34c-btn-login:hover {
  background: rgba(255, 170, 0, 0.1);
}

.g34c-menu-btn {
  background: none;
  border: none;
  color: var(--g34c-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.g34c-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.g34c-overlay-active {
  opacity: 1;
  visibility: visible;
}

.g34c-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--g34c-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 2rem 1.5rem;
}

.g34c-menu-active {
  right: 0;
}

.g34c-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--g34c-border-dark);
}

.g34c-menu-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g34c-primary);
}

.g34c-menu-close {
  background: none;
  border: none;
  color: var(--g34c-text);
  font-size: 2.2rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g34c-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.g34c-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  color: var(--g34c-text);
  font-size: 1.3rem;
  border-radius: var(--g34c-radius);
  transition: background 0.2s;
  min-height: 44px;
}

.g34c-menu-link:hover {
  background: rgba(255, 170, 0, 0.1);
  color: var(--g34c-primary);
}

.g34c-menu-link i,
.g34c-menu-link .material-icons {
  font-size: 2rem;
  width: 24px;
  text-align: center;
}

/* Slider / Banner */
.g34c-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: var(--g34c-radius-lg);
  margin: 1rem 0;
}

.g34c-slider-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.g34c-slide-item {
  min-width: 100%;
  cursor: pointer;
}

.g34c-slide-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--g34c-radius-lg);
}

.g34c-slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.g34c-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.g34c-dot-active {
  background: var(--g34c-primary);
  width: 20px;
  border-radius: 4px;
}

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

.g34c-section-title i {
  font-size: 1.8rem;
}

.g34c-h1-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g34c-text);
  margin: 1.5rem 0 1rem;
  line-height: 2.2rem;
}

/* Game Grid */
.g34c-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0.5rem 0;
}

.g34c-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 0.4rem;
  border-radius: var(--g34c-radius);
}

.g34c-game-item:hover {
  transform: scale(1.05);
  background: rgba(255, 170, 0, 0.05);
}

.g34c-game-item:active {
  transform: scale(0.95);
}

.g34c-game-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--g34c-radius);
  margin-bottom: 0.3rem;
  object-fit: cover;
  border: 1px solid var(--g34c-border-dark);
}

.g34c-game-name {
  font-size: 1rem;
  color: var(--g34c-text-muted);
  text-align: center;
  line-height: 1.3rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 2.6rem;
}

/* Content Cards */
.g34c-card {
  background: var(--g34c-bg-card);
  border-radius: var(--g34c-radius-lg);
  padding: 1.5rem;
  margin: 1rem 0;
  border: 1px solid var(--g34c-border-dark);
}

.g34c-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--g34c-primary);
  margin-bottom: 0.8rem;
}

.g34c-card p {
  font-size: 1.2rem;
  line-height: 1.8rem;
  color: var(--g34c-text-muted);
  margin-bottom: 0.8rem;
}

.g34c-card ul {
  padding-left: 1.5rem;
  list-style: disc;
}

.g34c-card li {
  font-size: 1.2rem;
  line-height: 1.8rem;
  color: var(--g34c-text-muted);
  margin-bottom: 0.4rem;
}

/* Promo Buttons */
.g34c-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--g34c-primary), var(--g34c-primary-dark));
  color: var(--g34c-bg);
  padding: 0.8rem 1.6rem;
  border-radius: var(--g34c-radius);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  border: none;
  min-height: 44px;
}

.g34c-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 170, 0, 0.4);
}

.g34c-promo-btn:active {
  transform: scale(0.98);
}

/* Promo Text Link */
.g34c-promo-link {
  color: var(--g34c-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

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

/* Footer */
.g34c-footer {
  background: var(--g34c-bg-light);
  padding: 2rem 1.2rem 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--g34c-border-dark);
}

.g34c-footer-brand {
  font-size: 1.2rem;
  color: var(--g34c-text-dim);
  line-height: 1.8rem;
  margin-bottom: 1.5rem;
}

.g34c-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.g34c-footer-promo-btn {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, var(--g34c-primary), var(--g34c-primary-dark));
  color: var(--g34c-bg);
  border: none;
  border-radius: var(--g34c-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  min-height: 36px;
}

.g34c-footer-promo-btn:hover {
  transform: scale(1.03);
}

.g34c-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--g34c-border-dark);
}

.g34c-footer-link {
  font-size: 1.1rem;
  color: var(--g34c-text-dim);
  transition: color 0.2s;
}

.g34c-footer-link:hover {
  color: var(--g34c-primary);
}

.g34c-copyright {
  font-size: 1rem;
  color: var(--g34c-text-dim);
  text-align: center;
  padding-top: 0.5rem;
}

/* Bottom Navigation */
.g34c-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--g34c-bottom-nav-height);
  background: var(--g34c-bg-light);
  border-top: 1px solid var(--g34c-border-dark);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
}

.g34c-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: none;
  color: var(--g34c-text-dim);
  text-decoration: none;
  position: relative;
}

.g34c-bottom-nav-item:hover,
.g34c-bottom-nav-item:focus {
  color: var(--g34c-primary);
  transform: scale(1.08);
}

.g34c-bottom-nav-item:active {
  transform: scale(0.92);
}

.g34c-bottom-nav-item.g34c-nav-active {
  color: var(--g34c-primary);
}

.g34c-bottom-nav-item.g34c-nav-active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--g34c-primary);
  border-radius: 0 0 2px 2px;
}

.g34c-bottom-nav-item i,
.g34c-bottom-nav-item .material-icons,
.g34c-bottom-nav-item ion-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.g34c-bottom-nav-item ion-icon {
  font-size: 24px;
}

.g34c-bottom-nav-label {
  font-size: 1rem;
  white-space: nowrap;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .g34c-bottom-nav {
    display: none;
  }
}

/* RTP Table */
.g34c-rtp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0;
  font-size: 1.1rem;
}

.g34c-rtp-table th {
  background: var(--g34c-bg-card);
  color: var(--g34c-primary);
  padding: 0.6rem;
  text-align: left;
  font-size: 1.1rem;
  border-bottom: 2px solid var(--g34c-primary);
}

.g34c-rtp-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--g34c-border-dark);
  color: var(--g34c-text-muted);
}

.g34c-rtp-table tr:hover td {
  background: rgba(255, 170, 0, 0.05);
}

.g34c-rtp-high {
  color: var(--g34c-success);
  font-weight: 600;
}

.g34c-rtp-mid {
  color: var(--g34c-primary);
  font-weight: 600;
}

/* Testimonials */
.g34c-testimonial {
  background: var(--g34c-bg-card);
  border-radius: var(--g34c-radius);
  padding: 1rem;
  margin: 0.6rem 0;
  border-left: 3px solid var(--g34c-primary);
}

.g34c-testimonial-text {
  font-size: 1.2rem;
  color: var(--g34c-text-muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.g34c-testimonial-author {
  font-size: 1.1rem;
  color: var(--g34c-primary);
  font-weight: 600;
}

/* Winner Showcase */
.g34c-winner-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--g34c-border-dark);
}

.g34c-winner-item:last-child {
  border-bottom: none;
}

.g34c-winner-name {
  font-size: 1.2rem;
  color: var(--g34c-text);
  font-weight: 600;
  flex: 1;
}

.g34c-winner-amount {
  font-size: 1.3rem;
  color: var(--g34c-primary);
  font-weight: 700;
}

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

/* FAQ Section */
.g34c-faq-item {
  background: var(--g34c-bg-card);
  border-radius: var(--g34c-radius);
  margin: 0.6rem 0;
  overflow: hidden;
}

.g34c-faq-question {
  padding: 1rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--g34c-text);
  cursor: default;
  border-bottom: 1px solid var(--g34c-border-dark);
}

.g34c-faq-answer {
  padding: 1rem 1.2rem;
  font-size: 1.2rem;
  color: var(--g34c-text-muted);
  line-height: 1.8rem;
}

/* Category Highlights */
.g34c-category-highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--g34c-bg-card);
  border-radius: var(--g34c-radius);
  margin: 0.5rem 0;
  border: 1px solid var(--g34c-border-dark);
}

.g34c-category-highlight i {
  font-size: 2.4rem;
  color: var(--g34c-primary);
}

.g34c-category-highlight h3 {
  font-size: 1.3rem;
  color: var(--g34c-text);
  margin-bottom: 0.3rem;
}

.g34c-category-highlight p {
  font-size: 1.1rem;
  color: var(--g34c-text-dim);
}

/* Payment Methods */
.g34c-payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.g34c-payment-item {
  background: var(--g34c-bg-card);
  border-radius: var(--g34c-radius);
  padding: 0.8rem;
  text-align: center;
  border: 1px solid var(--g34c-border-dark);
}

.g34c-payment-item i {
  font-size: 2.4rem;
  color: var(--g34c-primary);
  margin-bottom: 0.3rem;
}

.g34c-payment-name {
  font-size: 1.1rem;
  color: var(--g34c-text-muted);
}

/* Utility */
.g34c-text-center {
  text-align: center;
}

.g34c-mt-1 {
  margin-top: 0.5rem;
}

.g34c-mb-1 {
  margin-bottom: 0.5rem;
}

.g34c-mt-2 {
  margin-top: 1rem;
}

.g34c-mb-2 {
  margin-bottom: 1rem;
}

.g34c-hidden {
  display: none !important;
}

/* Desktop adjustments */
@media (min-width: 769px) {
  body {
    max-width: 430px;
    margin: 0 auto;
    box-shadow: var(--g34c-shadow-lg);
  }
}
