/**
 * Nino Games - CSS Layout Module
 * Mobile-first design with gf13- prefix for namespace isolation
 * Color palette: #FFB3FF | #CED4DA | #00FF7F | #FFDFBA | #BAFFC9 | #0D1117
 */

/* CSS Variables */
:root {
  --gf13-primary: #FFB3FF;
  --gf13-secondary: #00FF7F;
  --gf13-accent: #FFDFBA;
  --gf13-bg: #0D1117;
  --gf13-bg-light: #161b22;
  --gf13-bg-card: #1c2230;
  --gf13-text: #CED4DA;
  --gf13-text-light: #FFB3FF;
  --gf13-text-bright: #ffffff;
  --gf13-success: #BAFFC9;
  --gf13-border: #2d333b;
  --gf13-radius: 8px;
  --gf13-radius-lg: 12px;
  --gf13-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --gf13-transition: all 0.3s ease;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gf13-bg);
  color: var(--gf13-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Header */
.gf13-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(13,17,23,0.96);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--gf13-border);
  padding: 0.8rem 1rem;
}

.gf13-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gf13-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.gf13-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.gf13-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gf13-primary);
  letter-spacing: 0.5px;
}

.gf13-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.gf13-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: var(--gf13-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--gf13-transition);
  text-decoration: none;
  min-height: 36px;
}

.gf13-btn-register {
  background: linear-gradient(135deg, var(--gf13-primary), #e899e8);
  color: var(--gf13-bg);
}

.gf13-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255,179,255,0.4);
}

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

.gf13-btn-login:hover {
  background: rgba(255,179,255,0.1);
}

.gf13-btn-promo {
  background: linear-gradient(135deg, var(--gf13-secondary), #00cc66);
  color: var(--gf13-bg);
  font-size: 1.3rem;
  padding: 0.8rem 2rem;
  border-radius: var(--gf13-radius-lg);
  width: 100%;
  margin: 0.8rem 0;
}

.gf13-btn-promo:hover {
  transform: scale(1.02);
  box-shadow: 0 0 16px rgba(0,255,127,0.3);
}

/* Menu toggle */
.gf13-menu-toggle {
  background: none;
  border: none;
  color: var(--gf13-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* Mobile menu overlay */
.gf13-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: var(--gf13-transition);
}

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

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

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

.gf13-menu-close {
  background: none;
  border: none;
  color: var(--gf13-text);
  font-size: 2.2rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.gf13-menu-link {
  display: block;
  color: var(--gf13-text);
  text-decoration: none;
  padding: 1rem 0;
  font-size: 1.5rem;
  border-bottom: 1px solid var(--gf13-border);
  transition: var(--gf13-transition);
}

.gf13-menu-link:hover {
  color: var(--gf13-primary);
  padding-left: 0.5rem;
}

/* Main content */
main {
  padding-top: 6rem;
}

/* Carousel */
.gf13-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--gf13-radius-lg);
  margin-bottom: 1.5rem;
}

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

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

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

.gf13-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.gf13-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gf13-border);
  cursor: pointer;
  transition: var(--gf13-transition);
}

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

/* Section headings */
.gf13-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gf13-text-bright);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gf13-primary);
}

.gf13-section-title i {
  color: var(--gf13-primary);
  margin-right: 0.5rem;
}

.gf13-section-subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gf13-primary);
  margin: 1.5rem 0 0.8rem;
}

/* Game grid */
.gf13-game-section {
  margin-bottom: 2rem;
}

.gf13-game-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gf13-secondary);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gf13-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.gf13-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--gf13-transition);
  text-decoration: none;
}

.gf13-game-item:hover {
  transform: scale(1.05);
}

.gf13-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--gf13-radius);
  object-fit: cover;
  border: 2px solid var(--gf13-border);
  transition: var(--gf13-transition);
}

.gf13-game-item:hover img {
  border-color: var(--gf13-primary);
}

