/**
 * DreamPH - Theme Stylesheet
 * All classes use g755- prefix for namespace isolation
 * Color palette: #DA70D6 | #F0F0F0 | #E6E6FA | #FFEFD5 | #273746 | #EE82EE
 * @version 1.0.0
 */

/* ===== CSS Variables ===== */
:root {
  --g755-primary: #DA70D6;
  --g755-primary-light: #EE82EE;
  --g755-bg-dark: #273746;
  --g755-bg-darker: #1c2a36;
  --g755-text-light: #F0F0F0;
  --g755-text-muted: #E6E6FA;
  --g755-accent-warm: #FFEFD5;
  --g755-primary-rgb: 218, 112, 214;
  --g755-font-base: 62.5%;
}

/* ===== Reset & Base ===== */
html {
  font-size: var(--g755-font-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

/* ===== Header ===== */
.g755-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, var(--g755-bg-darker) 0%, var(--g755-bg-dark) 100%);
  border-bottom: 2px solid var(--g755-primary);
  padding: 0 1rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.g755-header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--g755-primary);
  font-size: 1.8rem;
  font-weight: 700;
}

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

.g755-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.g755-btn-register {
  background: linear-gradient(135deg, var(--g755-primary), var(--g755-primary-light));
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 36px;
  min-width: 70px;
}

.g755-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 12px rgba(var(--g755-primary-rgb), 0.5);
}

.g755-btn-login {
  background: transparent;
  color: var(--g755-primary);
  border: 1.5px solid var(--g755-primary);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  min-height: 36px;
}

.g755-btn-login:hover {
  background: var(--g755-primary);
  color: #fff;
}

.g755-hamburger {
  background: none;
  border: none;
  color: var(--g755-text-light);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.g755-hamburger:hover, .g755-hamburger-active {
  color: var(--g755-primary);
}

/* ===== Mobile Menu ===== */
.g755-mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 56px;
  left: 0;
  width: 100%;
  height: calc(100vh - 56px);
  background: var(--g755-bg-darker);
  z-index: 9999;
  padding: 1rem;
  box-sizing: border-box;
  overflow-y: auto;
}

.g755-mobile-menu a {
  color: var(--g755-text-light);
  text-decoration: none;
  padding: 14px 1rem;
  border-bottom: 1px solid rgba(218, 112, 214, 0.15);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}

.g755-mobile-menu a:hover, .g755-mobile-menu a:active {
  background: rgba(218, 112, 214, 0.1);
  color: var(--g755-primary);
}

.g755-menu-active {
  animation: g755SlideDown 0.3s ease;
}

@keyframes g755SlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Desktop Nav (hidden on mobile) ===== */
.g755-desktop-nav {
  display: none;
}

@media (min-width: 769px) {
  .g755-desktop-nav {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .g755-desktop-nav a {
    color: var(--g755-text-muted);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.2s;
  }
  .g755-desktop-nav a:hover {
    color: var(--g755-primary);
  }
  .g755-hamburger { display: none; }
  .g755-mobile-menu { display: none !important; }
}

/* ===== Main Content ===== */
.g755-main {
  margin-top: 56px;
  min-height: calc(100vh - 56px);
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ===== Carousel ===== */
.g755-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
}

.g755-carousel-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16/8;
}

.g755-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.g755-slide-active {
  opacity: 1;
}

.g755-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.g755-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(240, 240, 240, 0.4);
  cursor: pointer;
  transition: background 0.3s;
}

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

/* ===== Section Styles ===== */
.g755-section {
  padding: 2rem 1.2rem;
}

.g755-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g755-primary);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(218, 112, 214, 0.3);
}

.g755-section-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--g755-text-muted);
  margin-bottom: 1rem;
}

/* ===== Game Grid ===== */
.g755-game-category-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--g755-accent-warm);
  margin: 1.5rem 0 1rem;
  padding-left: 10px;
  border-left: 3px solid var(--g755-primary);
}

.g755-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0.5rem 0;
}

.g755-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: 8px;
  padding: 6px;
  background: rgba(218, 112, 214, 0.05);
}

.g755-game-item:hover {
  transform: translateY(-2px);
  background: rgba(218, 112, 214, 0.12);
}

.g755-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(218, 112, 214, 0.2);
}

.g755-game-item span {
  font-size: 1.1rem;
  color: var(--g755-text-muted);
  text-align: center;
  margin-top: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Promo Link/Button ===== */
.g755-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--g755-primary), var(--g755-primary-light));
  color: #fff;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.g755-promo-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 20px rgba(var(--g755-primary-rgb), 0.4);
}

.g755-promo-link {
  color: var(--g755-primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  border-bottom: 1px dashed var(--g755-primary);
}

.g755-promo-link:hover {
  color: var(--g755-primary-light);
}

/* ===== Cards ===== */
.g755-card {
  background: rgba(218, 112, 214, 0.06);
  border: 1px solid rgba(218, 112, 214, 0.15);
  border-radius: 10px;
  padding: 1.4rem;
  margin-bottom: 1.2rem;
}

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

.g755-card-text {
  font-size: 1.35rem;
  color: var(--g755-text-muted);
  line-height: 1.5;
}

/* ===== Testimonials ===== */
.g755-testimonial {
  background: linear-gradient(135deg, rgba(218, 112, 214, 0.08), rgba(238, 130, 238, 0.05));
  border-left: 3px solid var(--g755-primary);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}

.g755-testimonial-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--g755-primary);
}

