/*
Theme Name: VU Beats
Theme URI: https://beats.validupdates.com
Author: ValidUpdates
Author URI: https://validupdates.com
Description: High-performance, lightweight music & instrumental download portal for ValidUpdates.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.9
Text Domain: vu-beats
*/

:root {
  --primary: #c8102e;
  --primary-dark: #9e0b23;
  --primary-glow: rgba(200, 16, 46, 0.25);
  --dark: #0f1013;
  --dark-surface: #181a20;
  --dark-border: #262933;
  --text-main: #1f242e;
  --text-muted: #6b7280;
  --bg-light: #f5f6f9;
  --card-bg: #ffffff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-hover: 0 10px 24px rgba(0,0,0,0.12);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- HEADER --- */
.vu-header {
  background: #ffffff;
  border-bottom: 2px solid #eaedf2;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.vu-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.vu-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.vu-search-bar {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.vu-search-bar form {
  display: flex;
  align-items: center;
  background: #f1f3f6;
  border-radius: 30px;
  padding: 4px 6px 4px 18px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.vu-search-bar form:focus-within {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.vu-search-bar input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
  outline: none;
  color: var(--text-main);
}

.vu-search-bar button {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.vu-search-bar button:hover {
  background: var(--primary-dark);
}

.vu-header-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.back-to-parent {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}

.back-to-parent:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: #fff;
}

/* --- HERO STRIP --- */
.vu-hero-strip {
  background: linear-gradient(135deg, var(--dark) 0%, #1c1316 100%);
  color: #fff;
  padding: 30px 0;
  margin-bottom: 28px;
  border-bottom: 4px solid var(--primary);
}

.vu-hero-strip h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.vu-hero-strip p {
  color: #a4abb8;
  font-size: 14px;
}

/* --- YOUTUBE 16:9 BEATS GRID --- */
.beats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

.beat-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.beat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(200, 16, 46, 0.4);
}

/* 16:9 YouTube Aspect Ratio */
.beat-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111317;
  overflow: hidden;
  display: block;
}

.beat-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.beat-card:hover .beat-thumb-wrap img {
  transform: scale(1.05);
}

.yt-badge-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.beat-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
}

.beat-card:hover .beat-play-overlay {
  opacity: 1;
}

.beat-play-btn-circle {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 15px rgba(200, 16, 46, 0.6);
  transform: scale(0.85);
  transition: transform 0.2s ease;
}

.beat-card:hover .beat-play-btn-circle {
  transform: scale(1);
}

.beat-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.beat-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--dark);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 40px;
}

.beat-title a:hover {
  color: var(--primary);
}

.beat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f3f6;
  font-size: 12px;
  color: var(--text-muted);
}

.beat-btn-pill {
  background: #fdf2f4;
  color: var(--primary);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.beat-card:hover .beat-btn-pill {
  background: var(--primary);
  color: #fff;
}

/* --- PAGINATION --- */
.vu-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 30px 0 60px;
  flex-wrap: wrap;
}

.vu-pagination .page-numbers {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.vu-pagination .page-numbers.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.vu-pagination .page-numbers:hover:not(.current) {
  border-color: var(--primary);
  color: var(--primary);
}

/* --- SINGLE BEAT YOUTUBE-STYLE PAGE --- */
.single-beat-wrapper {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e5e7eb;
  margin-bottom: 40px;
}

/* 16:9 YouTube Featured Cover at Top */
.single-yt-hero-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #111317;
  position: relative;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  margin-bottom: 24px;
}

.single-yt-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-beat-title-box {
  margin-bottom: 18px;
}

.single-beat-title-box h1 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin: 10px 0;
  color: var(--dark);
}

.single-beat-submeta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid #eaedf2;
}

/* Player Box */
.single-audio-player-box {
  background: #f8f9fb;
  border: 1px solid #eaedf2;
  border-radius: var(--radius-md);
  padding: 18px;
  margin: 20px 0;
}

.single-audio-player-box audio {
  width: 100%;
  outline: none;
}

/* Download CTA */
.vu-download-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 800;
  font-size: 16px;
  padding: 16px 36px;
  border-radius: 30px;
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.35);
  transition: transform 0.2s, background 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 100%;
  max-width: 380px;
  margin: 16px 0;
}

.vu-download-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Social Share */
.vu-share-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 20px 0 28px;
  flex-wrap: wrap;
}

.vu-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.share-wa { background: #25d366; }
.share-x { background: #000000; }
.share-fb { background: #1877f2; }

/* Content Section */
.single-beat-content {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #eaedf2;
  font-size: 15px;
  line-height: 1.8;
}

/* --- FOOTER --- */
.vu-footer {
  background: var(--dark);
  color: #9ca3af;
  margin-top: auto;
  padding: 40px 0 24px;
  font-size: 13px;
  border-top: 4px solid var(--primary);
}

.vu-footer .footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .vu-footer .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .vu-header-links {
    display: none;
  }
  .vu-search-bar {
    max-width: 100%;
  }
  .beats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .single-beat-wrapper {
    padding: 16px;
  }
  .single-beat-title-box h1 {
    font-size: 20px;
  }
  .vu-download-cta {
    max-width: 100%;
  }
}

/* All In-Content Links in Brand Red */
.single-beat-content a {
  color: var(--primary) !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.single-beat-content a:hover {
  color: var(--primary-dark) !important;
  text-decoration: none;
}

/* Center Download CTA and Social Share Bar */
.vu-download-cta {
  margin: 16px auto !important;
  display: flex !important;
}

.vu-share-bar {
  justify-content: center !important;
}
