/* Cometcoinclub — main styles */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Outfit:wght@300;400;500;600;700&display=swap");

:root {
  --bg-dark: #0f1419;
  --bg-card: #1a222c;
  --bg-elevated: #232d3a;
  --text: #e8ecf0;
  --text-muted: #8b9aaa;
  --accent: #e8a84a;
  --accent-hover: #f0bc6a;
  --border: rgba(232, 168, 74, 0.25);
  --success: #5cb88a;
  --radius: 14px;
  --radius-sm: 8px;
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background-image: radial-gradient(
    ellipse 120% 80% at 50% -20%,
    rgba(232, 168, 74, 0.08),
    transparent 50%
  );
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent-hover);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
}
.logo-link:hover {
  color: var(--accent);
}
.logo-link img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-top {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.nav-top a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-top a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition:
    background var(--transition),
    transform 0.15s ease;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--accent);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #c9862e);
  color: #0f1419;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  transform: translateY(-1px);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: var(--transition);
}
.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.burger-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 99;
  padding: 4rem 1.5rem 1.5rem;
  flex-direction: column;
  gap: 1rem;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
}
.burger-menu.open {
  display: flex;
}
.burger-menu a {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text);
}
.burger-menu a:hover {
  background: var(--bg-elevated);
  color: var(--accent);
}
.burger-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 98;
}
.burger-overlay.open {
  display: block;
}

/* Main content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 1rem 4rem;
  border-bottom: 1px solid var(--border);
}
.hero-badge {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.hero .disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.hero-desc {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.hero-desc strong {
  color: var(--accent);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.hero-notice {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* Section titles */
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  text-align: center;
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
  display: inline-block;
  width: 100%;
}

.games-login-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: -0.5rem 0 1rem;
}
body.logged-in .games-login-hint {
  display: none;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
.card:hover {
  border-color: rgba(232, 168, 74, 0.45);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon i {
  font-size: inherit;
  color: var(--accent);
}
.card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Game cards */
.game-card .card-icon {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Why section list */
.why-list {
  list-style: none;
  max-width: 640px;
  margin: 2rem auto;
}
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.why-list li:last-child {
  border-bottom: none;
}
.why-list strong {
  color: var(--accent);
  min-width: 140px;
}
.why-list span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* FAQ / Quick help */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.faq-item h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}
.faq-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact form */
.contact-section {
  max-width: 520px;
  margin: 2rem auto 3rem;
}
.contact-section p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* Safe play block */
.safe-play {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 3rem 0 2rem;
  text-align: center;
}
.safe-play h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--text);
}
.safe-play-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.safe-play-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.safe-play-logos a {
  display: block;
  transition: opacity var(--transition);
}
.safe-play-logos a:hover {
  opacity: 0.85;
}
.safe-play-logos img {
  width: 120px;
  height: 50px;
  object-fit: contain;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-inner h4 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.footer-inner ul {
  list-style: none;
}
.footer-inner li {
  margin-bottom: 0.4rem;
}
.footer-inner a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-inner a:hover {
  color: var(--accent);
}
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Page hero (inner pages) */
.page-hero {
  text-align: center;
  padding: 2rem 1rem 3rem;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Auth pages */
.auth-wrap {
  max-width: 420px;
  margin: 2rem auto 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.auth-wrap h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.auth-wrap .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 0.85rem;
  margin-top: 0.5rem;
}
.auth-wrap .form-group {
  margin-bottom: 1.25rem;
}
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Popups — hidden by default, shown via JS when needed */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.popup-overlay.visible {
  display: flex;
}
.popup-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 440px;
  width: 100%;
  padding: 2rem;
  text-align: center;
}
.popup-box h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--accent);
}
.popup-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.popup-box .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 0.85rem;
}

/* Block with image */
.section-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
}
.section-with-image img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
@media (max-width: 768px) {
  .section-with-image {
    grid-template-columns: 1fr;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-top {
    display: none;
  }
  .header-actions {
    display: none;
  }
  .burger {
    display: flex;
  }
  .hero {
    padding: 2rem 0.5rem 3rem;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0.5rem 1rem;
  }
  main {
    padding: 1.25rem 1rem 3rem;
  }
  .hero-cta {
    flex-direction: column;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}
