/* PhSky Gaming Platform - Mobile-First Responsive Styles */
/* Color Palette: #191970 | #48D1CC | #1B263B | #6C757D | #4169E1 */

/* CSS Custom Properties with s26c prefix */
:root {
  --s26c-primary: #191970;
  --s26c-accent: #48D1CC;
  --s26c-dark: #1B263B;
  --s26c-gray: #6C757D;
  --s26c-blue: #4169E1;
  --s26c-white: #FFFFFF;
  --s26c-black: #000000;
  --s26c-bg-gradient: linear-gradient(135deg, var(--s26c-primary) 0%, var(--s26c-dark) 100%);
  --s26c-text-light: #F8F9FA;
  --s26c-text-muted: #DEE2E6;
  --s26c-border: #343A40;
  --s26c-shadow: rgba(0, 0, 0, 0.15);
  --s26c-shadow-lg: rgba(0, 0, 0, 0.25);
  --vh: 1vh;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--s26c-text-light);
  background: var(--s26c-bg-gradient);
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  overflow-x: hidden;
}

/* Container and Layout */
.s26c-container {
  max-width: 43rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.s26c-wrapper {
  position: relative;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  padding-bottom: 7rem; /* Space for bottom nav */
}

.s26c-grid {
  display: grid;
  gap: 1.5rem;
}

.s26c-flex {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.s26c-flex-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.s26c-flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Header and Navigation */
.s26c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(25, 25, 112, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--s26c-border);
  z-index: 1000;
  transition: all 0.3s ease;
}

.s26c-header.s26c-scrolled {
  background: rgba(25, 25, 112, 0.98);
  box-shadow: 0 2px 20px var(--s26c-shadow);
}

.s26c-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  height: 6rem;
}

.s26c-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--s26c-text-light);
  font-weight: 700;
  font-size: 1.8rem;
}

.s26c-logo-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--s26c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.s26c-logo-icon img {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: contain;
}

.s26c-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.s26c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 4.4rem;
  min-width: 4.4rem;
}

.s26c-btn-primary {
  background: var(--s26c-accent);
  color: var(--s26c-dark);
}

.s26c-btn-primary:hover,
.s26c-btn-primary:focus {
  background: #3BC9C4;
  transform: translateY(-1px);
}

.s26c-btn-outline {
  background: transparent;
  color: var(--s26c-accent);
  border: 2px solid var(--s26c-accent);
}

.s26c-btn-outline:hover,
.s26c-btn-outline:focus {
  background: var(--s26c-accent);
  color: var(--s26c-dark);
}

.s26c-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  padding: 0.4rem;
  margin-left: 1rem;
}

.s26c-hamburger span {
  display: block;
  height: 0.3rem;
  width: 100%;
  background: var(--s26c-text-light);
  border-radius: 0.15rem;
  transition: all 0.3s ease;
}

.s26c-hamburger span:not(:last-child) {
  margin-bottom: 0.4rem;
}

.s26c-hamburger.s26c-active span:nth-child(1) {
  transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.s26c-hamburger.s26c-active span:nth-child(2) {
  opacity: 0;
}

.s26c-hamburger.s26c-active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.7rem, -0.6rem);
}

/* Mobile Menu */
.s26c-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.s26c-menu-overlay.s26c-active {
  opacity: 1;
  visibility: visible;
}

.s26c-mobile-menu {
  position: fixed;
  top: 6rem;
  right: -100%;
  width: 28rem;
  max-width: 85vw;
  height: calc(100vh - 6rem);
  background: var(--s26c-primary);
  z-index: 1001;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 1px solid var(--s26c-border);
}

.s26c-mobile-menu.s26c-active {
  right: 0;
}

.s26c-menu-content {
  padding: 2rem;
}

.s26c-menu-item {
  display: block;
  padding: 1.2rem 0;
  color: var(--s26c-text-light);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 500;
  border-bottom: 1px solid var(--s26c-border);
  transition: color 0.3s ease;
}

.s26c-menu-item:hover,
.s26c-menu-item:focus {
  color: var(--s26c-accent);
}

.s26c-menu-item:last-child {
  border-bottom: none;
}

/* Main Content */
.s26c-main {
  padding-top: 6rem;
  min-height: calc(100vh - 6rem);
}

.s26c-section {
  padding: 2rem 0;
}

.s26c-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--s26c-text-light);
  margin-bottom: 2rem;
  text-align: center;
}

.s26c-section-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--s26c-accent);
  margin-bottom: 1.5rem;
}

/* Hero Section */
.s26c-hero {
  text-align: center;
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--s26c-primary) 0%, var(--s26c-blue) 100%);
}

.s26c-hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--s26c-text-light);
  line-height: 1.2;
}

.s26c-hero-description {
  font-size: 1.6rem;
  color: var(--s26c-text-muted);
  margin-bottom: 2.5rem;
  max-width: 35rem;
  margin-left: auto;
  margin-right: auto;
}

/* Carousel */
.s26c-carousel {
  position: relative;
  margin: 2rem 0;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--s26c-shadow);
}

