/* ========================================================================
   site.css — JamaicanSounds shared stylesheet
   Loaded site-wide via <link> in usersc/templates/header.php
   Last updated: 2026-04-27
   Whenever you edit /css/site.css, change the ?v=20260427 in usersc/templates/header.php to something different (today's date works well). If you forget, returning visitors will keep seeing the old cached copy.
   ======================================================================== */

/* ========================================================================
   1. NAVBAR CUSTOMIZATION (was: header.php inline block 0)
   ======================================================================== */
/<script> overrides that should appear on every page.
if (!defined('ABS_PATH_SET')) { /* no-op guard */ }
?>

<!-- ============================================================ -->
<!-- Shared navbar customization                                   -->
<!-- Consolidates LOGIN, REGISTER, RESEND, FORGOT PASSWORD under  -->
<!-- an ACCOUNT dropdown (renamed from HELP) and bumps nav font.  -->
<!-- ============================================================ -->
<style>
/* Bigger nav text to utilize saved space */
nav.navbar .navbar-nav .nav-link,
nav.navbar.bg-light .navbar-nav .nav-link { font-size: 17px !important; }
nav.navbar .navbar-nav .dropdown-menu .dropdown-item { font-size: 15px !important; }

/* Hide ABOUT from nav - it lives in the footer instead. */
.navbar .navbar-nav > li.nav-item > a.nav-link[href*='about'] {
    display: none;
}
.navbar .navbar-nav > li.nav-item:has(> a.nav-link[href*='about']) {
    display: none !important;
}

/* Hide top-level account items until JS moves them into ACCOUNT dropdown,
   to prevent flash-of-unstyled-content. The JS removes these <li>s entirely. */
.navbar .navbar-nav > li.nav-item > a.nav-link[href$='/users/login.php'],
.navbar .navbar-nav > li.nav-item > a.nav-link[href$='/users/join.php'],
.navbar .navbar-nav > li.nav-item > a.nav-link[href$='/users/verify_resend.php'] {
    display: none;
}
.navbar .navbar-nav > li.nav-item:has(> a.nav-link[href$='/users/login.php']),
.navbar .navbar-nav > li.nav-item:has(> a.nav-link[href$='/users/join.php']),
.navbar .navbar-nav > li.nav-item:has(> a.nav-link[href$='/users/verify_resend.php']) {
    display: none !important;
}


/* ========================================================================
   2. PAGE-LEVEL OVERRIDES (was: header.php inline block 1)
   Includes: dark navbar, footer, section header, video grid, video card,
             video badges, artist card, basic site-wide layout helpers.
   ======================================================================== */

/* ── Page-level overrides ─────────────────────────────────────────── */

/* Hide performance debug bar */
body > p:first-child { display: none !important; }

/* Dark navbar - override Bootstrap bg-light !important */
nav.navbar,
nav.navbar.bg-light,
.navbar.bg-light {
    background: linear-gradient(to right, #66bb6a, #1b5e20) !important;
    background-color: #2e7d32 !important;
    border-bottom: 3px solid #4caf50 !important;
    padding: 0.25rem 1rem;
}
/* Nav links white */
nav.navbar .nav-link,
nav.navbar a.nav-link,
nav.navbar.bg-light .nav-link,
nav.navbar.bg-light a.nav-link {
    color: #ffffff !important;
        font-size: 0.9rem !important;
    letter-spacing: 0.06em;
    padding: 0.5rem 0.5rem !important;
    transition: color 0.2s;
    font-weight: 600;
}
nav.navbar .nav-link:hover,
nav.navbar a.nav-link:hover {
    color: #a5d6a7 !important;
}
nav.navbar .dropdown-menu {
    background-color: #1a1a1a !important;
    border: 1px solid #2e7d32;
}
nav.navbar .dropdown-menu a {
    color: #e0e0e0 !important;
}
nav.navbar .dropdown-menu a:hover {
    background-color: #2e7d32 !important;
    color: #fff !important;
}
/* Logo - visible on dark bg */
nav.navbar a img {
    max-width: 200px !important;
    width: 200px !important;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.85)) drop-shadow(0 0 20px rgba(255,255,255,0.5)) drop-shadow(0 0 40px rgba(255,255,255,0.25)) brightness(1.1);
}
/* Compact nav items to prevent overflow */
.navbar-nav > li {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ── Section headings ────────────────────────────────────────────── */
.js-section {
    width: 100%;
    padding: 0 1rem;
    margin-bottom: 2.5rem;
}
.js-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 1.2rem 0;
}
.js-section-title {
    font-family: Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    margin: 0;
    letter-spacing: 0.02em;
}
.js-section-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 1.4em;
    background: #2e7d32;
    border-radius: 3px;
    margin-right: 0.55rem;
    vertical-align: middle;
}
.js-section-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, #2e7d32, transparent);
    border-radius: 1px;
}

