/* BetBingo Universal CSS Module */
/* Class prefix: g5fc- */
/* Color palette: #8A2BE2 #00FF00 #87CEFA #006400 #6C757D #2E4057 */

/* Root variables and reset */
:root {
  font-size: 62.5%; /* 1rem = 10px */
  --g5fc-primary: #8A2BE2;
  --g5fc-secondary: #00FF00;
  --g5fc-accent: #87CEFA;
  --g5fc-success: #006400;
  --g5fc-muted: #6C757D;
  --g5fc-dark: #2E4057;
  --g5fc-bg: #1a1a2e;
  --g5fc-bg-light: #16213e;
  --g5fc-text: #ffffff;
  --g5fc-text-muted: #b8b8b8;
  --g5fc-border: rgba(255, 255, 255, 0.1);
  --g5fc-shadow: rgba(0, 0, 0, 0.3);
  --g5fc-gradient-1: linear-gradient(135deg, var(--g5fc-primary), var(--g5fc-accent));
  --g5fc-gradient-2: linear-gradient(135deg, var(--g5fc-success), var(--g5fc-secondary));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--g5fc-text);
  background: var(--g5fc-bg);
  overflow-x: hidden;
}

/* Container and Layout */
.g5fc-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.g5fc-wrapper {
  width: 100%;
  min-height: 100vh;
  padding-top: 6rem;
  padding-bottom: 7rem;
}

.g5fc-grid {
  display: grid;
  gap: 1.5rem;
}

.g5fc-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.g5fc-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.g5fc-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.g5fc-flex {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.g5fc-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.g5fc-flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.g5fc-flex-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Header and Navigation */
.g5fc-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6rem;
  background: linear-gradient(180deg, var(--g5fc-bg-light) 0%, rgba(26, 26, 46, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--g5fc-border);
  z-index: 1000;
  transition: all 0.3s ease;
}

.g5fc-header-scrolled {
  box-shadow: 0 2px 10px var(--g5fc-shadow);
}

.g5fc-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 1.5rem;
  max-width: 430px;
  margin: 0 auto;
}

.g5fc-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--g5fc-text);
  font-weight: 700;
  font-size: 1.6rem;
}

.g5fc-logo-img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.6rem;
}

.g5fc-header-btns {
  display: flex;
  gap: 0.8rem;
}

.g5fc-menu-btn {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--g5fc-border);
  border-radius: 0.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.g5fc-menu-btn:active {
  transform: scale(0.95);
}

.g5fc-menu-icon {
  width: 2rem;
  height: 2rem;
  color: var(--g5fc-secondary);
}

/* Mobile Menu */
.g5fc-mobile-menu {
  position: fixed;
  top: 6rem;
  right: -100%;
  width: 28rem;
  height: calc(100vh - 6rem);
  background: var(--g5fc-bg-light);
  border-left: 1px solid var(--g5fc-border);
  padding: 2rem;
  transition: right 0.3s ease;
  z-index: 999;
  overflow-y: auto;
}

.g5fc-menu-active {
  right: 0;
}

.g5fc-menu-overlay {
  position: fixed;
  top: 6rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.g5fc-overlay-active {
  opacity: 1;
  visibility: visible;
}

.g5fc-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.g5fc-nav-link {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--g5fc-text);
  text-decoration: none;
  border-radius: 0.6rem;
  transition: all 0.3s ease;
  font-size: 1.4rem;
}

.g5fc-nav-link:hover,
.g5fc-nav-active {
  background: var(--g5fc-gradient-1);
  transform: translateX(0.5rem);
}

/* Buttons */
.g5fc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 4.4rem;
  white-space: nowrap;
}

.g5fc-btn-primary {
  background: var(--g5fc-gradient-1);
  color: var(--g5fc-text);
}

.g5fc-btn-secondary {
  background: var(--g5fc-gradient-2);
  color: var(--g5fc-dark);
}

.g5fc-btn-outline {
  background: transparent;
  border: 2px solid var(--g5fc-primary);
  color: var(--g5fc-primary);
}

.g5fc-btn:active {
  transform: scale(0.95);
}

.g5fc-btn-sm {
  padding: 0.8rem 1.5rem;
  font-size: 1.2rem;
  min-height: 3.6rem;
}

