/* NHS 111 - Main Stylesheet */
/* Prefix: s660- */
/* Color palette: #F5DEB3 #20B2AA #006400 #66CDAA #0C0C0C */

:root {
  --s660-primary: #20B2AA;
  --s660-accent: #66CDAA;
  --s660-dark: #006400;
  --s660-bg: #0C0C0C;
  --s660-surface: #1a1a1a;
  --s660-text: #F5DEB3;
  --s660-text-light: #66CDAA;
  --s660-border: #2a2a2a;
  --s660-gold: #F5DEB3;
  --s660-success: #20B2AA;
  --s660-font: 62.5%;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--s660-bg);
  color: var(--s660-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* Header */
.s660-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, #0C0C0C 0%, #1a2a1a 100%);
  border-bottom: 1px solid var(--s660-primary);
  z-index: 1000;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.s660-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.s660-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.s660-logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--s660-primary);
  letter-spacing: 0.5px;
}

.s660-header-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.s660-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.s660-btn-register {
  background: var(--s660-primary);
  color: #0C0C0C;
}

.s660-btn-login {
  background: transparent;
  color: var(--s660-primary);
  border: 1.5px solid var(--s660-primary);
}

.s660-btn:hover, .s660-btn:active {
  transform: scale(0.96);
  opacity: 0.9;
}

.s660-hamburger {
  background: none;
  border: none;
  color: var(--s660-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* Mobile Menu */
.s660-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 12, 12, 0.97);
  z-index: 9999;
  padding: 6rem 2rem 2rem;
}

.s660-mobile-menu a {
  display: block;
  padding: 1.2rem 0;
  color: var(--s660-text);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  border-bottom: 1px solid var(--s660-border);
  transition: color 0.2s;
}

.s660-mobile-menu a:hover {
  color: var(--s660-primary);
}

.s660-menu-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--s660-text);
  font-size: 2.4rem;
  cursor: pointer;
}

/* Main Content */
.s660-main {
  padding-top: 5.5rem;
  min-height: 100vh;
}

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

/* Carousel */
.s660-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
}

.s660-slide {
  display: none;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.s660-slide img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/7;
  object-fit: cover;
}

/* Section Styles */
.s660-section {
  padding: 1.5rem 1rem;
}

.s660-section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--s660-primary);
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--s660-accent);
}

/* Game Grid */
.s660-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.s660-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
  display: block;
}

.s660-game-item:hover {
  transform: scale(1.05);
}

.s660-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid var(--s660-border);
}

.s660-game-name {
  font-size: 1rem;
  color: var(--s660-text);
  margin-top: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Category Label */
.s660-cat-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--s660-gold);
  margin: 1.5rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Promo Card */
