/**
 * PyCharm Gaming Platform - Theme Stylesheet
 * CSS class prefix: g3f9-
 * Color palette: #000080 | #141414 | #00BFFF | #191970
 * Mobile-first design (max-width: 430px base)
 */

/* ===== CSS Variables ===== */
:root {
  --g3f9-primary: #00BFFF;
  --g3f9-primary-dark: #0099cc;
  --g3f9-bg-deep: #000080;
  --g3f9-bg-dark: #141414;
  --g3f9-bg-midnight: #191970;
  --g3f9-text-light: #f0f4f8;
  --g3f9-text-muted: #a0aec0;
  --g3f9-accent-gold: #f6c744;
  --g3f9-accent-green: #38d97a;
  --g3f9-accent-red: #ff4757;
  --g3f9-radius: 8px;
  --g3f9-radius-lg: 12px;
  --g3f9-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  --g3f9-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --g3f9-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;
  -webkit-text-size-adjust: 100%;
}

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

a {
  text-decoration: none;
  color: var(--g3f9-primary);
  transition: var(--g3f9-transition);
}

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

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

ul, ol {
  list-style: none;
}

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

.g3f9-wrapper {
  width: 100%;
  overflow: hidden;
}

/* ===== Header ===== */
.g3f9-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--g3f9-bg-deep), var(--g3f9-bg-midnight));
  border-bottom: 1px solid rgba(0, 191, 255, 0.15);
  padding: 0 1rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.g3f9-header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

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

.g3f9-header-logo span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g3f9-primary);
  letter-spacing: 0.5px;
}

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

.g3f9-btn-register,
.g3f9-btn-login {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--g3f9-transition);
  white-space: nowrap;
}

.g3f9-btn-register {
  background: linear-gradient(135deg, var(--g3f9-accent-gold), #e6a817);
  color: var(--g3f9-bg-dark);
}

.g3f9-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(246, 199, 68, 0.5);
}

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

.g3f9-btn-login:hover {
  background: rgba(0, 191, 255, 0.1);
  transform: scale(1.05);
}

/* ===== Hamburger Menu ===== */
.g3f9-hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.g3f9-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--g3f9-text-light);
  border-radius: 2px;
  transition: var(--g3f9-transition);
}

.g3f9-hamburger-active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.g3f9-hamburger-active span:nth-child(2) {
  opacity: 0;
}

.g3f9-hamburger-active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== Mobile Menu ===== */
.g3f9-mobile-menu {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--g3f9-bg-midnight), var(--g3f9-bg-dark));
  border-bottom: 2px solid var(--g3f9-primary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  z-index: 9999;
}

.g3f9-menu-active {
  border-bottom: 2px solid var(--g3f9-primary);
}

.g3f9-mobile-menu ul {
  padding: 1rem 0;
}

.g3f9-mobile-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.g3f9-mobile-menu a {
  display: block;
  padding: 1.2rem 1.6rem;
  color: var(--g3f9-text-light);
  font-size: 1.5rem;
  font-weight: 500;
  transition: var(--g3f9-transition);
}

.g3f9-mobile-menu a:hover {
  color: var(--g3f9-primary);
  background: rgba(0, 191, 255, 0.08);
  padding-left: 2.2rem;
}

/* ===== Carousel ===== */
.g3f9-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--g3f9-radius);
  margin-top: 60px;
}

.g3f9-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.g3f9-carousel-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--g3f9-radius);
}

.g3f9-slide-active {
  display: block;
}

.g3f9-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
}

.g3f9-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--g3f9-transition);
}

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

/* ===== Section Headings ===== */
.g3f9-section {
  padding: 2rem 0;
}

.g3f9-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g3f9-text-light);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--g3f9-primary);
  display: inline-block;
}

.g3f9-section-subtitle {
  font-size: 1.4rem;
  color: var(--g3f9-text-muted);
  margin-bottom: 1rem;
}

/* ===== Game Grid ===== */
.g3f9-game-category {
  margin-bottom: 2rem;
}

.g3f9-game-category h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--g3f9-primary);
  margin-bottom: 1rem;
  padding-left: 0.4rem;
  border-left: 3px solid var(--g3f9-accent-gold);
}

.g3f9-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.g3f9-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--g3f9-transition);
  border-radius: var(--g3f9-radius);
  padding: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.g3f9-game-item:hover {
  transform: translateY(-3px);
  background: rgba(0, 191, 255, 0.08);
  box-shadow: var(--g3f9-shadow-sm);
}

.g3f9-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--g3f9-radius);
  object-fit: cover;
}

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

/* ===== Cards ===== */
.g3f9-card {
  background: linear-gradient(145deg, rgba(25, 25, 112, 0.5), rgba(20, 20, 20, 0.8));
  border: 1px solid rgba(0, 191, 255, 0.12);
  border-radius: var(--g3f9-radius-lg);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  transition: var(--g3f9-transition);
}

.g3f9-card:hover {
  border-color: rgba(0, 191, 255, 0.3);
  box-shadow: var(--g3f9-shadow);
}

.g3f9-card h3 {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--g3f9-primary);
  margin-bottom: 0.8rem;
}

.g3f9-card p {
  font-size: 1.4rem;
  color: var(--g3f9-text-muted);
  line-height: 1.6;
}

/* ===== Promo Link Button ===== */
.g3f9-promo-btn {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--g3f9-primary), var(--g3f9-primary-dark));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  border-radius: 24px;
  cursor: pointer;
  border: none;
  transition: var(--g3f9-transition);
  text-align: center;
  min-width: 140px;
}

.g3f9-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 191, 255, 0.4);
  color: #fff;
}

