/*
Theme Name:       IndoVibe Studio
Theme URI:        https://indovibestudio.com
Author:           IndoVibe Studio
Author URI:       https://indovibestudio.com
Description:      Dark, modern, ad-optimized theme for selling free & premium music sample packs. Built-in Adsterra ad slots, SEO schema, a "Packs" post type, and Elementor-compatible normal post templates.
Version:          1.0.1
License:          GNU General Public License v2 or later
License URI:      https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:      indovibe
Tags:             music, store, dark, ads, samples, grid-layout, responsive
*/


/* ============================================================
   INDOVIBE STUDIO — Music Sample Pack Theme
   Modern dark theme · Ad-first layout · SEO-friendly markup
   Edit brand colors in :root below
   ============================================================ */

:root {
  --bg:          #0a0c10;
  --surface:     #11141b;
  --surface-2:   #171b24;
  --border:      rgba(255, 255, 255, 0.08);
  --text:        #f2f5fa;
  --muted:       #98a2b3;
  --accent:      #8b5cf6;   /* violet   */
  --accent-soft: rgba(139, 92, 246, 0.14);
  --lime:        #d4f34e;   /* lime     */
  --lime-soft:   rgba(212, 243, 78, 0.12);
  --danger:      #ff5470;
  --radius:      14px;
  --radius-sm:   10px;
  --shadow:      0 10px 30px rgba(0, 0, 0, 0.35);
  --gradient:    linear-gradient(90deg, #a78bfa, #d4f34e);
  --font-head:   "Sora", sans-serif;
  --font-body:   "Inter", sans-serif;
  --container:   1200px;
  --header-h:    68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--lime); color: #111; padding: 10px 16px;
  border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 28px; width: 100%; }