.s660-promo-card {
  background: linear-gradient(135deg, #1a2a1a 0%, #0C0C0C 100%);
  border: 1px solid var(--s660-primary);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.s660-promo-card h3 {
  color: var(--s660-primary);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.s660-promo-card p {
  font-size: 1.2rem;
  color: var(--s660-text);
  line-height: 1.6rem;
}

/* Feature Grid */
.s660-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.s660-feature-item {
  background: var(--s660-surface);
  border: 1px solid var(--s660-border);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
}

.s660-feature-item i, .s660-feature-item span.material-icons-outlined {
  font-size: 2.4rem;
  color: var(--s660-primary);
  margin-bottom: 0.5rem;
}

.s660-feature-item h4 {
  font-size: 1.2rem;
  color: var(--s660-gold);
  margin-bottom: 0.3rem;
}

.s660-feature-item p {
  font-size: 1rem;
  color: var(--s660-text);
}

/* Winner List */
.s660-winner-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem;
  border-bottom: 1px solid var(--s660-border);
  font-size: 1.1rem;
}

.s660-winner-name { color: var(--s660-primary); font-weight: 600; }
.s660-winner-game { color: var(--s660-text); }
.s660-winner-amount { color: var(--s660-gold); font-weight: 700; }

/* FAQ */
.s660-faq-item {
  background: var(--s660-surface);
  border: 1px solid var(--s660-border);
  border-radius: 8px;
  margin-bottom: 0.8rem;
  padding: 1rem 1.2rem;
}

.s660-faq-item h4 {
  color: var(--s660-primary);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.s660-faq-item p {
  font-size: 1.15rem;
  color: var(--s660-text);
  line-height: 1.5rem;
}

/* Payment Methods */
.s660-payment-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.s660-payment-badge {
  background: var(--s660-surface);
  border: 1px solid var(--s660-primary);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 1.1rem;
  color: var(--s660-accent);
  font-weight: 600;
}

/* Promo Link */
.s660-promo-link {
  color: var(--s660-primary);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.s660-promo-link:hover {
  color: var(--s660-accent);
}

/* CTA Button */
.s660-cta {
  display: block;
  width: 100%;
  padding: 1.4rem;
  background: linear-gradient(135deg, var(--s660-primary), var(--s660-dark));
  color: var(--s660-gold);
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin: 1rem 0;
  transition: all 0.3s ease;
  text-decoration: none;
}

.s660-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(32, 178, 170, 0.4);
}

/* Footer */
.s660-footer {
  background: var(--s660-surface);
  border-top: 1px solid var(--s660-border);
  padding: 2rem 1rem 3rem;
  text-align: center;
}

.s660-footer-desc {
  font-size: 1.1rem;
  color: var(--s660-text);
  margin-bottom: 1rem;
  line-height: 1.5rem;
}

.s660-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.s660-footer-links a {
  color: var(--s660-primary);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--s660-border);
  border-radius: 6px;
  transition: all 0.2s;
}

.s660-footer-links a:hover {
  background: var(--s660-primary);
  color: var(--s660-bg);
}

.s660-copyright {
  font-size: 1rem;
  color: #888;
  margin-top: 0.8rem;
}

/* Bottom Nav */
.s660-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #0f1a0f 0%, #0C0C0C 100%);
  border-top: 1.5px solid var(--s660-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
}

.s660-bottom-nav button {
  background: none;
  border: none;
  color: var(--s660-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 56px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  gap: 2px;
}

.s660-bottom-nav button i,
.s660-bottom-nav button span.material-icons,
.s660-bottom-nav button ion-icon {
  font-size: 22px;
}

.s660-bottom-nav button span.s660-nav-label {
  font-size: 1rem;
  font-weight: 600;
}

.s660-bottom-nav button:active {
  transform: scale(0.9);
  background: rgba(32, 178, 170, 0.15);
}

.s660-bottom-nav button.s660-active {
  color: var(--s660-primary);
}

@media (min-width: 769px) {
  .s660-bottom-nav { display: none; }
}

/* Content text */
.s660-content-text {
  font-size: 1.2rem;
  line-height: 1.7rem;
  color: var(--s660-text);
}

.s660-content-text p {
  margin-bottom: 0.8rem;
}

/* Internal link style */
.s660-internal-link {
  color: var(--s660-accent);
  text-decoration: underline;
  font-weight: 500;
}

/* About page specific */
.s660-about-section {
  margin-bottom: 1.5rem;
}

.s660-about-section h2 {
  font-size: 1.5rem;
  color: var(--s660-primary);
  margin-bottom: 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--s660-border);
}

.s660-about-section p, .s660-about-section li {
  font-size: 1.15rem;
  line-height: 1.6rem;
  color: var(--s660-text);
}

.s660-about-section ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.s660-about-section li {
  margin-bottom: 0.4rem;
}

/* Highlight text */
.s660-highlight {
  color: var(--s660-primary);
  font-weight: 700;
}

/* Responsive helpers */
.s660-text-center { text-align: center; }
.s660-mt-1 { margin-top: 0.8rem; }
.s660-mb-1 { margin-bottom: 0.8rem; }
.s660-mb-2 { margin-bottom: 1.5rem; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--s660-bg); }
::-webkit-scrollbar-thumb { background: var(--s660-primary); border-radius: 4px; }
