/**
 * downloading apps - Main CSS Stylesheet
 * All classes use s1c1- prefix for namespace isolation
 * Color Palette: #0A0A0A | #7FFF00 | #006400 | #8FBC8F
 */

/* CSS Variables */
:root {
  --s1c1-primary: #7FFF00;
  --s1c1-primary-dark: #006400;
  --s1c1-secondary: #8FBC8F;
  --s1c1-bg: #0A0A0A;
  --s1c1-bg-light: #1a1a1a;
  --s1c1-text: #ffffff;
  --s1c1-text-muted: #8FBC8F;
  --s1c1-border: #333333;
  --s1c1-shadow: rgba(127, 255, 0, 0.2);
}

/* 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(--s1c1-text);
  background-color: var(--s1c1-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.s1c1-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header Styles */
.s1c1-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--s1c1-bg);
  border-bottom: 1px solid var(--s1c1-border);
  padding: 1rem 0;
}

.s1c1-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.s1c1-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--s1c1-text);
  font-size: 1.8rem;
  font-weight: bold;
}

.s1c1-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.s1c1-header-buttons {
  display: flex;
  gap: 1rem;
}

.s1c1-btn {
  padding: 0.8rem 1.6rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.s1c1-btn-primary {
  background: linear-gradient(135deg, var(--s1c1-primary) 0%, var(--s1c1-primary-dark) 100%);
  color: var(--s1c1-bg);
}

.s1c1-btn-secondary {
  background-color: transparent;
  color: var(--s1c1-primary);
  border: 2px solid var(--s1c1-primary);
}

.s1c1-btn:hover,
.s1c1-btn:active {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--s1c1-shadow);
}

.s1c1-btn:active {
  transform: translateY(0);
}

/* Mobile Menu */
.s1c1-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--s1c1-text);
}

.s1c1-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--s1c1-primary);
  transition: all 0.3s ease;
}

.s1c1-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background-color: var(--s1c1-bg);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 8rem 2rem 2rem;
}

.s1c1-mobile-menu.s1c1-menu-open {
  transform: translateX(0);
}

.s1c1-menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2.4rem;
  background: none;
  border: none;
  color: var(--s1c1-primary);
  cursor: pointer;
  padding: 0.5rem;
}

.s1c1-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.s1c1-menu-link {
  font-size: 1.8rem;
  color: var(--s1c1-text);
  text-decoration: none;
  padding: 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.s1c1-menu-link:hover {
  background-color: var(--s1c1-bg-light);
  color: var(--s1c1-primary);
}

/* Main Content */
.s1c1-main {
  margin-top: 7rem;
  padding-bottom: 8rem;
  min-height: 100vh;
}

/* Carousel */
.s1c1-carousel {
  position: relative;
  margin-bottom: 3rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--s1c1-shadow);
}

.s1c1-carousel-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Section Styles */
.s1c1-section {
  margin-bottom: 4rem;
}

.s1c1-section-title {
  font-size: 2.4rem;
  font-weight: bold;
  color: var(--s1c1-primary);
  margin-bottom: 2rem;
  text-align: center;
}

/* Game Grid */
.s1c1-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.s1c1-game-card {
  background-color: var(--s1c1-bg-light);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.s1c1-game-card:hover {
  border-color: var(--s1c1-primary);
  transform: translateY(-4px);
  box-shadow: 0 6px 16px var(--s1c1-shadow);
}

.s1c1-game-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.s1c1-game-name {
  padding: 1rem;
  font-size: 1.2rem;
  text-align: center;
  color: var(--s1c1-text);
  font-weight: 500;
}

/* Content Module */
.s1c1-content-module {
  background-color: var(--s1c1-bg-light);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--s1c1-border);
}

.s1c1-module-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--s1c1-primary);
  margin-bottom: 1.5rem;
}

.s1c1-module-content {
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--s1c1-text);
}

.s1c1-module-content p {
  margin-bottom: 1.2rem;
}

.s1c1-promo-link {
  color: var(--s1c1-primary);
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid var(--s1c1-primary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.s1c1-promo-link:hover {
  color: var(--s1c1-secondary);
  border-color: var(--s1c1-secondary);
}

/* Internal Link */
.s1c1-internal-link {
  color: var(--s1c1-secondary);
  text-decoration: none;
  font-weight: 500;
}

.s1c1-internal-link:hover {
  text-decoration: underline;
}

/* Footer */
.s1c1-footer {
  background-color: var(--s1c1-bg-light);
  padding: 3rem 0 8rem;
  margin-top: 4rem;
  border-top: 1px solid var(--s1c1-border);
}

.s1c1-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.s1c1-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.s1c1-footer-link {
  font-size: 1.4rem;
  color: var(--s1c1-text);
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.s1c1-footer-link:hover {
  color: var(--s1c1-primary);
  background-color: var(--s1c1-bg);
}

.s1c1-partners {
  margin: 2rem 0;
}

.s1c1-partners-title {
  font-size: 1.6rem;
  color: var(--s1c1-text-muted);
  margin-bottom: 1rem;
  text-align: center;
}

.s1c1-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.s1c1-partner-logo {
  width: 100%;
  height: auto;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.s1c1-partner-logo:hover {
  opacity: 1;
}

.s1c1-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--s1c1-text-muted);
  padding: 2rem 0;
}

/* Bottom Navigation */
.s1c1-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--s1c1-bg-light) 0%, var(--s1c1-bg) 100%);
  border-top: 2px solid var(--s1c1-primary);
  padding: 0.8rem 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
}

.s1c1-bottom-nav-content {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.s1c1-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 60px;
  min-height: 60px;
  justify-content: center;
  text-decoration: none;
  color: var(--s1c1-text-muted);
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
}

.s1c1-nav-item:hover,
.s1c1-nav-item:active {
  color: var(--s1c1-primary);
  background-color: rgba(127, 255, 0, 0.1);
  transform: scale(1.05);
}

.s1c1-nav-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s1c1-nav-text {
  font-size: 10px;
  font-weight: 500;
  text-align: center;
}

.s1c1-nav-item.s1c1-active {
  color: var(--s1c1-primary);
}

/* Desktop Responsive */
@media (min-width: 769px) {
  .s1c1-bottom-nav {
    display: none;
  }

  .s1c1-main {
    padding-bottom: 2rem;
  }
}

/* Touch States */
.s1c1-touch-active {
  opacity: 0.7;
}

/* Utility Classes */
.s1c1-text-center {
  text-align: center;
}

.s1c1-mt-1 {
  margin-top: 1rem;
}

.s1c1-mt-2 {
  margin-top: 2rem;
}

.s1c1-mb-1 {
  margin-bottom: 1rem;
}

.s1c1-mb-2 {
  margin-bottom: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .s1c1-main {
    padding-bottom: 80px;
  }
}
