/*
Theme Name: BizSkillDigi Ebook Store
Theme URI: https://bizskilldigi.bizlivetech.com/
Author: BizLiveTech
Description: Branded dark-luxe digital products & eBook storefront with custom hero showcase artwork, searchable category tabs, bundled cover graphics, and WordPress-managed product listings.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: bizskilldigi
*/

:root {
  --bg: #070B14;
  --bg-soft: #0C1324;
  --surface: #0F172A;
  --surface-2: #162038;
  --primary: #06B6D4;
  --primary-light: #38BDF8;
  --accent: #7C3AED;
  --accent-light: #A78BFA;
  --gold: #F59E0B;
  --emerald: #10B981;
  --text: #F8FAFC;
  --text-soft: #CBD5E1;
  --muted: #94A3B8;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(56, 189, 248, 0.35);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(2, 6, 23, 0.55);
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap {
  width: min(1200px, calc(100% - 36px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img { max-height: 44px; width: auto; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #070B14;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-family: var(--font-display); font-size: 19px; font-weight: 800; color: #fff; }
.brand-text em { font-style: normal; color: var(--primary-light); font-weight: 800; }
.brand-text small { font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 2px; }

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--primary-light); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #38BDF8);
  color: #06101D;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(6, 182, 212, 0.42); }

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.22s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #38BDF8);
  color: #06101D;
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.34);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.48);
}
.btn-ghost {
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-strong);
  background: rgba(22, 32, 56, 0.9);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 68px 0 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(124, 58, 237, 0.2), transparent 40%),
    radial-gradient(circle at 84% 28%, rgba(6, 182, 212, 0.22), transparent 44%),
    linear-gradient(180deg, #070B14 0%, #0A1120 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 92%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: 44px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.11);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #67E8F9;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.75); }
  70% { box-shadow: 0 0 0 10px rgba(6, 182, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.85rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #FFFFFF 28%, #67E8F9 68%, #C4B5FD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p {
  font-size: 1.12rem;
  color: var(--text-soft);
  max-width: 540px;
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}
.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Hero Visual Showcase */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual-frame {
  position: relative;
  width: 100%;
  max-width: 560px;
  border-radius: 26px;
  animation: floatSlow 6s ease-in-out infinite;
}
.hero-visual-frame img {
  width: 100%;
  border-radius: 24px;
  filter: drop-shadow(0 28px 50px rgba(2, 6, 23, 0.65));
}
.hero-custom-img {
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-9px); }
}

/* Trust Strip */
.hero-strip {
  position: relative;
  z-index: 2;
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.strip-item {
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.strip-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.14);
  color: var(--primary-light);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.strip-item strong { display: block; font-size: 14.5px; color: #fff; }
.strip-item span { font-size: 12.5px; color: var(--muted); }

/* Promo Visual Banner */
.promo-banner-wrap {
  padding: 36px 0 12px;
}
.promo-banner-card {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.promo-banner-card img { width: 100%; display: block; }

/* Section Headings */
.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 10px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-heading.centered {
  justify-content: center;
  text-align: center;
}
.section-heading h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.section-heading h2 span {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-heading p { color: var(--muted); font-size: 1rem; }

/* Store Section */
.store-section {
  padding: 68px 0 56px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 16px;
  min-width: 280px;
  height: 48px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}
.search-box span { color: var(--muted); font-size: 18px; }
.search-box input {
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 14.5px;
  width: 100%;
  font-family: inherit;
}

.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.category-tab {
  background: var(--surface);
  color: var(--text-soft);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.category-tab:hover { border-color: var(--border-strong); color: #fff; }
.category-tab.active {
  background: linear-gradient(135deg, var(--primary), #38BDF8);
  color: #06101D;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(6, 182, 212, 0.28);
}

/* eBook Cards Grid */
.ebook-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.ebook-card {
  background: linear-gradient(180deg, rgba(22, 32, 56, 0.85), rgba(15, 23, 42, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}
.ebook-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.6);
}
.ebook-cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0B1224;
}
.ebook-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ebook-card:hover .ebook-cover img { transform: scale(1.04); }

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #FBBF24);
  color: #070B14;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

.ebook-info {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-category {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 8px;
}
.ebook-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}
.ebook-info h3 a:hover { color: var(--primary-light); }
.ebook-info p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 20px;
  flex: 1;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.card-bottom strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-light);
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.12);
  transition: background 0.2s ease, color 0.2s ease;
}
.card-link:hover {
  background: var(--primary);
  color: #06101D;
}

.sample-notice {
  grid-column: 1 / -1;
  background: rgba(6, 182, 212, 0.1);
  border: 1px dashed rgba(56, 189, 248, 0.45);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text-soft);
}
.sample-notice strong { color: #67E8F9; }

.no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 24px;
}

.store-bottom {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14.5px;
}
.store-bottom a { color: var(--primary-light); font-weight: 700; }

/* How It Works / Benefits */
.benefits {
  padding: 76px 0;
  background: linear-gradient(180deg, rgba(12, 19, 36, 0.4), rgba(15, 23, 42, 0.85), rgba(7, 11, 20, 0.4));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 38px;
}
.benefit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.benefit:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.benefit-art {
  width: 108px;
  margin-bottom: 18px;
}
.benefit-icon {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-light);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.benefit h3 { font-size: 1.25rem; margin-bottom: 10px; }
.benefit p { color: var(--muted); font-size: 0.95rem; }

/* Final CTA */
.final-cta-wrap { padding: 72px 0; }
.final-cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 48px 52px;
  background:
    radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.28), transparent 45%),
    radial-gradient(circle at 12% 85%, rgba(124, 58, 237, 0.3), transparent 45%),
    var(--surface);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.final-cta h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
}
.final-cta h2 span { color: var(--primary-light); }

