/* Nustar Game - Responsive CSS Stylesheet */
/* Prefix: s14c- */
/* Color Palette: #98FB98 | #006400 | #9AFF9A | #1B263B | #FFFFFF | #3C3C3C */

:root {
  --s14c-primary: #98FB98;
  --s14c-primary-dark: #006400;
  --s14c-primary-light: #9AFF9A;
  --s14c-dark-bg: #1B263B;
  --s14c-white: #FFFFFF;
  --s14c-gray: #3C3C3C;
  --s14c-border: #2D3E50;
  --s14c-text: #E8E8E8;
  --s14c-accent: #00D000;
  --s14c-shadow: rgba(152, 251, 152, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--s14c-dark-bg);
  color: var(--s14c-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== HEADER STYLES ===== */
.s14c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1B263B 0%, #0D1117 100%);
  border-bottom: 2px solid var(--s14c-primary);
  padding: 12px 16px;
  z-index: 1000;
  box-shadow: 0 4px 12px var(--s14c-shadow);
}

.s14c-header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.s14c-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--s14c-primary);
  font-weight: 700;
  font-size: 18px;
}

.s14c-logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--s14c-primary), var(--s14c-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--s14c-dark-bg);
}

.s14c-nav-desktop {
  display: none;
  align-items: center;
  gap: 20px;
}

@media (min-width: 769px) {
  .s14c-nav-desktop {
    display: flex;
  }
}

.s14c-nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.s14c-nav-links a {
  color: var(--s14c-text);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.s14c-nav-links a:hover {
  color: var(--s14c-primary);
  background-color: rgba(152, 251, 152, 0.1);
}

.s14c-btn-group {
  display: flex;
  gap: 12px;
}

.s14c-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.s14c-btn-register {
  background: linear-gradient(135deg, var(--s14c-primary), var(--s14c-accent));
  color: var(--s14c-dark-bg);
}

.s14c-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--s14c-shadow);
}

.s14c-btn-login {
  background-color: transparent;
  color: var(--s14c-primary);
  border: 2px solid var(--s14c-primary);
}

.s14c-btn-login:hover {
  background-color: rgba(152, 251, 152, 0.1);
  transform: translateY(-2px);
}

/* Mobile menu toggle */
.s14c-hamburger {
  display: flex;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 8px;
  z-index: 9999;
}

@media (min-width: 769px) {
  .s14c-hamburger {
    display: none;
  }
}

.s14c-hamburger span {
  width: 24px;
  height: 3px;
  background-color: var(--s14c-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.s14c-hamburger-active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.s14c-hamburger-active span:nth-child(2) {
  opacity: 0;
}

.s14c-hamburger-active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== MOBILE MENU STYLES ===== */
#s14c-mobile-menu {
  display: block;
  position: fixed;
  top: 60px;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: calc(100vh - 60px);
  background: linear-gradient(180deg, #1B263B 0%, #0D1117 100%);
  z-index: 998;
  overflow-y: auto;
  transition: right 0.3s ease;
  border-left: 2px solid var(--s14c-primary);
}

@media (min-width: 769px) {
  #s14c-mobile-menu {
    display: none;
  }
}

.s14c-menu-active {
  right: 0 !important;
}

.s14c-mobile-nav-link {
  display: block;
  padding: 16px 20px;
  color: var(--s14c-text);
  text-decoration: none;
  border-bottom: 1px solid var(--s14c-border);
  transition: all 0.3s ease;
  font-weight: 500;
}

.s14c-mobile-nav-link:hover {
  background-color: rgba(152, 251, 152, 0.1);
  color: var(--s14c-primary);
  padding-left: 28px;
}

.s14c-mobile-nav-category {
  padding: 12px 20px;
  color: var(--s14c-primary);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  border-top: 1px solid var(--s14c-border);
  margin-top: 8px;
}

/* ===== MAIN CONTENT STYLES ===== */
main {
  padding-top: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}

.s14c-container {
  padding: 20px 16px;
}

.s14c-wrapper {
  background-color: rgba(45, 62, 80, 0.5);
  border: 1px solid var(--s14c-border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.s14c-section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--s14c-primary);
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.s14c-subsection-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--s14c-primary-light);
  margin-top: 20px;
  margin-bottom: 16px;
}

/* ===== CAROUSEL STYLES ===== */
.s14c-carousel {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  height: 200px;
}

@media (min-width: 481px) {
  .s14c-carousel {
    height: 280px;
  }
}

.s14c-carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.s14c-carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.s14c-carousel-slide.s14c-active {
  opacity: 1;
}

.s14c-carousel-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.s14c-carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
  color: var(--s14c-primary);
  font-weight: 600;
  z-index: 2;
}

.s14c-carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.s14c-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.s14c-carousel-dot.s14c-active {
  background-color: var(--s14c-primary);
  width: 24px;
  border-radius: 5px;
}

/* ===== GAME GRID STYLES ===== */
.s14c-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 481px) {
  .s14c-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
  }
}

