/**
 * JL59 PH - Main Stylesheet
 * All classes prefixed with sff3 for namespace isolation
 */

/* CSS Variables */
:root {
  --sff3-primary: #1A1A1A;
  --sff3-secondary: #E0FFFF;
  --sff3-accent: #BC8F8F;
  --sff3-highlight: #CD853F;
  --sff3-light: #E5E5E5;
  --sff3-text-dark: #1A1A1A;
  --sff3-text-light: #E5E5E5;
  --sff3-border: #BC8F8F;
}

/* Reset and 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, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--sff3-text-light);
  background-color: var(--sff3-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.sff3-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.sff3-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1A1A1A 0%, #2a2a2a 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid var(--sff3-highlight);
}

.sff3-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.sff3-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--sff3-secondary);
}

.sff3-logo img {
  width: 32px;
  height: 32px;
  margin-right: 0.5rem;
}

.sff3-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sff3-secondary);
}

.sff3-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.sff3-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sff3-btn-register {
  background: linear-gradient(135deg, var(--sff3-highlight) 0%, #b87333 100%);
  color: white;
}

.sff3-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(205, 133, 63, 0.4);
}

.sff3-btn-login {
  background: transparent;
  color: var(--sff3-secondary);
  border: 2px solid var(--sff3-accent);
}

.sff3-btn-login:hover {
  background: var(--sff3-accent);
  color: var(--sff3-text-dark);
}

.sff3-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.sff3-menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--sff3-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.sff3-mobile-menu {
  position: fixed;
  top: 60px;
  left: -100%;
  width: 100%;
  max-width: 430px;
  height: calc(100vh - 60px);
  background: var(--sff3-primary);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
  transition: left 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
}

.sff3-mobile-menu.sff3-menu-open {
  left: 0;
}

.sff3-menu-nav {
  padding: 1rem;
}

.sff3-menu-link {
  display: block;
  padding: 1rem;
  color: var(--sff3-secondary);
  text-decoration: none;
  border-bottom: 1px solid rgba(188, 143, 143, 0.2);
  transition: all 0.3s ease;
}

.sff3-menu-link:hover {
  background: rgba(188, 143, 143, 0.1);
  padding-left: 1.5rem;
}

/* Main Content */
main {
  padding-top: 60px;
  padding-bottom: 80px;
}

.sff3-wrapper {
  padding: 1.5rem 0;
}

/* Carousel */
.sff3-carousel {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 10px;
}

.sff3-carousel-slide {
  display: none;
  width: 100%;
}

.sff3-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.sff3-carousel-slide.sff3-active {
  display: block;
}

.sff3-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.sff3-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(224, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.sff3-carousel-dot.sff3-active {
  background: var(--sff3-highlight);
  width: 25px;
  border-radius: 5px;
}

/* Headings */
.sff3-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sff3-secondary);
  margin-bottom: 1rem;
  text-align: center;
}

.sff3-section-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--sff3-secondary);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sff3-accent);
}

/* Cards */
.sff3-card {
  background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sff3-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--sff3-secondary);
  margin-bottom: 1rem;
}

/* Game Grid */
.sff3-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.sff3-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.sff3-game-item:hover {
  transform: scale(1.05);
}

.sff3-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.3rem;
  background: var(--sff3-light);
}

.sff3-game-name {
  font-size: 1rem;
  color: var(--sff3-secondary);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Links */
.sff3-link {
  color: var(--sff3-highlight);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.sff3-link:hover {
  color: var(--sff3-secondary);
  text-decoration: underline;
}

/* Lists */
.sff3-list {
  list-style: none;
  padding: 0;
}

.sff3-list-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(188, 143, 143, 0.2);
}

.sff3-list-item:last-child {
  border-bottom: none;
}

/* Buttons */
.sff3-btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--sff3-highlight) 0%, #b87333 100%);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.sff3-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(205, 133, 63, 0.4);
}

/* Footer */
.sff3-footer {
  background: linear-gradient(135deg, #1f1f1f 0%, #1a1a1a 100%);
  padding: 2rem 0 1rem;
  border-top: 2px solid var(--sff3-accent);
}

.sff3-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.sff3-footer-link {
  color: var(--sff3-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.sff3-footer-link:hover {
  color: var(--sff3-highlight);
}

.sff3-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sff3-partner img {
  height: 30px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.sff3-partner img:hover {
  opacity: 1;
}

.sff3-copyright {
  text-align: center;
  color: var(--sff3-accent);
  font-size: 1.1rem;
}

/* Mobile Bottom Navigation */
.sff3-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(135deg, #1A1A1A 0%, #2a2a2a 100%);
  border-top: 2px solid var(--sff3-highlight);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.sff3-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--sff3-secondary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.sff3-nav-item:hover {
  transform: scale(1.1);
}

.sff3-nav-item.sff3-active {
  color: var(--sff3-highlight);
}

.sff3-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.sff3-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Responsive */
@media (min-width: 769px) {
  .sff3-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 2rem;
  }
}

/* Utilities */
.sff3-text-center {
  text-align: center;
}

.sff3-mt-1 {
  margin-top: 1rem;
}

.sff3-mt-2 {
  margin-top: 2rem;
}

.sff3-mb-1 {
  margin-bottom: 1rem;
}

.sff3-mb-2 {
  margin-bottom: 2rem;
}

/* Touch feedback */
.sff3-touch-active {
  transform: scale(0.95);
}

/* Animations */
@keyframes sff3-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.sff3-pulse {
  animation: sff3-pulse 2s infinite;
}
