/* ==========================================================================
   MusicNetics for WordPress — Public Styles
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Shared layout helpers
   -------------------------------------------------------------------------- */

.mat-empty {
    font-style: italic;
    color: #888;
    padding: 1em 0;
}

.mat-btn {
    display: inline-block;
    padding: 0.55em 1.25em;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
    border: none;
}

.mat-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.mat-btn-primary {
    background: var(--mat-accent, #1a1a2e);
    color: #fff;
}

.mat-btn-secondary {
    background: transparent;
    color: var(--mat-accent, #1a1a2e);
    border: 2px solid var(--mat-accent, #1a1a2e);
}

/* --------------------------------------------------------------------------
   Music Player — [musicnetics_player]
   -------------------------------------------------------------------------- */

.mat-player-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.mat-track-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
}

.mat-track-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.mat-track-cover {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.mat-track-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mat-track-info {
    flex: 1;
    min-width: 0;
}

.mat-track-title {
    margin: 0 0 0.2em;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mat-accent, #1a1a2e);
}

.mat-track-artist {
    margin: 0 0 0.1em;
    font-size: 0.9rem;
    color: #555;
}

.mat-track-release {
    margin: 0 0 0.75em;
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
}

/* --------------------------------------------------------------------------
   Native audio player — primary listening experience
   -------------------------------------------------------------------------- */

.mat-audio-player {
    width: 100%;
    max-width: 480px;
    height: 36px;
    margin: 0.5em 0 0;
    border-radius: 4px;
    display: block;
}

/* --------------------------------------------------------------------------
   "Available On" streaming service buttons
   -------------------------------------------------------------------------- */

.mat-available-on {
    margin-top: 1rem;
    padding-top: 0.875rem;
    border-top: 1px solid #ebebeb;
}

.mat-available-on-label {
    margin: 0 0 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
}

.mat-streaming-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.mat-stream-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42em 1.05em;
    background: #111;
    color: #fff;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid #111;
    transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.mat-stream-btn:hover {
    background: #333;
    border-color: #333;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-decoration: none;
}

.mat-stream-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   Gigs — [musicnetics_gigs]
   -------------------------------------------------------------------------- */

.mat-gigs-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.mat-gig-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
}

.mat-gig-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.mat-gig-date-block {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--mat-accent, #1a1a2e);
    color: #fff;
    border-radius: 8px;
    text-align: center;
    line-height: 1;
}

.mat-gig-month {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.mat-gig-day {
    font-size: 1.6rem;
    font-weight: 800;
}

.mat-gig-details {
    flex: 1;
    min-width: 0;
}

.mat-gig-title {
    margin: 0 0 0.25em;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mat-accent, #1a1a2e);
}

.mat-gig-location {
    margin: 0 0 0.15em;
    font-size: 0.9rem;
    color: #555;
}

.mat-gig-location a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mat-gig-address {
    margin: 0 0 0.15em;
    font-size: 0.82rem;
    color: #999;
}

.mat-gig-time {
    margin: 0 0 0.5em;
    font-size: 0.82rem;
    color: #999;
}

.mat-gig-desc {
    font-size: 0.88rem;
    color: #555;
    margin-bottom: 0.75rem;
}

.mat-gig-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   Merch Grid — [musicnetics_merch]
   -------------------------------------------------------------------------- */

.mat-merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.mat-merch-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.mat-merch-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.mat-merch-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}

.mat-merch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.mat-merch-card:hover .mat-merch-image img {
    transform: scale(1.04);
}

.mat-merch-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mat-merch-name {
    margin: 0 0 0.35em;
    font-size: 1rem;
    font-weight: 700;
    color: var(--mat-accent, #1a1a2e);
}

.mat-merch-desc {
    font-size: 0.84rem;
    color: #666;
    margin-bottom: 0.75rem;
    flex: 1;
}

.mat-merch-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mat-accent, #1a1a2e);
    margin: 0 0 0.75rem;
}

.mat-merch-body .mat-btn {
    align-self: flex-start;
    margin-top: auto;
}

/* --------------------------------------------------------------------------
   EPK — [musicnetics_epk]
   -------------------------------------------------------------------------- */

.mat-epk-wrap {
    margin: 1.5rem 0;
}

.mat-epk-section {
    margin-bottom: 2.5rem;
}

.mat-epk-heading {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--mat-accent, #1a1a2e);
    border-bottom: 3px solid var(--mat-accent, #1a1a2e);
    padding-bottom: 0.4em;
    margin-bottom: 1.25rem;
}

.mat-epk-hero {
    width: 100%;
    max-height: 380px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.mat-epk-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mat-epk-logo {
    margin-bottom: 1rem;
}

.mat-epk-logo img {
    max-height: 80px;
    width: auto;
    display: block;
}

.mat-epk-artist-name {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.25em;
    color: var(--mat-accent, #1a1a2e);
}

.mat-epk-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-bottom: 1rem;
}

.mat-epk-genre,
.mat-epk-location {
    font-size: 0.85rem;
    background: #f0f0f0;
    color: #444;
    border-radius: 20px;
    padding: 0.25em 0.75em;
    font-weight: 600;
}

.mat-epk-bio {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1.25rem;
}

.mat-epk-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.mat-epk-social-link {
    display: inline-flex;
    align-items: center;
    padding: 0.35em 0.9em;
    background: #111;
    color: #fff;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.15s ease;
}

.mat-epk-social-link:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.mat-epk-contact {
    display: flex;
    flex-direction: column;
    gap: 0.35em;
    font-size: 0.88rem;
    color: #555;
}

.mat-epk-contact a {
    color: var(--mat-accent, #1a1a2e);
}

/* --------------------------------------------------------------------------
   Responsive overrides
   -------------------------------------------------------------------------- */

@media ( max-width: 600px ) {
    .mat-track-card {
        flex-direction: column;
    }

    .mat-track-cover {
        width: 100%;
        height: 200px;
    }

    .mat-audio-player {
        max-width: 100%;
    }

    .mat-gig-card {
        flex-direction: column;
    }

    .mat-gig-date-block {
        flex-direction: row;
        width: auto;
        height: auto;
        gap: 0.4em;
        padding: 0.4em 0.75em;
    }

    .mat-gig-day {
        font-size: 1.1rem;
    }

    .mat-merch-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .mat-streaming-links {
        gap: 0.4rem;
    }

    .mat-stream-btn {
        font-size: 0.74rem;
        padding: 0.4em 0.9em;
    }
}