/* ── Video grid ──────────────────────────────────────────────────── */
.js-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    width: 100%;
}

/* ── Video card ──────────────────────────────────────────────────── */
.js-video-card {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
}
.js-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.13);
    border-color: #2e7d32;
}

/* Thumbnail area */
.js-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}
.js-player-wrap {
    width: 100%;
    height: 100%;
}
.js-card-thumb img.placeholder {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}
.js-video-card:hover .js-card-thumb img.placeholder {
    opacity: 0.88;
}
/* Play overlay */
.js-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.js-play-overlay span {
    font-size: 3rem;
    color: rgba(255,255,255,0.88);
    text-shadow: 0 2px 8px rgba(0,0,0,0.55);
    transition: transform 0.18s, opacity 0.18s;
    opacity: 0;
}
.js-video-card:hover .js-play-overlay span {
    opacity: 1;
    transform: scale(1.15);
}

/* Card info */
.js-card-info {
    padding: 0.75rem 0.9rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}
.js-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #111;
}
.js-card-title a {
    color: inherit;
    text-decoration: none;
}
.js-card-title a:hover {
    color: #2e7d32;
    text-decoration: underline;
}
.js-card-artist {
    font-size: 0.85rem;
    color: #444;
    margin: 0;
    line-height: 1.3;
}
.js-card-artist a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 600;
}
.js-card-artist a:hover { text-decoration: underline; }

/* Badge pills */
.js-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.4rem;
}
.js-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    letter-spacing: 0.03em;
    line-height: 1.5;
}
.js-badge-type {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}
.js-badge-vq {
    background: #f5e49c;
    color: #7a5c00;
    border: 1px solid #c8a200;
}
.js-badge-aq {
    background: #7a5c00;
    color: #f5e49c;
    border: 1px solid #a07800;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 576px) {
    .js-video-grid {
        grid-template-columns: 1fr;
    }
    .js-section-title { font-size: 1.25rem; }
}

/* ─── Card layout fixes ───────────────────────────────── */
.js-video-card {
  position: relative;
}
.js-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 8px 8px;
}
.js-card-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.js-card-ratings-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* ─── Broken? button ─────────────────────────────────── */
.js-broken-btn {
  position: absolute;
  bottom: 6px;
  right: 8px;
  background: transparent;
  border: none;
  color: #bbb;
  font-size: 0.72rem;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
  z-index: 2;
}
.js-broken-btn:hover {
  opacity: 1;
  color: #e57373;
  text-decoration: underline;
}

/* ─── Dropdown item normalization ────────────────────── */
.navbar .dropdown-menu .dropdown-item {
  font-size: 0.82rem;
  padding: 6px 16px;
  color: #333;
  text-transform: capitalize;
}
.navbar .dropdown-menu .dropdown-item:hover {
  background-color: #e8f5e9;
  color: #2d5c2d;
}

/* ─── Badge label style ──────────────────────────────── */
.js-badge-vq, .js-badge-aq {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.js-badge-vq .js-badge-star,
.js-badge-aq .js-badge-star {
  font-size: 0.9em;
  margin-left: 1px;
}


/* ========================================================================
   3. FILTER BAR (shared by artist.php, artists.php, videos.php)
   ======================================================================== */
.js-filter-select option {
  background: #2a2a2a;
  color: #e0e0e0;
}

.js-filter-page-info {
  font-size: 0.75rem;
  color: #ddd;
  margin-left: 4px;
}

.js-filter-bar {
  background: #1a1a1a;
  border-bottom: 2px solid #333;
  padding: 10px 0;
  margin-bottom: 20px;
}

.js-filter-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

#filterForm, #filterFormBottom {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
}

.js-filter-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.js-filter-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #ddd;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom:0px;
}

.js-filter-select {
  padding: 6px 10px;
  border: 1px solid #444;
  border-radius: 4px;
  font-size: 0.8rem;
  background: #2a2a2a;
  color: #e0e0e0;
  cursor: pointer;
  min-width: 70px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
}

.js-filter-select:hover {
  border-color: #4caf50;
  background: #333;
}

.js-filter-select:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 2px rgba(76,175,80,0.2);
}

@media (max-width: 768px) {
  #filterForm, #filterFormBottom { flex-wrap: wrap; justify-content: flex-start; }
}

@media (max-width: 480px) {
  #filterForm, #filterFormBottom { flex-direction: column; align-items: flex-start; }
}