/*
 Theme Name: DMC Bootstrap Basic4 Child
 Theme URI: https://digitalmusiccards.com
 Description: Child theme for Bootstrap Basic4, customized for Digital Music Cards.
 Author: John K. Williams
 Template: bootstrap-basic4
 Version: 1.10
*/

/* Put custom styles below this line */

/* ===== GLOBAL DARK THEME ===== */

/* Global dark mode */
body,
.site {
    background: #000;
    color: #eee;
}

/* Links = neutral for now, no bright green */
a {
    color: #9ca3af;
}
a:hover,
a:focus {
    color: #fff;
    text-decoration: none;
}

/* ===== NAVIGATION BAR CLEANUP ===== */

/* THE CULPRIT: Bootstrap's navbar-light and bg-light classes */
.navbar-light,
.bg-light,
.navbar.navbar-light,
nav.bg-light {
    background: #000 !important;
    background-color: #000 !important;
}

/* Target the row container */
.row.main-navigation,
.main-navigation .col-md-12 {
    background: transparent !important;
}

/* Navbar containers */
.navbar,
.navbar-expand-lg,
#site-navigation,
.navbar-default,
.site-header,
.navbar-header {
    background: #000 !important;
    background-color: #000 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Inner containers stay transparent */
.navbar > .container,
.navbar > .container-fluid,
.site-header .container,
.site-header .container-fluid {
    background: transparent !important;
}

/* Menu collapse container */
.navbar-collapse,
.navbar-default .navbar-collapse {
    border: none !important;
    background: transparent !important;
}

/* Menu list */
.navbar-nav,
.navbar-nav.mr-auto,
#bb4-primary-menu {
    background: transparent !important;
}

/* Brand/title — interim wordmark (matches hero eyebrow treatment) */
.site-title,
.site-title-heading {
    margin: 0;
    line-height: 1.2;
}
.site-title a,
.site-title-heading a,
.navbar-brand,
.navbar-brand:hover,
.navbar-brand:focus {
    color: #3EC0DF !important;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none !important;
}
.site-title a:hover,
.site-title-heading a:hover {
    color: #5cd0ec !important;
}
/* Tagline under wordmark is redundant once title is the mark */
.site-description {
    display: none !important;
}
/* Home hero no longer needs the same brand line */
.home .dmc-hero__eyebrow {
    display: none;
}

/* Menu links - override navbar-light's dark text */
.navbar-light .navbar-nav .nav-link,
.navbar-light .navbar-nav .nav-item a,
.nav-link {
    color: #eee !important;
}

/* Hover states */
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-item a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Mobile toggle button - make it visible */
.navbar-light .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3) !important;
}
.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ===== MAIN CONTENT ===== */

/* Main content wrapper */
.site-main,
#primary,
#content,
.container {
    background: transparent;
    color: #eee;
}

/* Force dark backgrounds on common Bootstrap homepage blocks —
   but NOT the main content row/cols (those must stay transparent canvas). */
.card,
.card-body,
.jumbotron,
.alert,
.well,
.list-group-item,
.table,
.table th,
.table td,
.bg-white {
    background-color: #111 !important;
    color: #eee !important;
}

/* Keep page chrome as black canvas — no gray Bootstrap content slab */
.page-container,
#content.site-content,
#content.row,
.site-content,
.row.main-navigation,
.row.site-branding,
.home #content,
.page #content {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Generic sections */
.page,
.single {
    background: #000;
}

/* Make paragraphs slightly softer */
p {
    color: #e5e7eb;
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
}

/* ===== FOOTER ===== */

/* Hide default Bootstrap Basic4 footer for now */
.site-footer,
.footer,
#colophon {
    display: none;
}

/* ===== FORM STYLING - SIMPLE MVP ===== */

/* Form containers */
#dmc-album-upload-form,
#dmc-registration-form,
#dmc-profile-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

/* Input fields and textareas */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    color: #eee;
    font-size: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="file"]:focus,
