/**
 * uno spin - Main Stylesheet
 * All classes use s068- prefix for namespace isolation
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
  --s068-primary: #333333;
  --s068-secondary: #F0F0F0;
  --s068-accent-1: #FA8072;
  --s068-accent-2: #00695C;
  --s068-accent-3: #DB7093;
  --s068-accent-4: #004D40;
  --s068-bg: #333333;
  --s068-text: #F0F0F0;
  --s068-white: #FFFFFF;
  --s068-black: #000000;
  --s068-shadow: rgba(0, 0, 0, 0.3);
  --s068-border: rgba(240, 240, 240, 0.1);
}

/* 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(--s068-text);
  background-color: var(--s068-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container and Layout */
.s068-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.s068-wrapper {
  padding-bottom: 80px;
}

.s068-grid {
  display: grid;
  gap: 1rem;
}

.s068-flex {
  display: flex;
  flex-wrap: wrap;
}

.s068-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Header Navigation */
.s068-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--s068-primary);
  box-shadow: 0 2px 10px var(--s068-shadow);
  z-index: 1000;
  padding: 0.8rem 0;
}

.s068-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.s068-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--s068-text);
  font-size: 1.8rem;
  font-weight: bold;
}

.s086-logo-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.s068-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.s068-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: var(--s068-accent-1);
  color: var(--s068-white);
  text-decoration: none;
  border-radius: 0.4rem;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  min-height: 44px;
}

.s068-btn:hover {
  background-color: var(--s068-accent-3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--s068-shadow);
}

.s068-btn-outline {
  background-color: transparent;
  border: 2px solid var(--s068-accent-1);
  color: var(--s068-accent-1);
}

.s068-btn-outline:hover {
  background-color: var(--s068-accent-1);
  color: var(--s068-white);
}

/* Mobile Menu Toggle */
.s068-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
}

.s068-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--s068-text);
  transition: all 0.3s ease;
}

/* Mobile Menu */
.s068-mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background-color: var(--s068-primary);
  box-shadow: 0 4px 12px var(--s068-shadow);
  z-index: 9999;
  padding: 1rem 0;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

.s068-mobile-menu.show {
  display: block;
}

.s068-menu-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--s068-text);
  text-decoration: none;
  font-size: 1.5rem;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--s068-border);
}

.s068-menu-link:hover {
  background-color: var(--s068-accent-2);
  color: var(--s068-white);
}

/* Main Content */
.s068-main {
  margin-top: 60px;
  padding: 1.5rem 0;
}

.s068-section {
  margin-bottom: 2.5rem;
}

.s068-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--s068-accent-1);
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.s068-section-title h2 {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

/* Carousel */
.s068-carousel {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--s068-shadow);
}

.s068-carousel-slide {
  display: none;
  width: 100%;
}

.s068-carousel-slide:first-child {
  display: block;
}

.s068-carousel img {
  width: 100%;
  height: auto;
  display: block;
}

/* Card Components */
.s068-card {
  background-color: rgba(240, 240, 240, 0.05);
  border: 1px solid var(--s068-border);
  border-radius: 0.8rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.s068-card-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--s068-accent-1);
  margin-bottom: 1rem;
}

.s068-card-content {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--s068-secondary);
}

/* Game Grid */
.s068-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.s068-game-item {
  display: block;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.s068-game-item:hover {
  transform: scale(1.05);
}

.s068-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.4rem;
  margin-bottom: 0.5rem;
  background-color: var(--s068-accent-4);
}

.s068-game-name {
  font-size: 1.1rem;
  color: var(--s068-text);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

/* Category Title */
.s068-category-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--s068-accent-2);
  margin: 2rem 0 1rem;
  padding-left: 0.5rem;
  border-left: 4px solid var(--s068-accent-1);
}

/* Promotional Link */
.s068-promo-link {
  color: var(--s068-accent-1);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.s068-promo-link:hover {
  border-bottom-color: var(--s068-accent-1);
}

/* List Styles */
.s068-list {
  list-style: none;
  padding-left: 0;
}

.s068-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--s068-border);
  font-size: 1.5rem;
  line-height: 1.6;
}

.s068-list li:last-child {
  border-bottom: none;
}

/* FAQ Section */
.s068-faq-item {
  margin-bottom: 1.5rem;
}

.s068-faq-question {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--s068-accent-1);
  margin-bottom: 0.5rem;
}

.s068-faq-answer {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--s068-secondary);
  padding-left: 1rem;
}

/* Footer */
.s068-footer {
  background-color: var(--s068-accent-4);
  padding: 2rem 0 1rem;
  margin-top: 3rem;
}

.s068-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.s068-footer-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--s068-secondary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.s068-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.s068-footer-link {
  color: var(--s068-accent-1);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.2s ease;
}

.s068-footer-link:hover {
  color: var(--s068-accent-3);
}

.s068-partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.s068-partner-logo {
  width: 100%;
  height: 40px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.s068-partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.s068-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--s068-secondary);
  padding-top: 1rem;
  border-top: 1px solid var(--s068-border);
}

/* Bottom Navigation */
.s068-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--s068-primary);
  box-shadow: 0 -2px 10px var(--s068-shadow);
  z-index: 1000;
  padding: 0.5rem 0;
  max-width: 430px;
  margin: 0 auto;
}

.s068-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.s068-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--s068-text);
  padding: 0.5rem;
  min-width: 60px;
  min-height: 60px;
  transition: all 0.2s ease;
  border-radius: 0.4rem;
}

.s068-nav-item:hover {
  background-color: rgba(240, 240, 240, 0.1);
  transform: scale(1.05);
}

.s068-nav-item.s068-nav-active {
  color: var(--s068-accent-1);
  background-color: rgba(250, 128, 114, 0.1);
}

.s068-nav-icon {
  font-size: 24px;
  margin-bottom: 0.3rem;
  line-height: 1;
}

.s068-nav-text {
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
}

/* Desktop Styles */
@media (min-width: 769px) {
  .s068-container {
    max-width: 1200px;
  }

  .s068-bottom-nav {
    display: none;
  }

  .s068-wrapper {
    padding-bottom: 2rem;
  }

  .s068-game-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .s068-menu-toggle {
    display: none;
  }

  .s068-header-inner {
    padding: 0 2rem;
  }
}

/* Utility Classes */
.s068-text-center {
  text-align: center;
}

.s068-mt-1 {
  margin-top: 1rem;
}

.s068-mt-2 {
  margin-top: 2rem;
}

.s068-mb-1 {
  margin-bottom: 1rem;
}

.s068-mb-2 {
  margin-bottom: 2rem;
}

.s068-p-1 {
  padding: 1rem;
}

.s068-p-2 {
  padding: 2rem;
}

/* Smooth animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.s068-fade-in {
  animation: fadeIn 0.5s ease-in-out;
}
