/* TH777 - Theme Stylesheet */
/* All classes use s5e1 prefix for namespace isolation */

:root {
  --s5e1-bg-dark: #0E1621;
  --s5e1-bg-darker: #0a0f15;
  --s5e1-bg-primary: #006400;
  --s5e1-text: #ADFF2F;
  --s5e1-white: #FFFFFF;
  --s5e1-accent: #2E8B57;
  --s5e1-accent2: #ADFF2F;
  --s5e1-green: #00FF00;
  --s5e1-font-size-base: 62.5%;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--s5e1-font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--s5e1-bg-dark);
  color: var(--s5e1-text);
  line-height: 1.5rem;
  font-size: 1.6rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
}

.s5e1-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.s5e1-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--s5e1-bg-primary), var(--s5e1-accent));
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 1000;
}

.s5e1-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
}

.s5e1-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--s5e1-white);
  font-weight: bold;
  font-size: 1.4rem;
}

.s5e1-logo-icon {
  width: 28px;
  height: 28px;
  margin-right: 0.5rem;
  color: var(--s5e1-accent2);
}

.s5e1-header-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.s5e1-menu-toggle {
  background: none;
  border: none;
  color: var(--s5e1-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.s5e1-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.s5e1-btn-register {
  background: var(--s5e1-accent2);
  color: var(--s5e1-bg-dark);
}

.s5e1-btn-register:hover {
  background: #ccff33;
  transform: scale(1.05);
}

.s5e1-btn-login {
  background: transparent;
  color: var(--s5e1-white);
  border: 2px solid var(--s5e1-white);
}

.s5e1-btn-login:hover {
  background: var(--s5e1-white);
  color: var(--s5e1-bg-primary);
}

.s5e1-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

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

.s5e1-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--s5e1-bg-darker);
  padding: 4rem 1.5rem 2rem;
  transition: right 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
}

.s5e1-menu-active {
  right: 0;
}

.s5e1-mobile-link {
  display: flex;
  align-items: center;
  padding: 1rem;
  color: var(--s5e1-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(173,255,47,0.1);
  transition: all 0.2s ease;
}

.s5e1-mobile-link:hover {
  background: var(--s5e1-bg-primary);
  color: var(--s5e1-white);
  padding-left: 1.5rem;
}

.s5e1-mobile-link i {
  margin-right: 0.8rem;
  width: 20px;
  text-align: center;
}

.s5e1-main {
  padding-top: 70px;
  padding-bottom: 80px;
  min-height: calc(100vh - 150px);
}

.s5e1-card {
  background: var(--s5e1-bg-darker);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border: 1px solid var(--s5e1-accent);
}

.s5e1-card-title {
  color: var(--s5e1-accent2);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.s5e1-card-content {
  color: var(--s5e1-text);
  line-height: 1.7;
}

.s5e1-text-highlight {
  color: var(--s5e1-accent2);
}

.s5e1-text-center {
  text-align: center;
}

.s5e1-mt-1 {
  margin-top: 1rem;
}

.s5e1-mt-2 {
  margin-top: 2rem;
}

.s5e1-carousel {
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
}

.s5e1-carousel img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.s5e1-carousel img:hover {
  transform: scale(1.02);
}

.s5e1-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
}

.s5e1-game-item {
  background: var(--s5e1-bg-dark);
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.s5e1-game-item:hover {
  border-color: var(--s5e1-accent2);
  transform: scale(1.05);
}

.s5e1-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.3rem;
}

.s5e1-game-name {
  display: block;
  font-size: 0.9rem;
  color: var(--s5e1-white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s5e1-footer {
  background: var(--s5e1-bg-darker);
  padding: 2rem 1rem 1rem;
  text-align: center;
}

.s5e1-footer-title {
  color: var(--s5e1-accent2);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.s5e1-footer-text {
  color: var(--s5e1-text);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.s5e1-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.s5e1-partners img {
  width: 50px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.s5e1-partners img:hover {
  opacity: 1;
}

.s5e1-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(to top, var(--s5e1-bg-darker), var(--s5e1-bg-dark));
  border-top: 2px solid var(--s5e1-accent);
  z-index: 1000;
}

.s5e1-bottom-nav-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0;
  height: 60px;
}

.s5e1-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--s5e1-text);
  min-width: 60px;
  min-height: 60px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.s5e1-nav-item:active {
  transform: scale(0.95);
}

.s5e1-nav-icon {
  font-size: 22px;
  margin-bottom: 0.2rem;
  color: var(--s5e1-accent2);
}

.s5e1-nav-label {
  font-size: 0.9rem;
  color: var(--s5e1-text);
}

.s5e1-nav-item:hover .s5e1-nav-label {
  color: var(--s5e1-white);
}

.s5e1-touch-active {
  transform: scale(0.9);
}

a {
  color: var(--s5e1-accent2);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--s5e1-green);
}

strong {
  color: var(--s5e1-white);
}

@media (min-width: 769px) {
  .s5e1-bottom-nav {
    display: none;
  }
  .s5e1-main {
    padding-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .s5e1-main {
    padding-bottom: 80px;
  }
}
