/* =============================================
   BIG DUDES MUSIC — THEME.CSS
   Component-level styles, section overrides,
   animations, and responsive tweaks.
   ============================================= */

/* ──────────────────────────────────────────────
   SITE HEADER
   ────────────────────────────────────────────── */
.bdm-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bdm-dark);
    border-bottom: 1px solid var(--bdm-border);
    box-shadow: 0 2px 16px rgba(0,0,0,.6);
}

/* WP Nav override */
.bdm-primary-nav .wp-block-navigation-item a {
    font-family: var(--bdm-font-body);
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .03em;
    color: var(--bdm-white);
    padding: .25rem 0;
    transition: color var(--bdm-transition);
}
.bdm-primary-nav .wp-block-navigation-item a:hover,
.bdm-primary-nav .wp-block-navigation-item.current-menu-item a { color: var(--bdm-red); }

.bdm-icon-link {
    position: relative;
    line-height: 1;
    transition: color var(--bdm-transition);
}
.bdm-icon-link:hover { color: var(--bdm-red) !important; }

.bdm-logo img { height: 50px; width: auto; }

/* ──────────────────────────────────────────────
   HERO SECTION
   ────────────────────────────────────────────── */
.bdm-hero {
    background-attachment: fixed;
}
@media (max-width: 768px) {
    .bdm-hero { background-attachment: scroll; }
}

/* ──────────────────────────────────────────────
   RADIO WAVEFORM ANIMATION
   ────────────────────────────────────────────── */
.bdm-radio-waveform {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 20px;
}
.bdm-radio-waveform span {
    display: block;
    width: 3px;
    background-color: var(--bdm-red);
    border-radius: 2px;
    animation: bdmWave 1.2s ease-in-out infinite;
}
.bdm-radio-waveform span:nth-child(1) { height: 8px;  animation-delay: 0s; }
.bdm-radio-waveform span:nth-child(2) { height: 16px; animation-delay: .15s; }
.bdm-radio-waveform span:nth-child(3) { height: 12px; animation-delay: .3s; }
.bdm-radio-waveform span:nth-child(4) { height: 20px; animation-delay: .45s; }
.bdm-radio-waveform span:nth-child(5) { height: 10px; animation-delay: .6s; }

.bdm-radio-waveform--sm span { width: 2px; }
.bdm-radio-waveform--sm { height: 14px; }
.bdm-radio-waveform--sm span:nth-child(1) { height: 6px; }
.bdm-radio-waveform--sm span:nth-child(2) { height: 12px; }
.bdm-radio-waveform--sm span:nth-child(3) { height: 8px; }

@keyframes bdmWave {
    0%, 100% { transform: scaleY(1); }
    50%       { transform: scaleY(.4); }
}

.bdm-paused .bdm-radio-waveform span { animation-play-state: paused; }

/* Radio play button */
.bdm-radio-play-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 1;
    transition: transform var(--bdm-transition), opacity var(--bdm-transition);
}
.bdm-radio-play-btn:hover { transform: scale(1.1); opacity: .85; }

/* ──────────────────────────────────────────────
   VIDEO CARDS
   ────────────────────────────────────────────── */
.bdm-video-card { background: var(--bdm-card); }

.bdm-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.25);
    transition: background var(--bdm-transition);
    text-decoration: none;
}
.bdm-play-overlay:hover { background: rgba(0,0,0,.5); }

.bdm-play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bdm-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    transition: transform var(--bdm-transition), background var(--bdm-transition);
    box-shadow: 0 4px 20px rgba(230,48,48,.4);
}
.bdm-play-overlay:hover .bdm-play-btn {
    transform: scale(1.1);
    background: var(--bdm-red-dark);
}

.bdm-play-btn--sm {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

.bdm-video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: .75rem;
    background: linear-gradient(to top, rgba(13,13,13,.95) 0%, rgba(13,13,13,0) 100%);
}
.bdm-video-caption--sm { padding: .5rem .6rem; }

/* ──────────────────────────────────────────────
   SECTIONS
   ────────────────────────────────────────────── */
.bdm-section + .bdm-section { border-top: 1px solid var(--bdm-border); }

/* ──────────────────────────────────────────────
   SOCIAL ICONS HOVER
   ────────────────────────────────────────────── */
.bdm-social-icon:hover { color: var(--bdm-red) !important; }

/* ──────────────────────────────────────────────
   STICKY RADIO PLAYER
   ────────────────────────────────────────────── */
.bdm-sticky-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bdm-player-height);
    background-color: var(--bdm-dark);
    border-top: 1px solid var(--bdm-border);
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,.5);
}

.bdm-player-play {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 1;
    transition: transform var(--bdm-transition);
}
.bdm-player-play:hover { transform: scale(1.15); }

.bdm-volume-slider {
    -webkit-appearance: none;
    height: 3px;
    border-radius: 2px;
    background: var(--bdm-border-2);
    outline: none;
    cursor: pointer;
}
.bdm-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bdm-red);
    cursor: pointer;
}
.bdm-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bdm-red);
    cursor: pointer;
    border: none;
}

/* ──────────────────────────────────────────────
   MUSICIAN CARDS / BAND CARDS HOVER
   ────────────────────────────────────────────── */
.bdm-card:hover .bdm-card-img { transform: scale(1.03); }

/* ──────────────────────────────────────────────
   WP BLOCK EDITOR OVERRIDES
   (ensure dark bg in editor)
   ────────────────────────────────────────────── */
.editor-styles-wrapper {
    background-color: var(--bdm-black) !important;
    color: var(--bdm-white) !important;
    font-family: var(--bdm-font-body) !important;
}

/* ──────────────────────────────────────────────
   THE EVENTS CALENDAR OVERRIDES
   ────────────────────────────────────────────── */
.tribe-events-calendar,
.tribe-events-header,
.tribe-events-footer,
.tribe-events-page-title,
.tribe-events-content { color: var(--bdm-white) !important; }

.tribe-events-calendar .tribe_events_cat-community-roots { color: var(--bdm-red); }

.datepicker.tribe-events-widget-countdown { background: var(--bdm-card) !important; }

/* ──────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .bdm-primary-nav { display: none; }
}

@media (max-width: 767.98px) {
    :root { --bdm-section-py: 2.5rem; }
    .bdm-sticky-player .container-xl { padding-left: 1rem; padding-right: 1rem; }
}

@media (max-width: 575.98px) {
    :root { --bdm-player-height: 56px; }
    .bdm-sticky-player { font-size: .8rem; }
}

/* ──────────────────────────────────────────────
   SCROLL ANIMATIONS (Intersection Observer)
   Classes applied by main.js
   ────────────────────────────────────────────── */
.bdm-fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s ease, transform .5s ease;
}
.bdm-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ──────────────────────────────────────────────
   ACCESSIBILITY
   ────────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--bdm-red);
    outline-offset: 3px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ──────────────────────────────────────────────
   PRINT
   ────────────────────────────────────────────── */
@media print {
    .bdm-sticky-player,
    .bdm-site-header { display: none !important; }
    body { padding-bottom: 0; }
}