textarea:focus {
    outline: none;
    border-color: #666;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Submit buttons */
button[type="submit"],
input[type="submit"] {
    width: 100%;
    padding: 0.75rem 1.5rem;
    margin-top: 0.5rem;
    background: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

button[type="submit"]:hover,
input[type="submit"]:hover {
    background: #444;
}

/* Placeholder text */
::placeholder {
    color: #666;
}

/* ===== ALBUM PAGE STYLES ===== */

.dmc-album-single,
.dmc-track-single {
    max-width: 1100px;
    margin: 40px auto 120px;
    padding: 24px 15px 40px;
    background: transparent;
    border-radius: 0;
    color: #eee;
}

.dmc-album-single a,
.dmc-track-single a {
    color: #3EC0DF;
}
.dmc-album-single a:hover,
.dmc-track-single a:hover {
    color: #5cd0ec;
    text-decoration: none;
}

.dmc-album__header,
.dmc-track__header {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.dmc-album__cover img,
.dmc-track__cover img {
    max-width: 320px;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(0,0,0,0.55);
}

.dmc-album__meta,
.dmc-track__meta {
    flex: 1 1 280px;
}

.dmc-album__title,
.dmc-track__title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: #fff;
}

.dmc-album__artist,
.dmc-track__album {
    font-size: 1rem;
    color: #9ca3af;
    margin-bottom: 1.25rem;
}

.dmc-album__description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #c4c7ce;
}

.dmc-album__actions {
    margin-top: 1.5rem;
}

/* Circular play — larger version of the track-row play dots */
.dmc-play-circle {
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: #3EC0DF;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.15s ease, background 0.15s ease;
}
.dmc-play-circle:hover {
    background: #5cd0ec;
    transform: scale(1.05);
}
.dmc-play-circle__icon {
    display: block;
    width: 0;
    height: 0;
    margin-left: 3px;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #04121a;
}
.dmc-play-circle.is-playing .dmc-play-circle__icon {
    width: 14px;
    height: 14px;
    margin-left: 0;
    border: 0;
    background: linear-gradient(90deg, #04121a 0 5px, transparent 5px 9px, #04121a 9px 14px);
}

.dmc-album__tracks {
    margin-top: 2rem;
}

.dmc-album__tracks h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.dmc-tracklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dmc-tracklist__item {
    display: grid;
    grid-template-columns: 2rem 1.5rem minmax(0, 1fr) 3.5rem;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem 1rem;
    margin-bottom: 0.15rem;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s ease;
}

.dmc-tracklist__item:hover,
.dmc-tracklist__item.is-active {
    background: rgba(255, 255, 255, 0.05);
}

.dmc-tracklist__item.is-active .dmc-tracklist__title,
.dmc-tracklist__item.is-active .dmc-tracklist__num {
    color: #3EC0DF;
}

.dmc-tracklist__item.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.dmc-tracklist__num {
    font-size: 0.85rem;
    color: #6b7280;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.dmc-tracklist__play {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: transparent;
    position: relative;
}
.dmc-tracklist__item:hover .dmc-tracklist__play,
.dmc-tracklist__item.is-active .dmc-tracklist__play {
    background: #3EC0DF;
}
.dmc-tracklist__item:hover .dmc-tracklist__play::after,
.dmc-tracklist__item.is-playing .dmc-tracklist__play::after {
    content: '';
    position: absolute;
    left: 45%;
    top: 50%;
    transform: translate(-40%, -50%);
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent #04121a;
}
.dmc-tracklist__item.is-playing .dmc-tracklist__play::after {
    left: 50%;
    width: 8px;
    height: 8px;
    border: 0;
    background: linear-gradient(90deg, #04121a 0 3px, transparent 3px 5px, #04121a 5px 8px);
    transform: translate(-50%, -50%);
}

.dmc-tracklist__title {
    font-size: 0.98rem;
    font-weight: 500;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dmc-tracklist__dur {
    font-size: 0.82rem;
    color: #6b7280;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.dmc-album-single .wp-audio-shortcode,
.dmc-track-single .wp-audio-shortcode {
    display: none !important;
}

.dmc-track__player {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.dmc-album__qr-code,
.dmc-track__qr-code {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 0;
    text-align: center;
}

.dmc-album__qr-code h2,
.dmc-track__qr-code h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.dmc-qr-code-display {
    text-align: center;
}

.dmc-qr-image {
    max-width: 260px !important;
    width: 100%;
    height: auto;
}

.dmc-qr-instructions {
    font-size: 0.85rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .dmc-album__header,
    .dmc-track__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .dmc-album__meta,
    .dmc-track__meta {
        text-align: center;
    }
    .dmc-tracklist__item {
        grid-template-columns: 1.5rem 1.25rem minmax(0, 1fr) 3rem;
        padding: 0.75rem 0.5rem;
    }
}

/* ===== HOMEPAGE / MVP POLISH ===== */

/* Kill WordPress-y chrome: BOTH sidebars (left widgets + right widgets) site-wide */
#sidebar-left,
#sidebar-right,
.widget,
#secondary,
.sidebar,
.widget-area {
    display: none !important;
}
/* Let main content span the full width once both sidebars are gone */
#main.col-md-6,
main#main,
#main.site-main,
.site-main.col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
}
/* Remove the parent theme's white/light borders on content + boxes */
#main,
.site-main,
#content,
.content-area,
.card,
.list-group-item,
.well {
    border: 0 !important;
    box-shadow: none !important;
}
/* Kill leftover Bootstrap/theme content panels on the canvas */
.page-container.container,
.home #main,
.home .site-main,
.home .entry-content,
.home article,
.page #main,
.page .site-main,
.page .entry-content,
.page article.type-page,
#main.col-md-6,
main#main {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
.home .entry-title,
.home .page-title,
.home header.entry-header {
    display: none !important;
}
/* Branded auth/ops pages use their own headers (WP may not add page-{slug}) */
body.page-login .entry-title,
body.page-admin .entry-title,
body.page-register .entry-title,
body.page-login header.entry-header,
body.page-admin header.entry-header,
body.page-register header.entry-header,
body.page:has(#dmc-register-form) header.entry-header,
body.page:has(#dmc-login-form) header.entry-header,
body.page:has(.dmc-admin-panel) header.entry-header,
body.page:has(.dmc-order-cards) header.entry-header,
body.page:has(#dmc-register-form) .entry-title,
body.page:has(#dmc-login-form) .entry-title,
body.page:has(.dmc-admin-panel) .entry-title,
body.page:has(.dmc-order-cards) .entry-title {
    display: none !important;
}
/* Header: no rule line — spacing only */
.navbar,
.site-header {
    border-bottom: 0 !important;
    box-shadow: none !important;
}
.navbar-nav .nav-link {
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Hero: no panel box — canvas + soft glow only */
.dmc-hero {
    background:
        radial-gradient(1100px 380px at 50% -20%, rgba(62, 192, 223, 0.16), transparent 70%),
        transparent;
    border: 0;
    border-radius: 0;
    padding: 5rem 1.5rem;
    margin: 2rem auto 3.5rem;
    max-width: 1100px;
    text-align: center;
}
.dmc-hero__inner {
    max-width: 720px;
    margin: 0 auto;
}
.dmc-hero__eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #3EC0DF;
    margin-bottom: 1.1rem;
}
.dmc-hero__title {
    font-size: 3rem;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 1.1rem;
    color: #fff;
}
.dmc-hero__subtitle {
    font-size: 1.12rem;
    line-height: 1.6;
    color: #9ca3af;
    margin: 0 auto 2.2rem;
    max-width: 560px;
}
.dmc-hero__actions {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
}
.dmc-hero__btn {
    display: inline-block;
    padding: 0.85rem 1.7rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid #26262e;
    background: #141418;
    color: #fff !important;
    transition: transform 0.15s ease, background 0.15s ease;
}
.dmc-hero__btn:hover {
    transform: translateY(-1px);
    background: #1c1c22;
    text-decoration: none;
}
.dmc-hero__btn--primary {
    background: #3EC0DF;
    border-color: #3EC0DF;
    color: #04121a !important;
}
.dmc-hero__btn--primary:hover {
    background: #5cd0ec;
}

/* Releases: centered composition (works with 1 album or many) */
.dmc-releases {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem 4.5rem;
    text-align: center;
}
.dmc-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1.75rem;
    padding-bottom: 0;
    border-bottom: 0;
}
.dmc-empty {
    color: #9ca3af;
}

@media (max-width: 768px) {
    .dmc-hero { padding: 3.25rem 1.25rem; margin: 1rem auto 2.5rem; }
    .dmc-hero__title { font-size: 2.1rem; }
    .dmc-hero__subtitle { font-size: 1rem; }
    .dmc-hero__btn { width: 100%; }
}