/* phsky login - Main Stylesheet */
/* All classes use prefix "g704-" for namespace isolation */

/* CSS Variables */
:root {
  --g704-primary: #FFB347;
  --g704-secondary: #FFDEAD;
  --g704-dark: #2C3E50;
  --g704-light: #E0E0E0;
  --g704-accent: #FFD700;
  --g704-bg: #1a2332;
  --g704-bg-light: #243447;
  --g704-text: #F5F5F5;
  --g704-text-muted: #B0BEC5;
  --g704-border: #34495e;
  --g704-success: #4CAF50;
  --g704-danger: #e74c3c;
  --g704-gradient: linear-gradient(135deg, #FFB347 0%, #FFD700 100%);
  --g704-radius: 8px;
  --g704-radius-lg: 12px;
  --g704-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--g704-bg);
  color: var(--g704-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--g704-primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.g704-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 56px;
  background: var(--g704-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  border-bottom: 2px solid var(--g704-primary);
}
.g704-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}
.g704-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.g704-logo-area span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g704-accent);
  white-space: nowrap;
}
.g704-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.g704-btn-register, .g704-btn-login {
  padding: 6px 14px;
  border-radius: var(--g704-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.g704-btn-register {
  background: var(--g704-gradient);
  color: var(--g704-dark);
}
.g704-btn-register:hover { transform: scale(1.05); }
.g704-btn-login {
  background: transparent;
  color: var(--g704-primary);
  border: 1.5px solid var(--g704-primary);
}
.g704-btn-login:hover { background: rgba(255,179,71,0.1); }
.g704-menu-toggle {
  background: none;
  border: none;
  color: var(--g704-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* Mobile Menu */
.g704-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}
.g704-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 75%;
  max-width: 300px;
  height: 100vh;
  background: var(--g704-dark);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 60px 20px 20px;
  overflow-y: auto;
}
.g704-mobile-menu-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--g704-text);
  font-size: 2.4rem;
  cursor: pointer;
}
.g704-mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 1.4rem;
  color: var(--g704-text);
  border-bottom: 1px solid var(--g704-border);
  transition: color 0.2s;
}
.g704-mobile-menu a:hover { color: var(--g704-primary); }

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

/* Carousel */
.g704-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--g704-radius-lg) var(--g704-radius-lg);
}
.g704-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.g704-carousel-slide.g704-active { display: block; }
.g704-carousel-slide img {
  width: 100%;
  height: auto;
  min-height: 160px;
  object-fit: cover;
}

/* Section */
.g704-section {
  padding: 16px 12px;
}
.g704-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g704-accent);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--g704-primary);
}
.g704-section-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--g704-primary);
  margin: 12px 0 8px;
}

/* Game Grid */
.g704-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.g704-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--g704-radius);
  padding: 6px 4px;
}
.g704-game-item:hover { transform: translateY(-2px); }
.g704-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--g704-radius);
  margin-bottom: 4px;
  border: 2px solid var(--g704-border);
  transition: border-color 0.2s;
}
.g704-game-item:hover img { border-color: var(--g704-primary); }
.g704-game-item span {
  font-size: 1.1rem;
  color: var(--g704-text-muted);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Category Title */
.g704-cat-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--g704-primary);
  margin: 16px 0 8px;
  padding-left: 8px;
  border-left: 3px solid var(--g704-accent);
  text-transform: capitalize;
}

/* Content Text */
.g704-content-text {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--g704-text-muted);
  margin-bottom: 12px;
}
.g704-content-text strong {
  color: var(--g704-primary);
}
.g704-highlight-box {
  background: var(--g704-bg-light);
  border: 1px solid var(--g704-border);
  border-radius: var(--g704-radius-lg);
  padding: 16px;
  margin: 12px 0;
}

/* Promo Buttons */
.g704-promo-btn {
  display: inline-block;
  background: var(--g704-gradient);
  color: var(--g704-dark);
  font-size: 1.4rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}
.g704-promo-btn:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(255,179,71,0.4); }
.g704-promo-link {
  color: var(--g704-accent);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* Card */
.g704-card {
  background: var(--g704-bg-light);
  border: 1px solid var(--g704-border);
  border-radius: var(--g704-radius-lg);
  padding: 16px;
  margin-bottom: 12px;
}
.g704-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--g704-primary);
  margin-bottom: 8px;
}

