/* MysteryShop - Global Styles */
:root {
  --primary: #6c47ff;
  --primary-dark: #5133cc;
  --primary-light: #ede9ff;
  --accent: #ff6b35;
  --bg: #0d0d14;
  --bg-card: #16161f;
  --bg-card2: #1e1e2a;
  --text: #f0f0f8;
  --text-muted: #8888aa;
  --border: #2a2a3a;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(108,71,255,0.15);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
nav {
  background: rgba(13,13,20,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* HERO */
.hero {
  background: linear-gradient(135deg, #0d0d14 0%, #1a1030 50%, #0d0d14 100%);
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(108,71,255,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 .highlight { color: var(--primary); }
.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
}
.btn-mystery {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 18px 44px;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 30px rgba(108,71,255,0.4);
  text-decoration: none;
}
.btn-mystery:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(108,71,255,0.5);
  text-decoration: none;
  color: white;
}
.btn-mystery:active { transform: translateY(0); }
.btn-mystery .btn-icon { font-size: 1.5rem; animation: spin-slow 4s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* SECTIONS */
.section { padding: 60px 24px; max-width: 1100px; margin: 0 auto; }
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-sub { color: var(--text-muted); margin-bottom: 32px; }

/* CATEGORY GRID */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  text-decoration: none;
  display: block;
  color: var(--text);
}
.cat-card:hover {
  border-color: var(--primary);
  background: var(--bg-card2);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--text);
}
.cat-icon { font-size: 2rem; margin-bottom: 8px; }
.cat-name { font-size: 0.85rem; font-weight: 600; }
.cat-count { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* STORE CARD */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.store-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.store-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.store-cat-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  background: var(--primary-light);
  color: var(--primary);
}
.store-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.store-desc { font-size: 0.88rem; color: var(--text-muted); flex-grow: 1; margin-bottom: 14px; }
.store-price { font-size: 0.8rem; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.store-card a { font-size: 0.85rem; color: var(--primary); }

/* SINGLE STORE PAGE */
.store-page { max-width: 700px; margin: 0 auto; padding: 50px 24px; }
.store-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.store-page h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; }
.store-page .store-desc-long { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
}
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.info-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.info-value { font-size: 1rem; font-weight: 600; }
.info-value.price { color: var(--accent); }

.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.btn-visit:hover { transform: translateY(-2px); text-decoration: none; color: white; }
.btn-another {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card2);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 50px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
}
.btn-another:hover { border-color: var(--primary); transform: translateY(-2px); text-decoration: none; color: var(--text); }

.related-section { margin-top: 50px; }
.related-section h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }

/* ADS */
.ad-slot {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 20px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CATEGORY PAGE */
.cat-page-header {
  background: linear-gradient(135deg, var(--bg), var(--bg-card2));
  border-bottom: 1px solid var(--border);
  padding: 50px 24px;
  text-align: center;
}
.cat-page-icon { font-size: 3rem; margin-bottom: 12px; }
.cat-page-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.cat-page-header p { color: var(--text-muted); max-width: 500px; margin: 0 auto; }

/* FOOTER */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  margin-top: 60px;
  text-align: center;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--text); }
.footer-disclosure {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 12px;
  line-height: 1.6;
}
.footer-copy { font-size: 0.78rem; color: var(--text-muted); }

/* BREADCRUMB */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); text-decoration: none; }
.breadcrumb span { opacity: 0.5; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .hero { padding: 60px 16px 40px; }
  .btn-mystery { font-size: 1rem; padding: 14px 30px; }
  .hero-stats { gap: 24px; }
  .info-grid { grid-template-columns: 1fr; }
  .store-page h1 { font-size: 1.8rem; }
  .nav-links { display: none; }
  .btn-group { flex-direction: column; }
  .btn-group a, .btn-group button { width: 100%; justify-content: center; }
}

/* LOADING SPINNER */
.spinner {
  display: none;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading .spinner { display: block; }
.loading .btn-icon { display: none; }