.g3f9-promo-btn-gold {
  background: linear-gradient(135deg, var(--g3f9-accent-gold), #e6a817);
  color: var(--g3f9-bg-dark);
}

.g3f9-promo-btn-gold:hover {
  box-shadow: 0 0 20px rgba(246, 199, 68, 0.4);
  color: var(--g3f9-bg-dark);
}

/* ===== Promo Text Link ===== */
.g3f9-promo-link {
  color: var(--g3f9-primary);
  font-weight: 600;
  border-bottom: 1px dashed var(--g3f9-primary);
  cursor: pointer;
  transition: var(--g3f9-transition);
}

.g3f9-promo-link:hover {
  color: var(--g3f9-accent-gold);
  border-bottom-color: var(--g3f9-accent-gold);
}

/* ===== Footer ===== */
.g3f9-footer {
  background: linear-gradient(180deg, var(--g3f9-bg-midnight), var(--g3f9-bg-dark));
  border-top: 1px solid rgba(0, 191, 255, 0.1);
  padding: 2rem 1rem 6rem;
  margin-top: 2rem;
}

.g3f9-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.g3f9-footer-brand p {
  font-size: 1.3rem;
  color: var(--g3f9-text-muted);
  line-height: 1.5;
}

.g3f9-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.g3f9-footer-links a {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0, 191, 255, 0.08);
  border: 1px solid rgba(0, 191, 255, 0.15);
  border-radius: 16px;
  color: var(--g3f9-text-light);
  font-size: 1.2rem;
  transition: var(--g3f9-transition);
}

.g3f9-footer-links a:hover {
  background: rgba(0, 191, 255, 0.2);
  color: var(--g3f9-primary);
}

.g3f9-footer-copyright {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 1.2rem;
  color: var(--g3f9-text-muted);
}

/* ===== Bottom Navigation ===== */
.g3f9-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background: linear-gradient(180deg, var(--g3f9-bg-midnight), #0a0a3a);
  border-top: 1px solid rgba(0, 191, 255, 0.2);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}

.g3f9-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  cursor: pointer;
  transition: var(--g3f9-transition);
  border: none;
  background: transparent;
  color: var(--g3f9-text-muted);
  border-radius: 8px;
  position: relative;
}

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

.g3f9-bottom-nav-btn span {
  font-size: 1rem;
  font-weight: 500;
}

.g3f9-bottom-nav-btn:hover,
.g3f9-bottom-nav-btn:active {
  color: var(--g3f9-primary);
  transform: scale(1.08);
}

.g3f9-bottom-nav-btn.g3f9-nav-active {
  color: var(--g3f9-primary);
}

.g3f9-bottom-nav-btn.g3f9-nav-active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--g3f9-primary);
  border-radius: 1px;
}

/* ===== Content Sections ===== */
.g3f9-content-block {
  margin-bottom: 1.5rem;
}

.g3f9-content-block h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g3f9-text-light);
  margin-bottom: 0.8rem;
}

.g3f9-content-block p {
  font-size: 1.4rem;
  color: var(--g3f9-text-muted);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.g3f9-content-block ul {
  padding-left: 1.6rem;
  margin-bottom: 1rem;
}

.g3f9-content-block li {
  font-size: 1.4rem;
  color: var(--g3f9-text-muted);
  line-height: 1.6;
  margin-bottom: 0.4rem;
  list-style: disc;
}

/* ===== FAQ Accordion ===== */
.g3f9-faq-item {
  background: rgba(25, 25, 112, 0.3);
  border: 1px solid rgba(0, 191, 255, 0.1);
  border-radius: var(--g3f9-radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.g3f9-faq-question {
  padding: 1.2rem 1.4rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--g3f9-text-light);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.g3f9-faq-answer {
  padding: 0 1.4rem 1.2rem;
  font-size: 1.3rem;
  color: var(--g3f9-text-muted);
  line-height: 1.6;
}

/* ===== Partners Grid ===== */
.g3f9-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 1rem 0;
}

.g3f9-partners img {
  height: 28px;
  opacity: 0.6;
  transition: var(--g3f9-transition);
  filter: grayscale(0.5);
}

.g3f9-partners img:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* ===== Winners Table ===== */
.g3f9-winners-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.g3f9-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 191, 255, 0.04);
  border-radius: var(--g3f9-radius);
  font-size: 1.3rem;
}

.g3f9-winner-name {
  color: var(--g3f9-primary);
  font-weight: 500;
}

.g3f9-winner-amount {
  color: var(--g3f9-accent-gold);
  font-weight: 700;
}

.g3f9-winner-game {
  color: var(--g3f9-text-muted);
  font-size: 1.2rem;
}

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

.g3f9-payment-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  font-size: 1.2rem;
  color: var(--g3f9-text-light);
  border: 1px solid rgba(0, 191, 255, 0.1);
}

/* ===== Testimonial ===== */
.g3f9-testimonial {
  background: rgba(25, 25, 112, 0.4);
  border-left: 3px solid var(--g3f9-accent-gold);
  border-radius: 0 var(--g3f9-radius) var(--g3f9-radius) 0;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.g3f9-testimonial p {
  font-size: 1.3rem;
  color: var(--g3f9-text-muted);
  font-style: italic;
  line-height: 1.5;
}

.g3f9-testimonial-author {
  font-size: 1.2rem;
  color: var(--g3f9-primary);
  font-weight: 600;
  margin-top: 0.6rem;
}

/* ===== Responsive ===== */
@media (min-width: 769px) {
  .g3f9-bottom-nav {
    display: none;
  }
  .g3f9-container {
    max-width: 768px;
  }
  .g3f9-game-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

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

@media (max-width: 360px) {
  .g3f9-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .g3f9-btn-register,
  .g3f9-btn-login {
    padding: 5px 10px;
    font-size: 1.1rem;
  }
}
