/**
 * JIBB Theme CSS
 * All classes use sa19- prefix for namespace isolation
 * Color palette: #141414 | #FFD700 | #6C757D | #2C3E50 | #F5F5F5 | #696969
 */

/* CSS Variables */
:root {
  --sa19-primary: #FFD700;
  --sa19-primary-dark: #E6C200;
  --sa19-secondary: #6C757D;
  --sa19-dark: #141414;
  --sa19-darker: #0A0A0A;
  --sa19-light: #F5F5F5;
  --sa19-gray: #696969;
  --sa19-blue: #2C3E50;
  --sa19-white: #FFFFFF;
  --sa19-border: #2C3E50;
  --sa19-shadow: rgba(0, 0, 0, 0.3);
}

/* 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.6rem;
  line-height: 1.5;
  color: var(--sa19-light);
  background-color: var(--sa19-dark);
  overflow-x: hidden;
}

/* Container */
.sa19-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sa19-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.sa19-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--sa19-darker);
  border-bottom: 2px solid var(--sa19-primary);
  box-shadow: 0 2px 10px var(--sa19-shadow);
}

.sa19-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  height: 60px;
}

.sa19-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--sa19-primary);
}

.sa19-logo img {
  width: 32px;
  height: 32px;
  margin-right: 0.8rem;
}

.sa19-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sa19-primary);
}

.sa19-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.sa19-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.sa19-btn-primary {
  background-color: var(--sa19-primary);
  color: var(--sa19-dark);
}

.sa19-btn-primary:hover,
.sa19-btn-primary:active {
  background-color: var(--sa19-primary-dark);
  transform: scale(1.05);
}

.sa19-btn-secondary {
  background-color: transparent;
  color: var(--sa19-primary);
  border: 2px solid var(--sa19-primary);
}

.sa19-btn-secondary:hover,
.sa19-btn-secondary:active {
  background-color: var(--sa19-primary);
  color: var(--sa19-dark);
}

.sa19-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.sa19-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--sa19-primary);
  transition: all 0.3s ease;
}

.sa19-menu-toggle:hover span {
  background-color: var(--sa19-primary-dark);
}

/* Mobile Menu */
.sa19-mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--sa19-darker);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 2rem 0;
}

.sa19-mobile-menu.sa19-menu-open {
  transform: translateX(0);
}

.sa19-menu-list {
  list-style: none;
  padding: 0 1.5rem;
}

.sa19-menu-item {
  margin-bottom: 0.5rem;
}

.sa19-menu-link {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--sa19-light);
  text-decoration: none;
  font-size: 1.6rem;
  border-bottom: 1px solid var(--sa19-border);
  transition: all 0.3s ease;
}

.sa19-menu-link:hover {
  background-color: var(--sa19-blue);
  color: var(--sa19-primary);
  padding-left: 2rem;
}

/* Main Content */
.sa19-main {
  margin-top: 60px;
  padding-bottom: 80px;
  flex: 1;
}

/* Carousel */
.sa19-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.sa19-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.sa19-carousel-slide.sa19-slide-active {
  opacity: 1;
}

.sa19-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* Headings */
.sa19-h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--sa19-primary);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.sa19-h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--sa19-primary);
  margin: 2rem 0 1rem;
}

.sa19-h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--sa19-light);
  margin: 1.5rem 0 0.8rem;
}

/* Cards */
.sa19-card {
  background-color: var(--sa19-blue);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px var(--sa19-shadow);
}

.sa19-card-title {
  color: var(--sa19-primary);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.sa19-card-content {
  color: var(--sa19-light);
  font-size: 1.5rem;
  line-height: 1.6;
}

/* Game Grid */
.sa19-game-section {
  margin-bottom: 2.5rem;
}

.sa19-section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--sa19-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.sa19-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.sa19-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--sa19-light);
  transition: transform 0.3s ease;
}

.sa19-game-item:hover {
  transform: scale(1.05);
}

.sa19-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  background-color: var(--sa19-darker);
}

.sa19-game-name {
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.3;
  color: var(--sa19-light);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Links */
.sa19-link {
  color: var(--sa19-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.sa19-link:hover {
  color: var(--sa19-primary-dark);
  text-decoration: underline;
}

.sa19-promo-link {
  color: var(--sa19-primary);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.sa19-promo-link:hover {
  text-decoration: underline;
}

/* Lists */
.sa19-list {
  list-style: none;
  padding: 0;
}

.sa19-list-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--sa19-border);
  color: var(--sa19-light);
}

.sa19-list-item:last-child {
  border-bottom: none;
}

/* Footer */
.sa19-footer {
  background-color: var(--sa19-darker);
  border-top: 2px solid var(--sa19-primary);
  padding: 2rem 0 1rem;
  margin-top: 3rem;
}

.sa19-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sa19-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sa19-footer-link {
  color: var(--sa19-light);
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.sa19-footer-link:hover {
  color: var(--sa19-primary);
}

.sa19-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.sa19-partner-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.sa19-partner-logo:hover {
  opacity: 1;
}

.sa19-copyright {
  text-align: center;
  color: var(--sa19-gray);
  font-size: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sa19-border);
}

/* Bottom Navigation */
.sa19-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(180deg, var(--sa19-blue) 0%, var(--sa19-dark) 100%);
  border-top: 2px solid var(--sa19-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--sa19-shadow);
}

.sa19-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--sa19-gray);
  transition: all 0.3s ease;
}

.sa19-bottom-nav a:hover {
  color: var(--sa19-primary);
}

.sa19-bottom-nav a.sa19-nav-active {
  color: var(--sa19-primary);
}

.sa19-bottom-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.sa19-bottom-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Animations */
.sa19-animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.sa19-animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Desktop Responsive */
@media (min-width: 769px) {
  .sa19-bottom-nav {
    display: none;
  }

  .sa19-main {
    padding-bottom: 2rem;
  }
}

/* Utility Classes */
.sa19-text-center {
  text-align: center;
}

.sa19-mt-1 {
  margin-top: 1rem;
}

.sa19-mt-2 {
  margin-top: 2rem;
}

.sa19-mb-1 {
  margin-bottom: 1rem;
}

.sa19-mb-2 {
  margin-bottom: 2rem;
}

.sa19-py-2 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.sa19-hidden {
  display: none;
}

/* Promotional Button */
.sa19-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--sa19-primary) 0%, var(--sa19-primary-dark) 100%);
  color: var(--sa19-dark);
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  border: none;
  width: 100%;
  max-width: 300px;
}

.sa19-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.sa19-promo-btn:active {
  transform: translateY(0);
}