.g5fc-btn-lg {
  padding: 1.5rem 3rem;
  font-size: 1.6rem;
  min-height: 5.2rem;
}

/* Cards and Containers */
.g5fc-card {
  background: var(--g5fc-bg-light);
  border: 1px solid var(--g5fc-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.g5fc-card:hover {
  border-color: var(--g5fc-primary);
  box-shadow: 0 4px 20px rgba(138, 43, 226, 0.2);
}

.g5fc-section {
  padding: 3rem 0;
}

.g5fc-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  background: var(--g5fc-gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.g5fc-section-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--g5fc-secondary);
}

/* Game Cards */
.g5fc-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.g5fc-game-card {
  background: var(--g5fc-bg-light);
  border: 1px solid var(--g5fc-border);
  border-radius: 0.8rem;
  padding: 0.8rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--g5fc-text);
}

.g5fc-game-card:active {
  transform: scale(0.95);
}

.g5fc-game-img {
  width: 100%;
  height: auto;
  border-radius: 0.6rem;
  margin-bottom: 0.5rem;
}

.g5fc-game-name {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Carousel */
.g5fc-carousel {
  position: relative;
  width: 100%;
  height: 20rem;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

.g5fc-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.g5fc-slide-active {
  opacity: 1;
}

.g5fc-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bottom Navigation */
.g5fc-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6.4rem;
  background: var(--g5fc-bg-light);
  border-top: 1px solid var(--g5fc-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 900;
  max-width: 430px;
  margin: 0 auto;
}

.g5fc-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--g5fc-text-muted);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.8rem;
  min-width: 6rem;
  transition: all 0.3s ease;
}

.g5fc-nav-item:active {
  transform: scale(0.9);
}

.g5fc-nav-item-active {
  color: var(--g5fc-secondary);
}

.g5fc-nav-icon {
  width: 2.4rem;
  height: 2.4rem;
}

/* Footer */
.g5fc-footer {
  background: var(--g5fc-bg-light);
  border-top: 1px solid var(--g5fc-border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  margin-bottom: 6.4rem;
}

.g5fc-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.g5fc-footer-link {
  color: var(--g5fc-text-muted);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.g5fc-footer-link:hover {
  color: var(--g5fc-secondary);
}

.g5fc-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.g5fc-partner-img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.g5fc-partner-img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.g5fc-copyright {
  text-align: center;
  color: var(--g5fc-text-muted);
  font-size: 1.2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--g5fc-border);
}

/* FAQ Accordion */
.g5fc-faq-item {
  background: var(--g5fc-bg-light);
  border: 1px solid var(--g5fc-border);
  border-radius: 0.8rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.g5fc-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.g5fc-faq-question:hover {
  background: rgba(138, 43, 226, 0.1);
}

.g5fc-faq-icon {
  transition: transform 0.3s ease;
  color: var(--g5fc-secondary);
}

.g5fc-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--g5fc-text-muted);
  line-height: 1.6;
}

.g5fc-faq-answer-content {
  padding: 0 1.5rem 1.5rem;
}

/* Toast Notifications */
.g5fc-toast {
  position: fixed;
  bottom: 8rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--g5fc-bg-light);
  color: var(--g5fc-text);
  padding: 1.2rem 2rem;
  border-radius: 0.8rem;
  box-shadow: 0 4px 12px var(--g5fc-shadow);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 1.4rem;
}

.g5fc-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Utility Classes */
.g5fc-text-center {
  text-align: center;
}

.g5fc-text-primary {
  color: var(--g5fc-primary);
}

.g5fc-text-secondary {
  color: var(--g5fc-secondary);
}

.g5fc-text-muted {
  color: var(--g5fc-text-muted);
}

.g5fc-mt-1 {
  margin-top: 1rem;
}

.g5fc-mt-2 {
  margin-top: 2rem;
}

.g5fc-mb-1 {
  margin-bottom: 1rem;
}

.g5fc-mb-2 {
  margin-bottom: 2rem;
}

.g5fc-p-1 {
  padding: 1rem;
}

.g5fc-p-2 {
  padding: 2rem;
}

/* Responsive adjustments */
@media (max-width: 375px) {
  :root {
    font-size: 58%;
  }

  .g5fc-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }
}

@media (min-width: 431px) {
  .g5fc-header-content,
  .g5fc-bottom-nav {
    max-width: 430px;
  }
}