.gf13-game-name {
  font-size: 1.1rem;
  color: var(--gf13-text);
  margin-top: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

/* Card components */
.gf13-card {
  background: var(--gf13-bg-card);
  border-radius: var(--gf13-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--gf13-border);
}

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

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

/* Content blocks */
.gf13-content-block {
  margin-bottom: 2rem;
  padding: 0 0.4rem;
}

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

.gf13-content-block h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gf13-primary);
  margin-bottom: 0.6rem;
}

.gf13-content-block p {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--gf13-text);
  margin-bottom: 0.8rem;
}

.gf13-content-block ul, .gf13-content-block ol {
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
}

.gf13-content-block li {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--gf13-text);
  margin-bottom: 0.4rem;
}

/* Promo link text */
.gf13-link {
  color: var(--gf13-secondary);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--gf13-transition);
}

.gf13-link:hover {
  color: var(--gf13-primary);
  text-decoration: underline;
}

/* Internal link */
.gf13-internal-link {
  color: var(--gf13-accent);
  text-decoration: none;
  border-bottom: 1px dashed var(--gf13-accent);
}

.gf13-internal-link:hover {
  color: var(--gf13-primary);
  border-color: var(--gf13-primary);
}

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

.gf13-footer-desc {
  font-size: 1.2rem;
  line-height: 1.6rem;
  color: var(--gf13-text);
  margin-bottom: 1.2rem;
}

.gf13-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.gf13-footer-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gf13-bg-card);
  color: var(--gf13-text);
  text-decoration: none;
  border-radius: var(--gf13-radius);
  font-size: 1.1rem;
  border: 1px solid var(--gf13-border);
  transition: var(--gf13-transition);
}

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

.gf13-footer-copyright {
  font-size: 1.1rem;
  color: #555;
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gf13-border);
}

/* Bottom Navigation */
.gf13-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: rgba(13,17,23,0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--gf13-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
}

.gf13-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  background: none;
  border: none;
  color: var(--gf13-text);
  cursor: pointer;
  transition: var(--gf13-transition);
  padding: 0.4rem;
  border-radius: var(--gf13-radius);
  position: relative;
}

.gf13-bottom-nav-btn:hover {
  color: var(--gf13-primary);
  background: rgba(255,179,255,0.08);
}

.gf13-bottom-nav-btn .gf13-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
  line-height: 1;
}

.gf13-bottom-nav-btn .gf13-nav-label {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

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

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

/* Prominent promo bottom button */
.gf13-bottom-nav-btn.gf13-promo-btn {
  color: var(--gf13-secondary);
}

.gf13-bottom-nav-btn.gf13-promo-btn .gf13-nav-icon {
  font-size: 2.4rem;
}

/* Testimonials */
.gf13-testimonial {
  background: var(--gf13-bg-card);
  border-radius: var(--gf13-radius-lg);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--gf13-primary);
}

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

.gf13-testimonial-text {
  font-size: 1.2rem;
  color: var(--gf13-text);
  margin-top: 0.4rem;
  line-height: 1.6rem;
}

/* Winners showcase */
.gf13-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: var(--gf13-bg-card);
  border-radius: var(--gf13-radius);
  margin-bottom: 0.5rem;
}

.gf13-winner-name {
  font-weight: 600;
  color: var(--gf13-secondary);
  font-size: 1.3rem;
}

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

.gf13-winner-game {
  font-size: 1.1rem;
  color: var(--gf13-text);
}

/* Payment methods */
.gf13-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.gf13-payment-item {
  background: var(--gf13-bg-card);
  padding: 0.8rem 1.2rem;
  border-radius: var(--gf13-radius);
  font-size: 1.2rem;
  color: var(--gf13-text);
  border: 1px solid var(--gf13-border);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Partners */
.gf13-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 1rem 0;
}

.gf13-partners img {
  height: 24px;
  opacity: 0.7;
  transition: var(--gf13-transition);
}

.gf13-partners img:hover {
  opacity: 1;
}

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

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .gf13-bottom-nav {
    display: none;
  }
}

/* Responsive tweaks */
@media (max-width: 360px) {
  .gf13-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .gf13-game-name {
    font-size: 1rem;
  }

  .gf13-header-inner {
    gap: 0.3rem;
  }

  .gf13-btn {
    padding: 0.5rem 0.8rem;
    font-size: 1.1rem;
  }
}