.logo {
  font-family: var(--font-head);
  font-size: 1.25rem; font-weight: 800; letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.logo .bolt {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--gradient); display: grid; place-items: center;
  color: #111; font-size: 1rem;
}
.logo span em { font-style: normal; color: var(--lime); }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a {
  padding: 8px 14px; border-radius: 999px;
  color: var(--muted); font-weight: 500; font-size: 0.92rem;
  transition: color .2s, background .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); background: var(--surface-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px;
  font-weight: 700; font-size: 0.92rem; line-height: 1;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-lime { background: var(--lime); color: #14170a; }
.btn-lime:hover { box-shadow: 0 6px 24px rgba(212, 243, 78, 0.35); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-violet { background: var(--accent); color: #fff; }
.btn-violet:hover { box-shadow: 0 6px 24px rgba(139, 92, 246, 0.4); }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); }
.menu-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 76px 0 60px;
  background:
    radial-gradient(700px 320px at 15% 0%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(600px 300px at 90% 20%, rgba(212, 243, 78, 0.10), transparent 60%);
}
.hero-inner { max-width: 760px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--lime); background: var(--lime-soft);
  border: 1px solid rgba(212, 243, 78, 0.25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
  line-height: 1.08; letter-spacing: -1.5px; margin-bottom: 18px;
}
.hero h1 .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 1.08rem; max-width: 560px; margin-bottom: 28px; }
.hero-search {
  display: flex; gap: 10px; max-width: 560px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 6px 6px 20px; align-items: center;
}
.hero-search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 0.95rem; font-family: inherit; min-width: 0;
}
.hero-search input::placeholder { color: var(--muted); }
.hero-stats { display: flex; gap: 36px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats .stat b { font-family: var(--font-head); font-size: 1.5rem; display: block; }
.hero-stats .stat span { color: var(--muted); font-size: 0.85rem; }

/* ---------- Genre ticker ---------- */
.ticker {
  border-block: 1px solid var(--border);
  overflow: hidden; padding: 14px 0;
  background: var(--surface);
}
.ticker-track { display: flex; gap: 44px; width: max-content; animation: scroll 26s linear infinite; }
.ticker-track span {
  font-family: var(--font-head); font-weight: 600; font-size: 0.9rem;
  color: var(--muted); letter-spacing: 1px; text-transform: uppercase;
  display: flex; align-items: center; gap: 44px; white-space: nowrap;
}
.ticker-track span::after { content: "✦"; color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Layout: content + ad sidebar ---------- */
.layout {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 40px; padding: 48px 0 64px; align-items: start;
}
.content { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: calc(var(--header-h) + 20px); }
.sidebar-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.sidebar-card h3 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 10px; }
.sidebar-card p { color: var(--muted); font-size: 0.88rem; margin-bottom: 16px; }

/* ---------- Section headings ---------- */
.section { margin-bottom: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 {
  font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.5px; display: flex; align-items: center; gap: 12px;
}
.section-head h2::before {
  content: ""; width: 4px; height: 26px; border-radius: 4px; background: var(--gradient);
}
.section-head .view-all { color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.section-head .view-all:hover { color: var(--lime); }

/* ---------- Filter chips ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.chip {
  padding: 8px 18px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--border); color: var(--muted); background: var(--surface);
  transition: all .2s;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Pack cards ---------- */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.pack-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.pack-card:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, 0.5); box-shadow: var(--shadow); }
.pack-art {
  position: relative; aspect-ratio: 1 / 0.72; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c1, #8b5cf6), var(--c2, #312e81));
  overflow: hidden;
}
.pack-art .wave { width: 56%; opacity: 0.9; }
.pack-art .badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 1px;
  padding: 5px 11px; border-radius: 999px; text-transform: uppercase;
}
.badge-free     { background: var(--lime); color: #14170a; }
.badge-premium  { background: rgba(10, 12, 16, 0.75); color: var(--lime); border: 1px solid rgba(212,243,78,.4); backdrop-filter: blur(4px); }
.pack-play {
  position: absolute; right: 12px; bottom: 12px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10, 12, 16, 0.7); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
  display: grid; place-items: center; transition: background .2s, transform .15s;
}
.pack-play:hover { background: var(--accent); transform: scale(1.08); }
.pack-play svg { width: 16px; height: 16px; fill: #fff; }
.pack-play .icon-pause { display: none; }
.pack-card.playing .icon-play { display: none; }
.pack-card.playing .icon-pause { display: block; }
.pack-card.playing .pack-art { outline: 2px solid var(--lime); outline-offset: -2px; }
.pack-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pack-body h3 { font-family: var(--font-head); font-size: 1.02rem; letter-spacing: -0.2px; }
.pack-body h3 a:hover { color: var(--lime); }
.pack-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pack-meta li {
  font-size: 0.72rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px;
}
.pack-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pack-foot .price { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; }
.pack-foot .price small { color: var(--muted); font-weight: 500; font-size: 0.75rem; display: block; }
.btn-sm { padding: 9px 16px; font-size: 0.82rem; }

/* ============================================================
   AD SLOTS — Adsterra optimized
   ============================================================ */
.ad-slot {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin: 28px auto; overflow: hidden;
}
.ad-slot .ad-label {
  font-size: 0.62rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); opacity: 0.7;
}
.ad-infeed {
  grid-column: 1 / -1;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0; background: transparent;
}


/* Responsive ad visibility */
.ad-desktop-only { display: flex; }
.ad-mobile-only  { display: none; }
@media (max-width: 767px) {
  .ad-desktop-only { display: none; }
  .ad-mobile-only  { display: flex; }
}
@media (max-width: 1023px) {
  .sidebar { position: static; }
  .ad-skyscraper { display: none; }   /* 300x600 only makes sense beside content */
}


/* ---------- Normal WordPress / Elementor single posts ---------- */
.single-post-layout { padding-top: 40px; }
.single-post { min-width: 0; }
.single-post-header { margin-bottom: 28px; }
.single-post-header .eyebrow {
  display: inline-flex; align-items: center;
  font-size: .75rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--lime);
  background: var(--lime-soft);
  border: 1px solid rgba(212,243,78,.25);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 14px;
}
.single-post-header h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1; letter-spacing: -1px; margin-bottom: 12px;
}
.single-post-meta { color: var(--muted); font-size: .88rem; display: flex; gap: 9px; flex-wrap: wrap; }
.single-post-featured-image { margin-bottom: 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.single-post-featured-image img { width: 100%; height: auto; }
.single-post-content { min-width: 0; }
.single-post-tags { margin-top: 30px; display: flex; gap: 8px; flex-wrap: wrap; }
.single-post-tags a { border: 1px solid var(--border); border-radius: 999px; padding: 6px 11px; color: var(--muted); font-size: .8rem; }
.single-post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }
.single-post-nav a { color: var(--text); font-weight: 600; }
.single-post-nav a:hover { color: var(--lime); }
.single-post-comments { margin-top: 40px; }
.page-links { margin-top: 28px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.why-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.why-card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 14px;
  font-size: 1.2rem;
}
.why-card h3 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 6px; }
.why-card p { color: var(--muted); font-size: 0.87rem; }

