/**
 * BetBingo Gaming Platform - Main Stylesheet
 * Mobile-first responsive design with s28f- prefix for all classes
 * Color scheme: #008B8B | #F0F0F0 | #2E4057 | #FFB74D
 */

/* ========================================
   CSS VARIABLES & RESET
   ======================================== */
:root {
  --s28f-primary: #008B8B;
  --s28f-secondary: #FFB74D;
  --s28f-dark: #2E4057;
  --s28f-light: #F0F0F0;
  --s28f-white: #FFFFFF;
  --s28f-text: #333333;
  --s28f-text-light: #666666;
  --s28f-border: #DDDDDD;
  --s28f-shadow: rgba(0, 0, 0, 0.1);
  --s28f-shadow-md: rgba(0, 0, 0, 0.15);
  --s28f-shadow-lg: rgba(0, 0, 0, 0.2);
  --s28f-gradient-primary: linear-gradient(135deg, #008B8B 0%, #006666 100%);
  --s28f-gradient-secondary: linear-gradient(135deg, #FFB74D 0%, #FF9800 100%);
  --s28f-transition: all 0.3s ease;
  --s28f-header-height: 60px;
  --s28f-bottom-nav-height: 60px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  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(--s28f-text);
  background-color: var(--s28f-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--s28f-transition);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--s28f-transition);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.s28f-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--s28f-header-height);
  background: var(--s28f-gradient-primary);
  color: var(--s28f-white);
  z-index: 1000;
  box-shadow: 0 2px 8px var(--s28f-shadow);
  transition: var(--s28f-transition);
}

.s28f-header-scrolled {
  box-shadow: 0 4px 12px var(--s28f-shadow-md);
}

.s28f-header-container {
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.s28f-logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.s28f-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.s28f-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s28f-white);
  letter-spacing: 0.5px;
}

.s28f-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.s28f-btn-register,
.s28f-btn-login {
  padding: 0.6rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 6px;
  transition: var(--s28f-transition);
  min-height: 36px;
}

.s28f-btn-register {
  background: var(--s28f-secondary);
  color: var(--s28f-dark);
}

.s28f-btn-register:hover {
  background: #FFA726;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 183, 77, 0.3);
}

.s28f-btn-login {
  background: rgba(255, 255, 255, 0.2);
  color: var(--s28f-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.s28f-btn-login:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.s28f-menu-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  margin-left: 0.5rem;
}

.s28f-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--s28f-white);
  border-radius: 2px;
  transition: var(--s28f-transition);
}

/* Mobile Menu */
.s28f-mobile-menu {
  position: fixed;
  top: var(--s28f-header-height);
  right: -100%;
  width: 280px;
  height: calc(100vh - var(--s28f-header-height));
  background: var(--s28f-white);
  box-shadow: -4px 0 12px var(--s28f-shadow);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.s28f-menu-active {
  right: 0;
}

.s28f-menu-overlay {
  position: fixed;
  top: var(--s28f-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: none;
  transition: var(--s28f-transition);
}

.s28f-overlay-active {
  display: block;
}

.s28f-menu-list {
  list-style: none;
  padding: 1rem 0;
}

.s28f-menu-item {
  border-bottom: 1px solid var(--s28f-border);
}

.s28f-menu-link {
  display: block;
  padding: 1.5rem 2rem;
  color: var(--s28f-text);
  font-size: 1.5rem;
  font-weight: 500;
  transition: var(--s28f-transition);
}

.s28f-menu-link:hover {
  background: var(--s28f-light);
  color: var(--s28f-primary);
  padding-left: 2.5rem;
}

/* ========================================
   BOTTOM NAVIGATION (Mobile)
   ======================================== */
.s28f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--s28f-bottom-nav-height);
  background: var(--s28f-white);
  border-top: 2px solid var(--s28f-primary);
  box-shadow: 0 -2px 10px var(--s28f-shadow);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem;
}

.s28f-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 60px;
  min-height: 56px;
  cursor: pointer;
  transition: var(--s28f-transition);
  border-radius: 8px;
  padding: 0.5rem;
}

.s28f-bottom-nav-item:hover {
  background: rgba(0, 139, 139, 0.05);
  transform: scale(1.05);
}

.s28f-nav-active {
  background: rgba(0, 139, 139, 0.1);
}

.s28f-nav-active .s28f-nav-icon {
  color: var(--s28f-primary);
  transform: scale(1.1);
}

.s28f-nav-active .s28f-nav-text {
  color: var(--s28f-primary);
  font-weight: 700;
}

