/**
 * CC6 Main Stylesheet
 * @version 1.0.0
 * @author CC6 Team
 * @description Mobile-first responsive design for CC6 gaming platform
 */

/* 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;
  background-color: #0F0F23;
  color: #E0FFFF;
  overflow-x: hidden;
  min-height: 100vh;
}

/* CSS Variables */
:root {
  --s289-primary: #1E90FF;
  --s289-secondary: #FF7F50;
  --s289-accent: #FFC0CB;
  --s289-bg: #0F0F23;
  --s289-text: #E0FFFF;
  --s289-border: rgba(30, 144, 255, 0.2);
  --s289-shadow: rgba(30, 144, 255, 0.1);
}

/* Container */
.s289-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.s289-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0F0F23 0%, #1a1a3e 100%);
  border-bottom: 2px solid var(--s289-border);
  backdrop-filter: blur(10px);
}

.s289-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.s289-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--s289-text);
}

.s289-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.s289-logo span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s289-primary);
}

.s289-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.s289-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.s289-btn {
  background: linear-gradient(135deg, var(--s289-primary) 0%, var(--s289-secondary) 100%);
  color: white;
}

.s289-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--s289-shadow);
}

.s289-btn-outline {
  background: transparent;
  color: var(--s289-primary);
  border: 2px solid var(--s289-primary);
}

.s289-btn-outline:hover {
  background: var(--s289-primary);
  color: white;
}

.s289-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--s289-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 769px) {
  .s289-menu-toggle {
    display: none;
  }
}

/* Mobile Menu */
.s289-mobile-menu {
  position: fixed;
  top: 60px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 60px);
  background: rgba(15, 15, 35, 0.98);
  backdrop-filter: blur(10px);
  transition: left 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
}

.s289-mobile-menu.s289-menu-open {
  left: 0;
}

.s289-menu-list {
  list-style: none;
  padding: 1rem 0;
}

.s289-menu-item {
  border-bottom: 1px solid var(--s289-border);
}

.s289-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  color: var(--s289-text);
  text-decoration: none;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.s289-menu-link:hover {
  background: rgba(30, 144, 255, 0.1);
  color: var(--s289-primary);
}

.s289-menu-icon {
  width: 24px;
  text-align: center;
  color: var(--s289-primary);
}

/* Main Content */
.s289-main {
  margin-top: 60px;
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  .s289-main {
    padding-bottom: 2rem;
  }
}

/* Section Styles */
.s289-section {
  padding: 2rem 0;
}

.s289-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--s289-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Carousel */
.s289-carousel {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
}

.s289-carousel-item {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.s289-carousel-item:hover {
  transform: scale(1.02);
}

.s289-carousel-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Card Styles */
.s289-card {
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.05) 0%, rgba(255, 127, 80, 0.05) 100%);
  border: 1px solid var(--s289-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.s289-card-title {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--s289-secondary);
  margin-bottom: 1rem;
}

.s289-card-content {
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--s289-text);
}

.s289-link {
  color: var(--s289-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.s289-link:hover {
  color: var(--s289-secondary);
  text-decoration: underline;
}

/* Game Grid */
.s289-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.s289-game-item {
  position: relative;
}

.s289-game-link {
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.s289-game-link:hover {
  transform: scale(1.05);
}

.s289-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.s289-game-name {
  font-size: 1rem;
  color: var(--s289-text);
  text-align: center;
  margin-top: 0.4rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* FAQ Styles */
.s289-faq-item {
  background: rgba(30, 144, 255, 0.05);
  border: 1px solid var(--s289-border);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.s289-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--s289-text);
  transition: background 0.3s ease;
}

.s289-faq-question:hover {
  background: rgba(30, 144, 255, 0.1);
}

.s289-faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  transition: all 0.3s ease;
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--s289-text);
}

.s289-faq-item.s289-faq-active .s289-faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.s289-faq-item.s289-faq-active .s289-faq-question i {
  transform: rotate(180deg);
}

/* Footer */
.s289-footer {
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.98) 0%, rgba(26, 26, 62, 0.98) 100%);
  border-top: 2px solid var(--s289-border);
  padding: 2rem 0 6rem 0;
  margin-top: 3rem;
}

.s289-footer-content {
  text-align: center;
}

.s289-footer-text {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--s289-text);
  margin-bottom: 1.5rem;
}

.s289-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.s289-footer-link {
  color: var(--s289-primary);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.s289-footer-link:hover {
  color: var(--s289-secondary);
}

.s289-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.s289-partner-logo {
  width: 60px;
  height: 30px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.s289-partner-logo:hover {
  opacity: 1;
}

.s289-copyright {
  font-size: 1.2rem;
  color: rgba(224, 255, 255, 0.6);
}

/* Bottom Navigation */
.s289-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0F0F23 0%, #1a1a3e 100%);
  border-top: 2px solid var(--s289-border);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
}

@media (min-width: 769px) {
  .s289-bottom-nav {
    display: none;
  }
}

.s289-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--s289-text);
  transition: all 0.3s ease;
  padding: 0.5rem;
}

.s289-bottom-nav-item:hover {
  color: var(--s289-primary);
  transform: scale(1.05);
}

.s289-bottom-nav-item.s289-bottom-nav-active {
  color: var(--s289-primary);
}

.s289-bottom-nav-icon {
  font-size: 24px;
  margin-bottom: 0.3rem;
}

.s289-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Utility Classes */
.s289-text-center {
  text-align: center;
}

.s289-mt-1 {
  margin-top: 1rem;
}

.s289-mt-2 {
  margin-top: 2rem;
}

.s289-mb-1 {
  margin-bottom: 1rem;
}

.s289-mb-2 {
  margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 380px) {
  .s289-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 769px) {
  .s289-container {
    max-width: 1200px;
  }

  .s289-game-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .s289-header-inner {
    padding: 1rem 2rem;
  }
}
