/*
Theme Name: Bird Beats
Theme URI:
Author: Math On The Beat
Author URI:
Description: Custom beat-selling theme powered by WooCommerce + ACF.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flavor-starter
*/

/* ===== CSS VARIABLES ===== */
:root {
    --bg-main: #1e1e1e;
    --bg-card: #2a2a2a;
    --bg-card-hover: #303030;
    --accent-passive: #8ea8c3;
    --accent-active: #a78bfa;
    --accent-warn: #d97755;
    --text-primary: #d0d0d0;
    --text-secondary: #6b6b6b;
    --border-subtle: #3a3a3a;
    --player-height: 80px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
button { font-family: 'Inter', sans-serif; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ===== GLOBAL NAV ===== */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 800;
    background: rgba(30,30,30,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}
.nav-brand {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-active);
    letter-spacing: 0.5px;
}
.nav-tabs {
    display: flex;
    gap: 4px;
    list-style: none;
}
.nav-tabs a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid transparent;
    transition: all 0.25s ease;
}
.nav-tabs a:hover {
    color: var(--accent-passive);
    border-color: var(--border-subtle);
}
.nav-tabs a.active {
    background: var(--accent-active);
    color: #1e1e1e;
    border-color: var(--accent-active);
    font-weight: 600;
}
.nav-tabs a i { font-size: 12px; }
.nav-fav-count {
    background: var(--accent-active);
    color: #1e1e1e;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.nav-fav-count.has-favs { display: flex; }

/* ===== PLAYER BAR (shared) ===== */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--player-height);
    background: #161616;
    border-top: 1px solid var(--border-subtle);
    display: none;
    align-items: center;
    padding: 0 32px;
    gap: 24px;
    z-index: 900;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.4);
}
.player-bar.visible { display: flex; }
.player-track-info { display: flex; align-items: center; gap: 14px; width: 240px; flex-shrink: 0; }
.player-thumb { width: 50px; height: 50px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.player-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player-track-details { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.player-track-name { font-size: 14px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-track-mood { font-size: 11px; color: var(--text-secondary); }
.player-controls { display: flex; align-items: center; gap: 16px; }
.player-btn { background: none; border: none; color: var(--text-primary); font-size: 16px; cursor: pointer; transition: color 0.2s ease; padding: 4px; }
.player-btn:hover { color: var(--accent-active); }
.player-btn.active-mode { color: var(--accent-active); }
.play-pause-btn {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent-active) !important;
    color: #1e1e1e !important;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; transition: transform 0.15s ease;
}
.play-pause-btn:hover { transform: scale(1.08); color: #1e1e1e !important; }
.player-progress-section { flex: 1; display: flex; align-items: center; gap: 12px; }
.player-time { font-size: 11px; color: var(--text-secondary); min-width: 36px; }
.player-progress-bar { flex: 1; height: 4px; background: var(--border-subtle); border-radius: 4px; overflow: hidden; cursor: pointer; position: relative; }
.player-progress-fill { width: 0%; height: 100%; background: var(--accent-active); border-radius: 4px; transition: width 0.1s linear; }
.player-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.player-action-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-subtle); background: transparent; color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease; font-size: 14px; text-decoration: none; }
.player-action-btn:hover { border-color: var(--accent-passive); color: var(--accent-passive); background: rgba(142,168,195,0.08); }
.player-action-btn.stems-btn:hover { border-color: var(--accent-active); color: var(--accent-active); background: rgba(167,139,250,0.08); }
.player-action-btn.fav-btn.favorited { border-color: var(--accent-active); color: var(--accent-active); background: rgba(167,139,250,0.1); }
.player-action-btn.fav-btn.favorited i { font-weight: 900; }
.player-action-btn.info-btn:hover { border-color: var(--accent-active); color: var(--accent-active); background: rgba(167,139,250,0.08); }

.player-volume { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 14px; width: 140px; flex-shrink: 0; }
.volume-bar { flex: 1; height: 4px; background: var(--border-subtle); border-radius: 4px; overflow: hidden; cursor: pointer; position: relative; }
.volume-fill { width: 70%; height: 100%; background: var(--accent-passive); border-radius: 4px; }

/* ===== UTILITY ===== */
.screen-reader-text {
    clip: rect(1px,1px,1px,1px);
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
}
