/* HorosCode SellerShops — Background Templates Hub */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #6c63ff;
  --accent: #00d4ff;
  --bg: #0a0a0f;
  --bg-card: #111118;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8e8f0;
  --text-muted: #8888a8;
  --gradient: linear-gradient(135deg, var(--primary), var(--accent));
  --radius: 14px;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10001;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
}
.skip-link:focus-visible {
  top: 0;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header */
.bg-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0;
  padding-top: max(14px, env(safe-area-inset-top));
}

.bg-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bg-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.bg-logo strong { color: var(--accent); }

.bg-nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.bg-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.bg-nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
}

/* Hero */
.bg-hero {
  padding: 64px 0 48px;
  text-align: center;
}

.bg-hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.bg-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  text-wrap: balance;
}

.bg-hero-lead {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.bg-hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
}

.bg-hero-features li {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Grid */
.bg-section {
  padding: 48px 0 80px;
}

.bg-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.bg-section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 8px;
}

.bg-section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.bg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  list-style: none;
}

.bg-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.bg-card:hover {
  border-color: rgba(108, 99, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(108, 99, 255, 0.12);
}

.bg-card-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #000;
  overflow: hidden;
}

.bg-card-preview iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  border: 0;
  transform: scale(0.5);
  transform-origin: top left;
  pointer-events: none;
}

.bg-card-preview--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.bg-card-body {
  padding: 20px;
}

.bg-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.bg-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.55;
}

.bg-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin-bottom: 16px;
}

.bg-card-tags li {
  font-size: 0.7rem;
  padding: 4px 10px;
  background: rgba(108, 99, 255, 0.12);
  border-radius: 6px;
  color: var(--accent);
}

.bg-card-actions {
  display: flex;
  gap: 8px;
}

.bg-card-actions .btn {
  flex: 1;
  font-size: 0.85rem;
  padding: 10px 14px;
}

.bg-card--bonus {
  border-color: rgba(0, 212, 255, 0.2);
}

.bg-card--bonus .bg-card-preview {
  background: linear-gradient(135deg, #1a1030, #0a1828);
}

/* Info strip */
.bg-info {
  padding: 32px 0;
  background: rgba(17, 17, 24, 0.6);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bg-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  list-style: none;
}

.bg-info-grid h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.bg-info-grid p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.bg-footer {
  padding: 40px 0 24px;
  border-top: 1px solid var(--border);
}

.bg-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.bg-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.bg-footer nav {
  display: flex;
  gap: 20px;
}

.bg-footer nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.bg-footer nav a:hover { color: var(--text); }

@media (max-width: 640px) {
  .bg-nav-links { display: none; }
  .bg-card-actions { flex-direction: column; }
}