@media (min-width: 769px) {
  .s14c-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

.s14c-game-card {
  background: linear-gradient(135deg, #2D3E50 0%, #1B263B 100%);
  border: 2px solid var(--s14c-border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.s14c-game-card:hover {
  border-color: var(--s14c-primary);
  transform: translateY(-6px);
  box-shadow: 0 8px 20px var(--s14c-shadow);
}

.s14c-game-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background-color: var(--s14c-gray);
}

.s14c-game-name {
  padding: 12px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--s14c-text);
  text-align: center;
  background-color: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--s14c-border);
}

.s14c-game-card.s14c-visible {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== FILTER BUTTONS ===== */
.s14c-filter-section {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.s14c-filter-btn {
  padding: 10px 20px;
  border: 2px solid var(--s14c-border);
  background-color: transparent;
  color: var(--s14c-text);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: capitalize;
}

.s14c-filter-btn:hover {
  border-color: var(--s14c-primary);
  color: var(--s14c-primary);
}

.s14c-filter-btn.s14c-active {
  background: linear-gradient(135deg, var(--s14c-primary), var(--s14c-accent));
  color: var(--s14c-dark-bg);
  border-color: var(--s14c-primary);
}

/* ===== FEATURE BOXES ===== */
.s14c-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 481px) {
  .s14c-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 769px) {
  .s14c-feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.s14c-feature-box {
  background: linear-gradient(135deg, rgba(152, 251, 152, 0.1), transparent);
  border: 2px solid var(--s14c-primary);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.s14c-feature-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px var(--s14c-shadow);
}

.s14c-feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.s14c-feature-title {
  font-weight: 700;
  color: var(--s14c-primary);
  margin-bottom: 8px;
  font-size: 16px;
}

.s14c-feature-text {
  font-size: 13px;
  color: var(--s14c-text);
  line-height: 1.5;
}

/* ===== BOTTOM NAVIGATION ===== */
.s14c-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #1B263B 0%, #0D1117 100%);
  border-top: 2px solid var(--s14c-primary);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: 64px;
  box-shadow: 0 -4px 12px var(--s14c-shadow);
}

@media (min-width: 769px) {
  .s14c-bottom-nav {
    display: none;
  }
}

.s14c-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: var(--s14c-text);
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px 4px;
}

.s14c-nav-item:hover {
  color: var(--s14c-primary);
}

.s14c-nav-item.s14c-active {
  color: var(--s14c-primary);
}

.s14c-nav-icon {
  font-size: 24px;
}

.s14c-nav-label {
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

/* ===== FOOTER STYLES ===== */
.s14c-footer {
  background: linear-gradient(180deg, #0D1117 0%, #000000 100%);
  border-top: 2px solid var(--s14c-primary);
  padding: 24px 16px;
  margin-top: 40px;
  color: var(--s14c-text);
}

.s14c-footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.s14c-footer-intro {
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.7;
}

.s14c-footer-intro a {
  color: var(--s14c-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.s14c-footer-intro a:hover {
  text-decoration: underline;
}

.s14c-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  font-size: 13px;
}

@media (min-width: 481px) {
  .s14c-footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

.s14c-footer-link {
  color: var(--s14c-text);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.s14c-footer-link:hover {
  color: var(--s14c-primary);
}

.s14c-partner-logos {
  margin-bottom: 24px;
}

.s14c-partners-title {
  color: var(--s14c-primary);
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 14px;
}

.s14c-logos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

@media (min-width: 481px) {
  .s14c-logos-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.s14c-partner-logo {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--s14c-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  padding: 4px;
}

.s14c-footer-bottom {
  border-top: 1px solid var(--s14c-border);
  padding-top: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--s14c-gray);
}

/* ===== TEXT CONTENT STYLES ===== */
.s14c-text-content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--s14c-text);
  margin-bottom: 16px;
}

.s14c-text-content h3 {
  color: var(--s14c-primary);
  margin: 20px 0 12px 0;
  font-size: 18px;
}

.s14c-text-content p {
  margin-bottom: 16px;
}

.s14c-text-content a {
  color: var(--s14c-accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.s14c-text-content a:hover {
  text-decoration: underline;
  color: var(--s14c-primary);
}

.s14c-text-content ul,
.s14c-text-content ol {
  margin: 12px 0 12px 20px;
}

.s14c-text-content li {
  margin-bottom: 8px;
}

/* ===== UTILITY CLASSES ===== */
.s14c-animated {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.s14c-hidden {
  display: none !important;
}

.s14c-text-center {
  text-align: center;
}

.s14c-mt-1 { margin-top: 8px; }
.s14c-mt-2 { margin-top: 16px; }
.s14c-mt-3 { margin-top: 24px; }
.s14c-mb-1 { margin-bottom: 8px; }
.s14c-mb-2 { margin-bottom: 16px; }
.s14c-mb-3 { margin-bottom: 24px; }

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 430px) {
  .s14c-header {
    padding: 10px 12px;
  }

  .s14c-section-title {
    font-size: 24px;
  }

  .s14c-subsection-title {
    font-size: 18px;
  }

  .s14c-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .s14c-wrapper {
    padding: 16px;
  }

  .s14c-text-content {
    font-size: 13px;
  }
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--s14c-dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--s14c-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--s14c-accent);
}

/* ===== TOOLTIP STYLES ===== */
.s14c-tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.9);
  color: var(--s14c-primary);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 10000;
  pointer-events: none;
  white-space: nowrap;
  border: 1px solid var(--s14c-primary);
}

/* ===== FOCUS AND ACCESSIBILITY ===== */
*:focus {
  outline: 2px solid var(--s14c-primary);
  outline-offset: 2px;
}

button:focus,
a:focus {
  outline: 2px solid var(--s14c-primary);
  outline-offset: 2px;
}

/* ===== ANIMATION AND TRANSITIONS ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
