/**
 * rewards ph - Design System
 * All classes prefixed with g37e-
 * Mobile-first responsive design
 */

/* Root variables */
:root {
  --g37e-primary: #E91E63;
  --g37e-secondary: #AD1457;
  --g37e-dark: #141414;
  --g37e-darker: #0a0a0a;
  --g37e-light: #FFDFBA;
  --g37e-success: #2E8B57;
  --g37e-gray: #6C757D;
  --g37e-white: #ffffff;
  --g37e-border: rgba(255, 255, 255, 0.1);
  --g37e-shadow: rgba(0, 0, 0, 0.5);
  --g37e-gradient: linear-gradient(135deg, var(--g37e-primary) 0%, var(--g37e-secondary) 100%);
}

/* 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, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--g37e-light);
  background-color: var(--g37e-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.g37e-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.g37e-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.g37e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--g37e-border);
  transition: all 0.3s ease;
}

.g37e-header-scrolled {
  background: rgba(20, 20, 20, 0.98);
  box-shadow: 0 2px 10px var(--g37e-shadow);
}

.g37e-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.g37e-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--g37e-white);
}

.g37e-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.g37e-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--g37e-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.g37e-header-actions {
  display: flex;
  gap: 0.8rem;
}

.g37e-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
}

.g37e-btn-primary {
  background: var(--g37e-gradient);
  color: var(--g37e-white);
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.g37e-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.5);
}

.g37e-btn-secondary {
  background: transparent;
  color: var(--g37e-white);
  border: 2px solid var(--g37e-primary);
}

.g37e-btn-secondary:hover {
  background: var(--g37e-primary);
  transform: translateY(-2px);
}

.g37e-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.g37e-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--g37e-white);
  transition: all 0.3s ease;
}

/* Mobile Menu */
.g37e-mobile-menu {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--g37e-dark);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 2rem 0;
}

.g37e-menu-open {
  transform: translateX(0);
}

.g37e-menu-list {
  list-style: none;
  padding: 0 1.5rem;
}

.g37e-menu-item {
  margin-bottom: 0.5rem;
}

.g37e-menu-link {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--g37e-white);
  text-decoration: none;
  font-size: 1.6rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.g37e-menu-link:hover {
  background: rgba(233, 30, 99, 0.1);
  border-left-color: var(--g37e-primary);
  padding-left: 2rem;
}

/* Main Content */
main {
  flex: 1;
  padding-top: 56px;
  padding-bottom: 80px;
}

/* Carousel */
.g37e-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  margin: 1.5rem 0;
  overflow: hidden;
  border-radius: 12px;
}

.g37e-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.g37e-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g37e-carousel-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* Typography */
.g37e-h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--g37e-white);
  line-height: 1.2;
}

.g37e-h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--g37e-primary);
  margin-top: 2.5rem;
}

.g37e-h3 {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--g37e-white);
  margin-top: 2rem;
}

.g37e-text {
  margin-bottom: 1.2rem;
  color: var(--g37e-light);
  line-height: 1.6;
}

.g37e-link {
  color: var(--g37e-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.g37e-link:hover {
  color: var(--g37e-secondary);
  text-decoration: underline;
}

/* Cards */
.g37e-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--g37e-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.g37e-card-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--g37e-white);
}

/* Game Grid */
.g37e-game-section {
  margin: 2.5rem 0;
}

.g37e-game-section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--g37e-primary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.g37e-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.g37e-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.g37e-game-item:hover {
  transform: scale(1.05);
}

.g37e-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
}

.g37e-game-name {
  font-size: 1.1rem;
  color: var(--g37e-white);
  text-align: center;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bottom Navigation */
.g37e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--g37e-darker);
  border-top: 2px solid var(--g37e-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--g37e-shadow);
}

.g37e-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--g37e-gray);
  transition: all 0.3s ease;
  cursor: pointer;
}

.g37e-nav-item:hover {
  color: var(--g37e-primary);
  transform: scale(1.1);
}

.g37e-nav-item.g37e-active {
  color: var(--g37e-primary);
}

.g37e-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g37e-nav-text {
  font-size: 10px;
  font-weight: 500;
  text-align: center;
}

/* Footer */
.g37e-footer {
  background: var(--g37e-darker);
  border-top: 1px solid var(--g37e-border);
  padding: 2.5rem 0;
  margin-top: 3rem;
}

.g37e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.g37e-footer-link {
  color: var(--g37e-gray);
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.g37e-footer-link:hover {
  color: var(--g37e-primary);
}

.g37e-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.g37e-partner-img {
  height: 30px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.g37e-partner-img:hover {
  opacity: 1;
}

.g37e-copyright {
  text-align: center;
  color: var(--g37e-gray);
  font-size: 1.3rem;
}

/* Utility Classes */
.g37e-mt-1 { margin-top: 1rem; }
.g37e-mt-2 { margin-top: 2rem; }
.g37e-mt-3 { margin-top: 3rem; }
.g37e-mb-1 { margin-bottom: 1rem; }
.g37e-mb-2 { margin-bottom: 2rem; }
.g37e-mb-3 { margin-bottom: 3rem; }

.g37e-text-center { text-align: center; }
.g37e-text-bold { font-weight: 700; }
.g37e-text-primary { color: var(--g37e-primary); }

.g37e-highlight {
  background: var(--g37e-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Desktop Styles */
@media (min-width: 769px) {
  .g37e-container {
    max-width: 1200px;
  }

  .g37e-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 2rem;
  }

  .g37e-game-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .g37e-carousel {
    height: 350px;
  }
}

/* Loading Animation */
.g37e-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--g37e-white);
  animation: g37e-spin 1s ease-in-out infinite;
}

@keyframes g37e-spin {
  to { transform: rotate(360deg); }
}

/* Fade In Animation */
.g37e-fade-in {
  animation: g37e-fadeIn 0.5s ease-in;
}

@keyframes g37e-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