.g755-testimonial-text {
  font-size: 1.3rem;
  color: var(--g755-text-muted);
  font-style: italic;
  margin-top: 4px;
}

/* ===== Footer ===== */
.g755-footer {
  background: var(--g755-bg-darker);
  padding: 2rem 1.2rem 6rem;
  border-top: 2px solid rgba(218, 112, 214, 0.3);
  max-width: 430px;
  margin: 0 auto;
}

.g755-footer-brand {
  font-size: 1.3rem;
  color: var(--g755-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.g755-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.g755-footer-links a {
  color: var(--g755-primary);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 4px 8px;
  border: 1px solid rgba(218, 112, 214, 0.3);
  border-radius: 4px;
  transition: background 0.2s;
}

.g755-footer-links a:hover {
  background: rgba(218, 112, 214, 0.1);
}

.g755-footer-copy {
  font-size: 1.2rem;
  color: rgba(240, 240, 240, 0.4);
  text-align: center;
}

/* ===== Bottom Navigation (Mobile) ===== */
.g755-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(180deg, var(--g755-bg-dark), var(--g755-bg-darker));
  border-top: 2px solid var(--g755-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}

.g755-bottom-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(--g755-text-muted);
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  text-decoration: none;
  gap: 2px;
  -webkit-tap-highlight-color: transparent;
}

.g755-bottom-nav-btn:active {
  transform: scale(0.92);
}

.g755-bottom-nav-btn:hover, .g755-bottom-nav-btn.g755-nav-active {
  color: var(--g755-primary);
}

.g755-bottom-nav-btn .g755-nav-icon {
  font-size: 22px;
  line-height: 1;
}

.g755-bottom-nav-btn .g755-nav-label {
  font-size: 1rem;
  line-height: 1;
}

@media (min-width: 769px) {
  .g755-bottom-nav {
    display: none;
  }
}

/* ===== Winners Strip ===== */
.g755-winners-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0.5rem 0;
  -webkit-overflow-scrolling: touch;
}

.g755-winner-card {
  flex: 0 0 120px;
  background: linear-gradient(135deg, rgba(218, 112, 214, 0.1), rgba(238, 130, 238, 0.05));
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  border: 1px solid rgba(218, 112, 214, 0.2);
}

.g755-winner-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--g755-primary);
}

.g755-winner-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--g755-accent-warm);
  margin: 4px 0;
}

.g755-winner-game {
  font-size: 1.1rem;
  color: rgba(240, 240, 240, 0.5);
}

/* ===== Payment Methods ===== */
.g755-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.g755-payment-item {
  background: rgba(240, 240, 240, 0.05);
  border: 1px solid rgba(218, 112, 214, 0.2);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 1.2rem;
  color: var(--g755-text-muted);
}

/* ===== CTA Banner ===== */
.g755-cta-banner {
  background: linear-gradient(135deg, var(--g755-primary), var(--g755-primary-light));
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

.g755-cta-banner h3 {
  font-size: 2rem;
  color: #fff;
  margin: 0 0 0.5rem;
}

.g755-cta-banner p {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1rem;
}

.g755-cta-white-btn {
  display: inline-block;
  background: #fff;
  color: var(--g755-primary);
  padding: 10px 28px;
  border-radius: 24px;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s;
}

.g755-cta-white-btn:hover {
  transform: scale(1.05);
}

/* ===== Help Page Styles ===== */
.g755-help-section {
  margin-bottom: 2rem;
}

.g755-help-section h2 {
  font-size: 1.8rem;
  color: var(--g755-primary);
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(218, 112, 214, 0.2);
}

.g755-help-section h3 {
  font-size: 1.5rem;
  color: var(--g755-accent-warm);
  margin: 1rem 0 0.5rem;
}

.g755-faq-item {
  background: rgba(218, 112, 214, 0.05);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(218, 112, 214, 0.1);
}

.g755-faq-q {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--g755-primary);
  margin-bottom: 0.4rem;
}

.g755-faq-a {
  font-size: 1.3rem;
  color: var(--g755-text-muted);
  line-height: 1.5;
}

/* ===== Internal Link ===== */
.g755-internal-link {
  color: var(--g755-primary-light);
  text-decoration: none;
  border-bottom: 1px dotted var(--g755-primary-light);
  transition: color 0.2s;
}

.g755-internal-link:hover {
  color: #fff;
}

/* ===== Feature List ===== */
.g755-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.g755-feature-list li {
  padding: 0.6rem 0;
  font-size: 1.35rem;
  color: var(--g755-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.g755-feature-list li i {
  color: var(--g755-primary);
  margin-top: 3px;
  flex-shrink: 0;
}

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

.g755-rtp-table th {
  background: rgba(218, 112, 214, 0.15);
  color: var(--g755-primary);
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
}

.g755-rtp-table td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(218, 112, 214, 0.08);
  color: var(--g755-text-muted);
}

.g755-rtp-bar {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--g755-primary), var(--g755-primary-light));
}