/* ---------- FAQ (SEO) ---------- */
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 0.95rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lime); font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 16px; color: var(--muted); font-size: 0.9rem; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(135deg, rgba(139,92,246,.16), rgba(212,243,78,.07));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 44px 32px; text-align: center;
}
.newsletter h2 { font-family: var(--font-head); font-size: 1.6rem; letter-spacing: -0.5px; margin-bottom: 8px; }
.newsletter p { color: var(--muted); margin-bottom: 22px; }
.newsletter form { display: flex; gap: 10px; max-width: 460px; margin-inline: auto; }
.newsletter input {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 12px 20px; color: var(--text);
  font-family: inherit; font-size: 0.92rem; outline: none; min-width: 0;
}
.newsletter input:focus { border-color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 24px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding: 52px 0 36px;
}
.footer-brand p { color: var(--muted); font-size: 0.88rem; margin-top: 12px; max-width: 300px; }
.site-footer h4 { font-family: var(--font-head); font-size: 0.95rem; margin-bottom: 14px; }
.site-footer li { margin-bottom: 9px; }
.site-footer li a { color: var(--muted); font-size: 0.88rem; }
.site-footer li a:hover { color: var(--lime); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 18px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--muted); font-size: 0.82rem;
}

/* ---------- Pack (single) page ---------- */
.breadcrumb { padding: 20px 0 0; color: var(--muted); font-size: 0.84rem; }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb span::before { content: "/"; margin: 0 8px; opacity: .5; }
.pack-hero {
  display: grid; grid-template-columns: 300px 1fr; gap: 32px;
  padding: 28px 0 40px; align-items: start;
}
.pack-hero .pack-art { border-radius: var(--radius); aspect-ratio: 1; border: 1px solid var(--border); }
.pack-hero h1 { font-family: var(--font-head); font-size: clamp(1.5rem, 3.4vw, 2.2rem); letter-spacing: -0.8px; margin: 10px 0 12px; }
.pack-hero .desc { color: var(--muted); max-width: 560px; margin-bottom: 20px; }
.pack-specs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.pack-specs li { font-size: 0.78rem; font-weight: 600; border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; color: var(--muted); }
.pack-specs li b { color: var(--text); font-weight: 700; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-row .price-tag { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; }
.cta-row .price-tag small { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.tracklist { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.track {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 16px;
}
.track:hover { border-color: rgba(139,92,246,.4); }
.track .t-play {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--border);
  display: grid; place-items: center;
}
.track .t-play:hover { background: var(--accent); }
.track .t-play svg { width: 12px; height: 12px; fill: var(--text); }
.track .t-name { flex: 1; min-width: 0; font-size: 0.9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track .t-time { color: var(--muted); font-size: 0.8rem; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.tag-row a { font-size: 0.76rem; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 5px 13px; }
.tag-row a:hover { color: var(--lime); border-color: var(--lime); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .layout { grid-template-columns: 1fr; }
  .pack-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; background: var(--surface);
    border-bottom: 1px solid var(--border); padding: 12px 16px 20px;
    transform: translateY(-130%); transition: transform .25s; margin: 0;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 12px 14px; }
  .menu-toggle { display: grid; place-items: center; }
  .header-actions .btn-ghost { display: none; }
  .pack-hero { grid-template-columns: 1fr; }
  .pack-hero .pack-art { max-width: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter form { flex-direction: column; }
  .newsletter .btn { width: 100%; }
}
@media (max-width: 480px) {
  .hero { padding: 52px 0 44px; }
  .hero-stats { gap: 22px; }
  .pack-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .pack-body h3 { font-size: 0.9rem; }
  .btn-sm { padding: 8px 12px; font-size: 0.76rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