/* Single Product Page */
.single-product, .archive {
  padding: 46px 0 80px;
}
.breadcrumb {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 28px;
}
.breadcrumb a:hover { color: var(--primary-light); }
.product-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 44px;
  align-items: start;
  margin-bottom: 48px;
}
.product-image {
  position: sticky;
  top: 96px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.product-image img { width: 100%; }
.product-content h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  margin-bottom: 18px;
}
.product-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 18px;
}
.product-price small { font-size: 0.95rem; color: var(--muted); font-weight: 600; }
.product-excerpt {
  font-size: 1.05rem;
  color: var(--text-soft);
  margin-bottom: 26px;
}
.product-buy { width: 100%; max-width: 340px; padding: 16px 28px; font-size: 16px; }
.product-highlights {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
}
.notice {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FDE68A;
  padding: 16px 18px;
  border-radius: 14px;
  margin-bottom: 16px;
}
.admin-download { margin-top: 14px; font-size: 13.5px; }
.admin-download a { color: var(--gold); text-decoration: underline; }
.secure-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.product-description {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  color: var(--text-soft);
  margin-bottom: 30px;
}
.product-description h2, .product-description h3 { color: #fff; margin: 20px 0 10px; }
.product-description p { margin-bottom: 14px; }
.product-description ul, .product-description ol { padding-left: 20px; margin-bottom: 14px; }
.back-store { display: inline-flex; color: var(--primary-light); font-weight: 700; }

/* Archive Head */
.archive-head { margin-bottom: 34px; }
.archive-head h1 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 10px; }
.archive-head h1 span { color: var(--primary-light); }
.archive-head p { color: var(--muted); font-size: 1.05rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #050811;
  padding: 58px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  display: inline-block;
  margin-bottom: 10px;
}
.site-footer p { color: var(--muted); font-size: 14.5px; max-width: 340px; margin-bottom: 10px; }
.site-footer small { color: var(--primary-light); font-weight: 600; }
.site-footer strong { display: block; font-size: 14px; color: #fff; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom {
  padding-top: 24px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Pagination */
.nav-links { display: flex; gap: 10px; margin-top: 32px; justify-content: center; }
.nav-links a, .nav-links span {
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
}
.nav-links .current { background: var(--primary); color: #06101D; border-color: transparent; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .product-layout { grid-template-columns: 1fr; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); }
  .ebook-grid, .benefit-grid, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-image { position: static; max-width: 420px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: grid; place-items: center; }
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(7, 11, 20, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 18px 24px 24px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 16px; }
  .header-cta { display: none; }
  .hero { padding: 44px 0 32px; }
  .hero-strip, .ebook-grid, .benefit-grid, .footer-grid { grid-template-columns: 1fr; }
  .search-box { width: 100%; }
  .final-cta { padding: 32px 24px; }
}
