/**
 * Jiliko - Main CSS Stylesheet
 * All classes prefixed with 's15e-'
 * Mobile-first responsive design
 * Version: 1.0.0
 */

/* CSS Variables - Color Palette */
:root {
  --s15e-primary: #FFA500;
  --s15e-secondary: #DAA520;
  --s15e-dark: #2E4057;
  --s15e-gray: #C0C0C0;
  --s15e-light: #F5F5F5;
  --s15e-white: #FFFFFF;
  --s15e-black: #000000;
  --s15e-text: #E8E8E8;
  --s15e-bg-dark: #1A1A2E;
  --s15e-bg-card: #16213E;
  --s15e-border: #0F3460;
  --s15e-shadow: rgba(0, 0, 0, 0.3);
  --s15e-gradient: linear-gradient(135deg, #FFA500 0%, #DAA520 100%);
}

/* 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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--s15e-text);
  background-color: var(--s15e-bg-dark);
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
}

/* Container */
.s15e-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.s15e-wrapper {
  padding-bottom: 80px;
}

/* Header Styles */
.s15e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background-color: var(--s15e-dark);
  box-shadow: 0 2px 10px var(--s15e-shadow);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.s15e-header-hidden {
  transform: translateY(-100%);
}

.s15e-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  height: 60px;
}

.s15e-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--s15e-primary);
}

.s15e-logo img {
  width: 32px;
  height: 32px;
}

.s15e-logo-text {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--s15e-primary);
}

.s15e-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.s15e-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.s15e-btn-primary {
  background: var(--s15e-gradient);
  color: var(--s15e-white);
}

.s15e-btn-secondary {
  background: transparent;
  color: var(--s15e-primary);
  border: 2px solid var(--s15e-primary);
}

.s15e-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.s15e-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--s15e-primary);
  transition: all 0.3s ease;
}

/* Mobile Menu */
.s15e-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: var(--s15e-dark);
  box-shadow: -2px 0 10px var(--s15e-shadow);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 0;
  overflow-y: auto;
}

.s15e-menu-open {
  right: 0;
}

.s15e-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  z-index: 9998;
  transition: all 0.3s ease;
}

.s15e-overlay-show {
  opacity: 1;
  visibility: visible;
}

.s15e-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--s15e-primary);
  font-size: 2rem;
  cursor: pointer;
}

.s15e-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
}

.s15e-menu-link {
  display: block;
  padding: 1rem;
  color: var(--s15e-text);
  text-decoration: none;
  border-bottom: 1px solid var(--s15e-border);
  transition: all 0.3s ease;
}

.s15e-menu-link:hover {
  background-color: var(--s15e-bg-card);
  color: var(--s15e-primary);
  padding-left: 1.5rem;
}

/* Carousel */
.s15e-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  margin-top: 60px;
  overflow: hidden;
}

.s15e-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.s15e-slide-active {
  opacity: 1;
}

.s15e-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Headings */
.s15e-heading {
  color: var(--s15e-primary);
  margin-bottom: 1rem;
}

h1.s15e-heading {
  font-size: 2.4rem;
  text-align: center;
  padding: 2rem 1rem 1rem;
}

h2.s15e-heading {
  font-size: 2rem;
  padding: 1.5rem 0 1rem;
}

h3.s15e-heading {
  font-size: 1.8rem;
  padding: 1rem 0 0.8rem;
}

/* Sections */
.s15e-section {
  padding: 1.5rem 0;
}

.s15e-card {
  background-color: var(--s15e-bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px var(--s15e-shadow);
}

/* Game Grid */
.s15e-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 1rem 0;
}

.s15e-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.s15e-game-item:hover {
  transform: scale(1.05);
}

.s15e-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--s15e-border);
}

.s15e-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s15e-game-name {
  font-size: 1rem;
  text-align: center;
  color: var(--s15e-text);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.s15e-category-title {
  font-size: 1.6rem;
  color: var(--s15e-primary);
  margin: 2rem 0 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--s15e-secondary);
}

/* Links */
.s15e-link {
  color: var(--s15e-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.s15e-link:hover {
  color: var(--s15e-secondary);
  text-decoration: underline;
}

/* Footer */
.s15e-footer {
  background-color: var(--s15e-dark);
  padding: 2rem 1rem 6rem;
  margin-top: 2rem;
}

.s15e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.s15e-footer-link {
  color: var(--s15e-gray);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.s15e-footer-link:hover {
  color: var(--s15e-primary);
}

.s15e-partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.s15e-partner-img {
  width: 100%;
  height: 40px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.s15e-partner-img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.s15e-copyright {
  text-align: center;
  color: var(--s15e-gray);
  font-size: 1.1rem;
  margin-top: 2rem;
}

/* Bottom Navigation */
.s15e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: linear-gradient(to right, var(--s15e-dark), var(--s15e-bg-card));
  box-shadow: 0 -2px 10px var(--s15e-shadow);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.s15e-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--s15e-gray);
}

.s15e-nav-item:hover,
.s15e-nav-item.s15e-active {
  color: var(--s15e-primary);
  transform: scale(1.1);
}

.s15e-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.s15e-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Responsive */
@media (min-width: 769px) {
  .s15e-bottom-nav {
    display: none;
  }

  .s15e-wrapper {
    padding-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .s15e-menu-toggle {
    display: flex;
  }
}

/* Utility Classes */
.s15e-text-center {
  text-align: center;
}

.s15e-text-primary {
  color: var(--s15e-primary);
}

.s15e-mt-1 {
  margin-top: 1rem;
}

.s15e-mb-1 {
  margin-bottom: 1rem;
}

.s15e-mb-2 {
  margin-bottom: 2rem;
}
