/* Promo Finder Bot — Main Stylesheet */
/* Based on Shrimp Dev Brand Design System v1.0 */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Crimson+Pro:ital,wght@0,400;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Fonts */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Crimson Pro', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Colors */
  --accent:       #ff6b35;
  --accent2:      #ff9f1c;
  --bg:           #0d0d0f;
  --bg2:          #141418;
  --bg3:          #1b1b21;
  --surface:      #1e1e26;
  --border:       #2a2a35;
  --text:         #e8e6f0;
  --muted:        #7a7890;
  --link:         #7eb8f7;

  /* Layout */
  --max:          1400px;
  --gap:          24px;
  --radius:       12px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Layout ─────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ── Header / Nav ───────────────────────────────── */
.header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}
.brand__logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}
.brand em {
  color: var(--accent);
  font-style: normal;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }

/* ── Hero ───────────────────────────────────────── */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--accent);
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: #e55a2b; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-ghost {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  background: transparent;
  border: 1.5px solid var(--accent);
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-ghost:hover { background: rgba(255,107,53,0.1); }

.btn-telegram {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: #0088cc;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-telegram:hover { background: #006da3; }

/* ── Section ────────────────────────────────────── */
.section {
  padding: 3rem 0;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}
.section-subtitle {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ── Group Cards ────────────────────────────────── */
.group-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}
.group-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.group-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}
.group-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.group-card__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.tag-pill {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.btn-telegram-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: #0088cc;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-telegram-sm:hover { background: #006da3; }

/* ── Product Grid ───────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 1.25rem;
}

/* ── Product Card ───────────────────────────────── */
.product-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: rgba(255,107,53,0.4);
  transform: translateY(-2px);
}
.product-card__img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg3);
  position: relative;
}
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .product-card__img { transform: scale(1.04); }

/* Pre-order badge */
.product-card__preorder {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent2);
  color: #000;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 10;
}

/* Deal quality (fire) badge */
.product-card__quality {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.9rem;
  line-height: 1;
  z-index: 10;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.product-card__body {
  padding: 0.75rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-card__name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__name a:hover { color: var(--accent); }
.product-card__price {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
}
.product-card__original {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: line-through;
}
.product-card__discount {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent2);
}
.product-card__footer {
  padding: 0.5rem 1rem 0.75rem;
  display: flex;
  gap: 8px;
}
.product-card__buy {
  flex: 1;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 12px;
  border-radius: 6px;
  text-align: center;
  transition: background 0.15s;
}
.product-card__buy:hover { background: rgba(255,107,53,0.1); }

/* ── Ad Spaces ──────────────────────────────────── */
.ad-space {
  background: var(--bg3);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}
.ad-space__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── Loading States ─────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg3) 25%, var(--surface) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13,13,15,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  gap: 1rem;
}
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--muted);
}
.queue-position {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

/* ── Footer ─────────────────────────────────────── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.footer__logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}
.footer__brand em { color: var(--accent); font-style: normal; }
.footer__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.footer__links a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s;
}
.footer__links a:hover { color: var(--accent); }
.footer__sep {
  color: var(--border);
}
.footer__copy {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--muted);
}

/* ── Source Badge ────────────────────────────────── */
.product-card__source {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 10;
  background: rgba(0,0,0,0.6);
  color: #fff;
}

/* ── Stat Card ───────────────────────────────────── */
.stat-card {
  min-height: 120px;
  justify-content: center;
}

/* ── Telegram Group Card ─────────────────────────── */
.telegram-card {
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.telegram-card:hover {
  border-color: #0088cc;
  transform: translateY(-3px);
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.6rem; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .nav-links { display: none; }
  .group-card__header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
