/* ═══════════════════════════════════════════════════════
   BeatVault Pro — Frontend CSS
   Dark Mode · Azul #1A6CF5 · Naranja #FF6B00 · Mobile First
═══════════════════════════════════════════════════════ */

:root {
  --bvp-bg:        #0A0A0A;
  --bvp-surface:   #111111;
  --bvp-surface2:  #1A1A1A;
  --bvp-border:    #252525;
  --bvp-text:      #F2F2F2;
  --bvp-muted:     #777;
  --bvp-orange:    #FF6B00;
  --bvp-orange-lg: linear-gradient(135deg,#FF6B00,#FF9500);
  --bvp-blue:      #1A6CF5;
  --bvp-blue-lg:   linear-gradient(135deg,#1A6CF5,#4F97FF);
  --bvp-green:     #22C55E;
  --bvp-card-r:    16px;
  --bvp-shadow:    0 8px 32px rgba(0,0,0,.6);
  --bvp-glow-o:    0 0 24px rgba(255,107,0,.35);
  --bvp-glow-b:    0 0 24px rgba(26,108,245,.35);
}

/* ══ GLOBAL ══ */
.bvp-catalog-wrapper,
.bvp-single-beat,
.bvp-platforms-page,
.bvp-licenses-page {
  color: var(--bvp-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ══ FILTER BAR ══ */
.bvp-filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  align-items: center;
}
.bvp-search-input,
.bvp-filter-select {
  background: var(--bvp-surface2);
  border: 1px solid var(--bvp-border);
  color: var(--bvp-text);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.bvp-search-input { flex: 1; min-width: 200px; }
.bvp-search-input:focus,
.bvp-filter-select:focus {
  border-color: var(--bvp-blue);
  box-shadow: 0 0 0 3px rgba(26,108,245,.2);
}
.bvp-filter-select option { background: var(--bvp-surface2); }

/* ══ BEATS GRID ══ */
.bvp-beats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ══ BEAT CARD ══ */
.bvp-beat-card {
  background: var(--bvp-surface);
  border: 1px solid var(--bvp-border);
  border-radius: var(--bvp-card-r);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  box-shadow: var(--bvp-shadow);
  display: flex;
  flex-direction: column;
}
.bvp-beat-card:hover {
  transform: translateY(-6px);
  border-color: var(--bvp-orange);
  box-shadow: var(--bvp-glow-o);
}

.bvp-card-image {
  position: relative;
  padding-top: 56%;
  background-size: cover;
  background-position: center;
  background-color: var(--bvp-surface2);
}
.bvp-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
}
.bvp-beat-card:hover .bvp-card-overlay { opacity: 1; }
.bvp-play-btn {
  width: 60px; height: 60px;
  background: var(--bvp-orange-lg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--bvp-glow-o);
  transition: transform .2s;
}
.bvp-play-btn:hover { transform: scale(1.1); }
.bvp-play-btn svg { width: 26px; height: 26px; margin-left: 3px; }

.bvp-card-price {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--bvp-orange-lg);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.bvp-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bvp-card-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}
.bvp-card-title a { color: var(--bvp-text) !important; text-decoration: none !important; }
.bvp-card-title a:hover { color: var(--bvp-orange) !important; }
.bvp-card-desc { font-size: 13px; color: var(--bvp-muted); margin: 0; line-height: 1.5; }

.bvp-card-meta {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.bvp-meta-pill {
  background: var(--bvp-surface2);
  border: 1px solid var(--bvp-border);
  color: var(--bvp-muted);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
}

.bvp-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.bvp-tag {
  background: rgba(26,108,245,.15);
  color: var(--bvp-blue);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.bvp-tag.bvp-genre { background: rgba(255,107,0,.12); color: var(--bvp-orange); }

/* ══ BUY BUTTON ══ */
.bvp-buy-btn {
  display: block;
  text-align: center;
  background: var(--bvp-orange-lg);
  color: #fff !important;
  text-decoration: none !important;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  margin-top: auto;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 4px 16px rgba(255,107,0,.3);
}
.bvp-buy-btn:hover {
  opacity: .88;
  transform: translateY(-1px);
  box-shadow: var(--bvp-glow-o);
}

/* ══ SINGLE BEAT ══ */
.bvp-beat-hero {
  position: relative;
  min-height: 380px;
  background-size: cover;
  background-position: center;
  background-color: var(--bvp-surface2);
  border-radius: var(--bvp-card-r);
  overflow: hidden;
  margin-bottom: 32px;
}
.bvp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}
.bvp-beat-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  color: #fff !important;
  margin: 0 0 16px !important;
  text-shadow: 0 2px 16px rgba(0,0,0,.7);
  line-height: 1.1;
}
.bvp-beat-meta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.bvp-meta-badge {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
}

/* ══ PLAYER ══ */
.bvp-player-section { margin-bottom: 40px; }
.bvp-yt-wrapper,
.bvp-sp-wrapper {
  border-radius: var(--bvp-card-r);
  overflow: hidden;
  box-shadow: var(--bvp-shadow);
  border: 1px solid var(--bvp-border);
}
.bvp-yt-wrapper iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
}
.bvp-sp-wrapper iframe {
  width: 100%;
  height: 152px;
  display: block;
}

/* ══ BEAT CONTENT WRAP ══ */
.bvp-beat-content-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media(max-width:768px) { .bvp-beat-content-wrap { grid-template-columns: 1fr; } }

.bvp-beat-description h2 {
  font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--bvp-text) !important;
}
.bvp-beat-body { color: var(--bvp-muted); line-height: 1.7; font-size: 15px; }
.bvp-tags-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* ══ LICENSE CARDS ══ */
.bvp-licenses-panel h2 {
  font-size: 20px; font-weight: 700; margin-bottom: 20px; color: var(--bvp-text) !important;
}
.bvp-license-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bvp-license-card {
  background: var(--bvp-surface2);
  border: 1px solid var(--bvp-border);
  border-radius: var(--bvp-card-r);
  padding: 24px;
  position: relative;
  transition: border-color .2s, box-shadow .2s;
}
.bvp-license-card:hover { border-color: var(--bvp-blue); box-shadow: var(--bvp-glow-b); }
.bvp-license-featured {
  border-color: var(--bvp-orange);
  box-shadow: var(--bvp-glow-o);
}
.bvp-badge-popular {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--bvp-orange-lg);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: var(--bvp-glow-o);
}
.bvp-lic-icon  { font-size: 28px; margin-bottom: 8px; }
.bvp-lic-name  { font-size: 17px; font-weight: 700; margin: 0 0 6px; color: var(--bvp-text) !important; }
.bvp-lic-price { font-size: 26px; font-weight: 900; color: var(--bvp-orange); margin-bottom: 14px; }
.bvp-lic-features { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 6px; }
.bvp-lic-features li { font-size: 13px; color: var(--bvp-muted); display: flex; gap: 8px; align-items: center; }
.bvp-lic-btn { font-size: 13px; padding: 10px 16px; }

