/**
 * JLJL13 Website CSS
 * All classes use prefix: sfb3-
 * Color scheme: #B0E0E6 | #34495E | #4682B4
 */

/* CSS Variables */
:root {
  --sfb3-primary: #4682B4;
  --sfb3-secondary: #B0E0E6;
  --sfb3-dark: #34495E;
  --sfb3-darker: #2C3E50;
  --sfb3-light: #ECF0F1;
  --sfb3-white: #FFFFFF;
  --sfb3-text: #34495E;
  --sfb3-text-light: #7F8C8D;
  --sfb3-success: #27AE60;
  --sfb3-warning: #F39C12;
  --sfb3-danger: #E74C3C;
}

/* Base styles */
* {
  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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--sfb3-text);
  background-color: var(--sfb3-light);
  min-width: 320px;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* Container */
.sfb3-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.sfb3-wrapper {
  padding-bottom: 80px;
}

/* Header */
.sfb3-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--sfb3-dark) 0%, var(--sfb3-darker) 100%);
  padding: 0.8rem 1rem;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sfb3-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sfb3-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--sfb3-white);
  font-size: 1.4rem;
  font-weight: 700;
}

.sfb3-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sfb3-primary), var(--sfb3-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.sfb3-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.sfb3-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.sfb3-btn-register {
  background: linear-gradient(135deg, var(--sfb3-primary), var(--sfb3-secondary));
  color: var(--sfb3-white);
}

.sfb3-btn-login {
  background: transparent;
  color: var(--sfb3-white);
  border: 2px solid var(--sfb3-white);
}

.sfb3-btn:hover,
.sfb3-btn:active {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(70, 130, 180, 0.4);
}

.sfb3-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--sfb3-white);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.sfb3-mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--sfb3-dark);
  padding: 1rem;
  z-index: 9999;
  max-height: 80vh;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sfb3-mobile-menu.sfb3-menu-open {
  display: block;
  opacity: 1;
}

.sfb3-menu-item {
  display: block;
  padding: 0.8rem 1rem;
  color: var(--sfb3-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.sfb3-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Main content */
.sfb3-main {
  margin-top: 60px;
  padding: 1rem;
}

/* Carousel */
.sfb3-carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sfb3-carousel {
  display: flex;
  transition: transform 0.5s ease;
}

.sfb3-carousel-slide {
  min-width: 100%;
  position: relative;
}

.sfb3-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.sfb3-carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 2rem 1rem 1rem;
  color: var(--sfb3-white);
}

/* Section */
.sfb3-section {
  background: var(--sfb3-white);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sfb3-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sfb3-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sfb3-section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, var(--sfb3-primary), var(--sfb3-secondary));
  border-radius: 2px;
}

/* Game Grid */
.sfb3-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.sfb3-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.sfb3-game-item:hover {
  transform: scale(1.05);
}

.sfb3-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  background: var(--sfb3-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sfb3-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sfb3-game-name {
  font-size: 1rem;
  color: var(--sfb3-dark);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Card */
.sfb3-card {
  background: var(--sfb3-light);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--sfb3-primary);
}

.sfb3-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--sfb3-dark);
  margin-bottom: 0.5rem;
}

.sfb3-card-content {
  font-size: 1.2rem;
  color: var(--sfb3-text-light);
  line-height: 1.6;
}

/* Link styles */
.sfb3-link {
  color: var(--sfb3-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.sfb3-link:hover {
  color: var(--sfb3-dark);
  text-decoration: underline;
}

/* Promotional link */
.sfb3-promo-link {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, var(--sfb3-primary), var(--sfb3-secondary));
  color: var(--sfb3-white);
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(70, 130, 180, 0.3);
}

.sfb3-promo-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(70, 130, 180, 0.4);
}

/* Footer */
.sfb3-footer {
  background: var(--sfb3-dark);
  color: var(--sfb3-white);
  padding: 2rem 1rem 6rem;
  margin-top: 2rem;
}

.sfb3-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.sfb3-footer-link {
  color: var(--sfb3-secondary);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.sfb3-footer-link:hover {
  color: var(--sfb3-white);
}

.sfb3-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.sfb3-partner-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.sfb3-partner-icon:hover {
  opacity: 1;
}

.sfb3-copyright {
  text-align: center;
  font-size: 1rem;
  color: var(--sfb3-text-light);
  margin-top: 1rem;
}

/* Bottom Navigation */
.sfb3-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--sfb3-dark) 0%, var(--sfb3-darker) 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.sfb3-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 60px;
  min-height: 60px;
  justify-content: center;
  text-decoration: none;
  color: var(--sfb3-secondary);
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 8px;
  padding: 0.5rem;
}

.sfb3-nav-item:hover {
  background: rgba(176, 224, 230, 0.1);
  transform: scale(1.05);
}

.sfb3-nav-item.sfb3-nav-active {
  color: var(--sfb3-white);
}

.sfb3-nav-icon {
  font-size: 24px;
}

.sfb3-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Desktop styles */
@media (min-width: 769px) {
  .sfb3-bottom-nav {
    display: none;
  }

  .sfb3-wrapper {
    padding-bottom: 2rem;
  }

  .sfb3-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .sfb3-menu-toggle {
    display: block;
  }
}

/* Utility classes */
.sfb3-text-center {
  text-align: center;
}

.sfb3-mt-1 {
  margin-top: 1rem;
}

.sfb3-mb-1 {
  margin-bottom: 1rem;
}

.sfb3-mb-2 {
  margin-bottom: 2rem;
}

/* Touch feedback */
.sfb3-touch-active {
  transform: scale(0.95) !important;
}

/* Animation */
@keyframes sfb3-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.sfb3-pulse {
  animation: sfb3-pulse 2s ease-in-out infinite;
}
