/* =============================================
   Artist Page & Marketplace Styles
   ============================================= */

/* Artist Header */
.artist-hero {
    text-align: center;
    padding: 10rem 5% 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.artist-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.artist-discipline {
    font-size: 1rem;
    font-style: italic;
    opacity: 0.6;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.artist-bio {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.artist-socials {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-link {
    color: #e8e8e8;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: capitalize;
    border-bottom: 1px solid rgba(232, 232, 232, 0.3);
    transition: opacity 0.3s;
}

.social-link:hover {
    opacity: 0.6;
}

/* Beats Section */
.beats-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 5% 8rem;
}

.beats-section h2 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(232, 232, 232, 0.2);
    padding-bottom: 1rem;
}

/* Beat Cards */
.beats-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.beat-card {
    border: 1px solid rgba(232, 232, 232, 0.1);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.3s, background 0.3s;
}

.beat-card:hover {
    border-color: rgba(232, 232, 232, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.beat-card-top {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
}

/* Beat Cover / Play Button */
.beat-cover {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.beat-cover-placeholder {
    font-size: 2.5rem;
    font-weight: 300;
    opacity: 0.3;
    text-transform: uppercase;
}

.play-btn {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.beat-cover:hover .play-btn {
    opacity: 1;
}

.play-icon {
    color: #e8e8e8;
    font-size: 1.8rem;
}

/* Beat Info */
.beat-info {
    flex: 1;
    min-width: 0;
}

.beat-title {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.beat-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.beat-genre,
.beat-bpm,
.beat-key {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.5;
    padding: 0.15rem 0.5rem;
    border: 1px solid rgba(232, 232, 232, 0.15);
}

.beat-description {
    font-size: 0.95rem;
    opacity: 0.7;
    margin-bottom: 0.75rem;
}

.beat-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    opacity: 0.4;
    font-style: italic;
}

.tag::before {
    content: '#';
}

/* License Section */
.beat-licenses {
    border-top: 1px solid rgba(232, 232, 232, 0.08);
    padding: 1rem 1.5rem 1.5rem;
}

.license-header {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.4;
    margin-bottom: 0.75rem;
}

.license-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(232, 232, 232, 0.05);
}

.license-row:last-child {
    border-bottom: none;
}

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

.license-name {
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.license-details {
    font-size: 0.8rem;
    opacity: 0.45;
    margin-top: 0.2rem;
}

.license-price {
    font-size: 1.1rem;
    letter-spacing: 1px;
    white-space: nowrap;
    min-width: 70px;
    text-align: right;
}

.buy-btn {
    background: transparent;
    color: #e8e8e8;
    border: 1px solid rgba(232, 232, 232, 0.3);
    padding: 0.5rem 1.5rem;
    font-family: 'Georgia', serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    white-space: nowrap;
}

.buy-btn:hover {
    background: rgba(232, 232, 232, 0.1);
    border-color: rgba(232, 232, 232, 0.5);
}

/* ─── Persistent Player Bar ──────────────────────────────────── */
.player-bar {
    position: fixed;
    bottom: -80px;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(15, 15, 15, 0.97);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(232, 232, 232, 0.1);
    z-index: 999;
    transition: bottom 0.3s;
}

.player-bar.active {
    bottom: 0;
}

.player-inner {
    max-width: 1000px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem;
}

.player-play-btn {
    background: none;
    border: 1px solid rgba(232, 232, 232, 0.3);
    color: #e8e8e8;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.3s;
}

.player-play-btn:hover {
    border-color: rgba(232, 232, 232, 0.6);
}

.player-track-info {
    flex-shrink: 0;
    max-width: 200px;
    overflow: hidden;
}

.player-track-name {
    font-size: 0.85rem;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.player-time {
    font-size: 0.75rem;
    opacity: 0.5;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    min-width: 35px;
    text-align: center;
}

.player-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(232, 232, 232, 0.1);
    cursor: pointer;
    position: relative;
}

.player-progress {
    height: 100%;
    background: rgba(232, 232, 232, 0.6);
    width: 0;
    transition: width 0.1s linear;
}

/* ─── Purchase Modal ─────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #141414;
    border: 1px solid rgba(232, 232, 232, 0.15);
    max-width: 450px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #e8e8e8;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-content h3 {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.modal-price-display {
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

#paypal-button-container {
    min-height: 50px;
    margin-bottom: 1.5rem;
}

.paypal-placeholder {
    font-size: 0.9rem;
    opacity: 0.5;
    font-style: italic;
    padding: 1rem;
    border: 1px dashed rgba(232, 232, 232, 0.2);
}

.payment-success {
    color: #6fbf73;
    font-size: 1rem;
    padding: 1rem;
}

.payment-error {
    color: #f44336;
    font-size: 0.9rem;
    padding: 1rem;
}

.download-section {
    margin-top: 1rem;
}

.download-btn {
    display: inline-block;
    color: #e8e8e8;
    text-decoration: none;
    border: 1px solid rgba(232, 232, 232, 0.4);
    padding: 0.75rem 2rem;
    font-family: 'Georgia', serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.download-btn:hover {
    background: rgba(232, 232, 232, 0.1);
    border-color: rgba(232, 232, 232, 0.6);
}

/* Error / empty states */
.error-message {
    text-align: center;
    padding: 10rem 5%;
    font-size: 1.1rem;
    opacity: 0.7;
}

.error-message a {
    color: #e8e8e8;
    border-bottom: 1px solid rgba(232, 232, 232, 0.3);
    text-decoration: none;
}

.no-beats {
    text-align: center;
    opacity: 0.5;
    font-style: italic;
    padding: 3rem 0;
}

/* ─── Mobile Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
    .beat-card-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .beat-cover {
        width: 160px;
        height: 160px;
    }

    .play-btn {
        opacity: 0.7;
    }

    .beat-meta {
        justify-content: center;
    }

    .beat-tags {
        justify-content: center;
    }

    .license-row {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .license-price {
        text-align: center;
    }

    .player-inner {
        padding: 0 1rem;
        gap: 0.5rem;
    }

    .player-track-info {
        max-width: 120px;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }

    /* Add padding at bottom for player bar */
    .beats-section {
        padding-bottom: 10rem;
    }
}