/* ══ PLATFORMS PAGE ══ */
.bvp-platform-hero { margin-bottom: 40px; border-radius: var(--bvp-card-r); overflow: hidden; }
.bvp-platform-hero-img { width: 100%; max-height: 300px; object-fit: cover; display: block; }
.bvp-section { margin-bottom: 48px; }
.bvp-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--bvp-text) !important;
  margin-bottom: 20px !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bvp-section-title span {
  background: var(--bvp-surface2);
  border: 1px solid var(--bvp-border);
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.bvp-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.bvp-platform-btn {
  background: var(--bvp-surface2);
  border: 1px solid var(--bvp-border);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  text-decoration: none !important;
  color: var(--bvp-text) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.bvp-platform-btn:hover {
  border-color: var(--platform-color, var(--bvp-orange));
  box-shadow: 0 0 16px color-mix(in srgb, var(--platform-color, var(--bvp-orange)) 40%, transparent);
  transform: translateY(-3px);
  color: var(--platform-color, var(--bvp-orange)) !important;
}
.bvp-picon { font-size: 28px; }

/* ══ LICENSES PAGE ══ */
.bvp-page-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  text-align: center;
  margin-bottom: 8px !important;
  background: var(--bvp-orange-lg);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bvp-page-subtitle { text-align: center; color: var(--bvp-muted); margin-bottom: 40px; font-size: 16px; }
.bvp-lic-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--bvp-text);
  font-size: 14px;
  overflow: hidden;
  border-radius: var(--bvp-card-r);
  border: 1px solid var(--bvp-border);
}
.bvp-lic-table th {
  padding: 14px 18px;
  background: var(--bvp-surface2);
  font-weight: 700;
  border-bottom: 1px solid var(--bvp-border);
  text-align: center;
}
.bvp-lic-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--bvp-border);
  text-align: center;
}
.bvp-lic-table tbody tr:hover td { background: var(--bvp-surface2); }
.bvp-lic-table td:first-child { text-align: left; font-weight: 600; }
.bvp-col-basic   { color: var(--bvp-green); }
.bvp-col-premium { color: var(--bvp-blue); }
.bvp-col-exclusive { color: var(--bvp-orange); }

/* ══ THANK YOU PAGE ══ */
.bvp-thankyou {
  background: rgba(34,197,94,.1);
  border: 1px solid var(--bvp-green);
  border-radius: 10px;
  padding: 16px 20px;
  color: #86efac;
  font-size: 15px;
  margin: 20px 0;
}

/* ══ NO BEATS ══ */
.bvp-no-beats {
  grid-column: 1/-1;
  text-align: center;
  color: var(--bvp-muted);
  padding: 60px 20px;
  font-size: 16px;
}

/* ══ RESPONSIVE ══ */
@media(max-width:600px) {
  .bvp-beats-grid { grid-template-columns: 1fr; }
  .bvp-platform-grid { grid-template-columns: repeat(2,1fr); }
  .bvp-hero-overlay { padding: 24px; }
  .bvp-lic-table { font-size: 12px; }
  .bvp-lic-table th, .bvp-lic-table td { padding: 8px 10px; }
}