.s26c-carousel-container {
  position: relative;
  height: 20rem;
}

.s26c-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.s26c-carousel-slide.s26c-active {
  opacity: 1;
}

.s26c-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s26c-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.s26c-carousel-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.s26c-carousel-dot.s26c-active {
  background: var(--s26c-accent);
}

/* Game Sections */
.s26c-games-section {
  margin: 3rem 0;
}

.s26c-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.s26c-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--s26c-text-light);
  border: 1px solid transparent;
}

.s26c-game-item:hover,
.s26c-game-item:focus {
  background: rgba(72, 209, 204, 0.1);
  border-color: var(--s26c-accent);
  transform: translateY(-2px);
  color: var(--s26c-text-light);
}

.s26c-game-icon {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 1rem;
  margin-bottom: 0.8rem;
  background: var(--s26c-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.s26c-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s26c-game-name {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Content Sections */
.s26c-content-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1.2rem;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.s26c-content-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--s26c-accent);
  margin-bottom: 1.5rem;
}

.s26c-content-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--s26c-text-muted);
  margin-bottom: 1.5rem;
}

.s26c-feature-list {
  list-style: none;
  margin: 1.5rem 0;
}

.s26c-feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--s26c-text-muted);
}

.s26c-feature-item:before {
  content: "✓";
  color: var(--s26c-accent);
  font-weight: bold;
  margin-right: 1rem;
  flex-shrink: 0;
}

/* Bottom Navigation */
.s26c-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--s26c-primary);
  border-top: 1px solid var(--s26c-border);
  z-index: 1000;
  height: 6.4rem;
}

.s26c-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  max-width: 43rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.s26c-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--s26c-text-muted);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  min-height: 4.4rem;
  min-width: 4.4rem;
  padding: 0.5rem;
  border-radius: 0.8rem;
}

.s26c-bottom-nav-item:hover,
.s26c-bottom-nav-item:focus,
.s26c-bottom-nav-item.s26c-active {
  color: var(--s26c-accent);
  background: rgba(72, 209, 204, 0.1);
  transform: scale(1.05);
}

.s26c-bottom-nav-icon {
  font-size: 2rem;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s26c-bottom-nav-text {
  font-size: 1rem;
  line-height: 1;
}

/* Footer */
.s26c-footer {
  background: var(--s26c-dark);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--s26c-border);
}

.s26c-footer-content {
  text-align: center;
}

.s26c-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.s26c-footer-link {
  color: var(--s26c-text-muted);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.s26c-footer-link:hover,
.s26c-footer-link:focus {
  color: var(--s26c-accent);
}

.s26c-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--s26c-border);
  border-bottom: 1px solid var(--s26c-border);
}

.s26c-partner-logo {
  width: 4rem;
  height: 4rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  filter: grayscale(100%);
}

.s26c-partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.s26c-partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.s26c-copyright {
  color: var(--s26c-gray);
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

/* Utility Classes */
.s26c-text-center { text-align: center; }
.s26c-text-left { text-align: left; }
.s26c-text-right { text-align: right; }

.s26c-mt-1 { margin-top: 1rem; }
.s26c-mt-2 { margin-top: 2rem; }
.s26c-mt-3 { margin-top: 3rem; }

.s26c-mb-1 { margin-bottom: 1rem; }
.s26c-mb-2 { margin-bottom: 2rem; }
.s26c-mb-3 { margin-bottom: 3rem; }

.s26c-p-1 { padding: 1rem; }
.s26c-p-2 { padding: 2rem; }
.s26c-p-3 { padding: 3rem; }

.s26c-hidden { display: none; }
.s26c-visible { display: block; }

/* Animations */
@keyframes s26c-fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes s26c-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.s26c-animate-fadeIn {
  animation: s26c-fadeIn 0.6s ease forwards;
}

.s26c-animate-pulse {
  animation: s26c-pulse 2s infinite;
}

/* Loading States */
.s26c-lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.s26c-loaded {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 480px) {
  .s26c-container {
    padding: 0 1rem;
  }
  
  .s26c-nav {
    padding: 1rem;
  }
  
  .s26c-hero-title {
    font-size: 2.8rem;
  }
  
  .s26c-games-grid {
    grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
    gap: 1rem;
  }
  
  .s26c-game-icon {
    width: 4rem;
    height: 4rem;
  }
  
  .s26c-bottom-nav-container {
    padding: 0 0.5rem;
  }
}

@media (min-width: 769px) {
  .s26c-hamburger {
    display: none;
  }
  
  .s26c-mobile-menu {
    display: none;
  }
  
  .s26c-nav-actions {
    gap: 1.5rem;
  }
  
  .s26c-bottom-nav {
    display: none;
  }
  
  .s26c-wrapper {
    padding-bottom: 0;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --s26c-text-light: #F8F9FA;
    --s26c-text-muted: #DEE2E6;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .s26c-btn {
    border: 2px solid currentColor;
  }
  
  .s26c-game-item {
    border: 1px solid var(--s26c-accent);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}