.s28f-nav-icon {
  font-size: 2.4rem;
  color: var(--s28f-text-light);
  transition: var(--s28f-transition);
}

.s28f-nav-text {
  font-size: 1.1rem;
  color: var(--s28f-text);
  font-weight: 500;
  text-align: center;
}

@media (min-width: 769px) {
  .s28f-bottom-nav {
    display: none;
  }
}

/* ========================================
   MAIN LAYOUT
   ======================================== */
.s28f-main {
  max-width: 430px;
  margin: 0 auto;
  padding-top: var(--s28f-header-height);
  min-height: 100vh;
}

@media (max-width: 768px) {
  .s28f-main {
    padding-bottom: 80px;
  }
}

.s28f-container {
  padding: 1.5rem;
}

.s28f-section {
  margin-bottom: 2.5rem;
}

.s28f-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--s28f-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 3px solid var(--s28f-primary);
}

.s28f-section-subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--s28f-primary);
  margin-bottom: 1rem;
}

/* ========================================
   CAROUSEL/SLIDER
   ======================================== */
.s28f-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px var(--s28f-shadow);
}

.s28f-slide {
  display: none;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.s28f-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   GAME GRID
   ======================================== */
.s28f-game-category {
  margin-bottom: 3rem;
}

.s28f-category-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s28f-dark);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.s28f-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.s28f-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--s28f-transition);
  padding: 0.8rem;
  border-radius: 8px;
}

.s28f-game-item:hover {
  background: var(--s28f-light);
  transform: translateY(-3px);
}

.s28f-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--s28f-shadow);
}

.s28f-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s28f-game-name {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--s28f-text);
  text-align: center;
  line-height: 1.3;
}

/* ========================================
   BUTTONS
   ======================================== */
.s28f-btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  transition: var(--s28f-transition);
  cursor: pointer;
  min-height: 44px;
}

.s28f-btn-primary {
  background: var(--s28f-gradient-primary);
  color: var(--s28f-white);
  box-shadow: 0 4px 12px rgba(0, 139, 139, 0.3);
}

.s28f-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 139, 139, 0.4);
}

.s28f-btn-secondary {
  background: var(--s28f-gradient-secondary);
  color: var(--s28f-dark);
  box-shadow: 0 4px 12px rgba(255, 183, 77, 0.3);
}

.s28f-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 183, 77, 0.4);
}

.s28f-btn-block {
  display: block;
  width: 100%;
}

/* ========================================
   FOOTER
   ======================================== */
.s28f-footer {
  background: var(--s28f-dark);
  color: var(--s28f-light);
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}

.s28f-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.s28f-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.s28f-footer-link {
  color: var(--s28f-light);
  font-size: 1.4rem;
  padding: 0.5rem 0;
  transition: var(--s28f-transition);
}

.s28f-footer-link:hover {
  color: var(--s28f-secondary);
  padding-left: 0.5rem;
}

.s28f-partners {
  margin: 2rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(240, 240, 240, 0.2);
  border-bottom: 1px solid rgba(240, 240, 240, 0.2);
}

.s28f-partners-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--s28f-light);
}

.s28f-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.s28f-partner-logo {
  width: 100%;
  height: auto;
  opacity: 0.7;
  transition: var(--s28f-transition);
  filter: grayscale(100%);
}

.s28f-partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

.s28f-copyright {
  text-align: center;
  font-size: 1.3rem;
  color: rgba(240, 240, 240, 0.7);
  margin-top: 2rem;
}

/* ========================================
   ACCORDION (FAQ)
   ======================================== */
.s28f-accordion-item {
  border: 1px solid var(--s28f-border);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.s28f-accordion-header {
  padding: 1.5rem;
  background: var(--s28f-light);
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--s28f-transition);
}

.s28f-accordion-header:hover {
  background: #E8E8E8;
}

.s28f-accordion-active .s28f-accordion-header {
  background: var(--s28f-primary);
  color: var(--s28f-white);
}

.s28f-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.s28f-accordion-body {
  padding: 1.5rem;
  line-height: 1.6;
}

/* ========================================
   NOTIFICATION
   ======================================== */
.s28f-notification {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--s28f-dark);
  color: var(--s28f-white);
  padding: 1.2rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--s28f-shadow-lg);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
}

.s28f-notification-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */
@media (max-width: 768px) {
  .s28f-desktop-only {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .s28f-mobile-only {
    display: none !important;
  }

  .s28f-main {
    padding-bottom: 0;
  }
}