/* FAQ */
.g704-faq-item {
  background: var(--g704-bg-light);
  border-radius: var(--g704-radius);
  padding: 12px 16px;
  margin-bottom: 8px;
  border-left: 3px solid var(--g704-primary);
}
.g704-faq-q {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--g704-accent);
  margin-bottom: 6px;
}
.g704-faq-a {
  font-size: 1.2rem;
  color: var(--g704-text-muted);
  line-height: 1.6rem;
}

/* Winner Showcase */
.g704-winner-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--g704-bg-light);
  border-radius: var(--g704-radius);
  margin-bottom: 8px;
}
.g704-winner-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--g704-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--g704-dark);
  font-weight: 700;
  flex-shrink: 0;
}
.g704-winner-info { flex: 1; }
.g704-winner-name {
  font-size: 1.2rem;
  color: var(--g704-text);
  font-weight: 600;
}
.g704-winner-detail {
  font-size: 1.1rem;
  color: var(--g704-text-muted);
}
.g704-winner-amount {
  font-size: 1.3rem;
  color: var(--g704-accent);
  font-weight: 700;
}

/* Footer */
.g704-footer {
  background: var(--g704-dark);
  padding: 24px 12px 80px;
  border-top: 2px solid var(--g704-primary);
}
.g704-footer-brand {
  font-size: 1.3rem;
  color: var(--g704-text-muted);
  line-height: 1.8rem;
  margin-bottom: 16px;
}
.g704-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.g704-footer-links a {
  font-size: 1.2rem;
  padding: 4px 10px;
  background: var(--g704-bg-light);
  border-radius: 15px;
  color: var(--g704-text-muted);
  transition: color 0.2s;
}
.g704-footer-links a:hover { color: var(--g704-primary); }
.g704-footer-copy {
  font-size: 1.1rem;
  color: var(--g704-text-muted);
  text-align: center;
  opacity: 0.7;
}

/* Bottom Navigation */
.g704-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: var(--g704-dark);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--g704-primary);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}
.g704-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--g704-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 4px;
}
.g704-bottom-nav-btn:hover,
.g704-bottom-nav-btn.g704-active {
  color: var(--g704-accent);
  transform: scale(1.1);
}
.g704-bottom-nav-btn i,
.g704-bottom-nav-btn .material-icons {
  font-size: 22px;
  margin-bottom: 2px;
}
.g704-bottom-nav-btn span {
  font-size: 1rem;
  line-height: 1.2rem;
}

/* Desktop Navigation */
.g704-desktop-nav {
  display: none;
}
@media (min-width: 769px) {
  .g704-bottom-nav { display: none; }
  .g704-desktop-nav { display: flex; }
  .g704-main { padding-bottom: 0; }
}

/* Mobile bottom padding */
@media (max-width: 768px) {
  .g704-main { padding-bottom: 80px; }
  .g704-footer { padding-bottom: 80px; }
}

/* Utility */
.g704-text-center { text-align: center; }
.g704-mb-8 { margin-bottom: 8px; }
.g704-mb-12 { margin-bottom: 12px; }
.g704-mb-16 { margin-bottom: 16px; }
.g704-mt-12 { margin-top: 12px; }
.g704-flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.g704-divider {
  height: 1px;
  background: var(--g704-border);
  margin: 16px 0;
}

/* Responsive Table */
.g704-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}
.g704-rtp-table th {
  background: var(--g704-dark);
  color: var(--g704-accent);
  padding: 8px 6px;
  text-align: left;
  font-weight: 600;
}
.g704-rtp-table td {
  padding: 6px;
  border-bottom: 1px solid var(--g704-border);
  color: var(--g704-text-muted);
}
.g704-rtp-table tr:hover td { color: var(--g704-text); }

/* Testimonial */
.g704-testimonial {
  background: var(--g704-bg-light);
  border-radius: var(--g704-radius-lg);
  padding: 14px;
  margin-bottom: 10px;
  border-left: 3px solid var(--g704-accent);
}
.g704-testimonial-text {
  font-size: 1.2rem;
  color: var(--g704-text-muted);
  font-style: italic;
  margin-bottom: 8px;
}
.g704-testimonial-author {
  font-size: 1.1rem;
  color: var(--g704-primary);
  font-weight: 600;
}

/* H1 styling */
.g704-page-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--g704-accent);
  margin: 16px 0;
  line-height: 2.4rem;
}
h2.g704-h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g704-primary);
  margin: 14px 0 8px;
}
h3.g704-h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--g704-secondary);
  margin: 10px 0 6px;
}
