/**
 * Single Product Beat Page — Styles
 *
 * Hero, bundle card, asset cards grid for free beat product pages.
 * Also shared by exclusive beat product pages (hero, card base styles).
 *
 * @package flavor-starter
 */

:root {
    --accent-glow: rgba(167, 139, 250, 0.25);
    --text-white: #f0f0f0;
    --success: #4ade80;
    --danger: #f87171;
    --oneshots-color: #f59e0b;
    --stems-color: #3b82f6;
    --midi-color: #10b981;
    --misc-color: #ec4899;
    --beat-color: #a78bfa;
}

/* ========== HERO SECTION ========== */
.product-page .hero {
    position: relative;
    padding: 60px 40px 50px;
    overflow: hidden;
}

.product-page .hero-bg-blur {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(80px) brightness(0.3) saturate(1.5);
    transform: scale(1.3);
    z-index: 0;
}

.product-page .hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.product-page .hero-artwork {
    flex-shrink: 0;
}

.product-page .hero-artwork img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.product-page .hero-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 10px;
}

.product-page .beat-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.product-page .beat-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-page .mood-tag {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--accent-active);
    color: var(--accent-active);
    background: transparent;
    letter-spacing: 0.3px;
}

/* Beat-meta block replaced by the master player + waveform.
   Old .meta-item rules kept dormant — harmless if any other template references them. */

/* Master player on the product page */
.product-page .product-player {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    max-width: 580px;
}
.product-page .product-play-btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--accent-active);
    color: #1e1e1e;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 16px;
    flex-shrink: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 16px rgba(167,139,250,0.25);
}
.product-page .product-play-btn:hover { transform: scale(1.05); box-shadow: 0 6px 22px rgba(167,139,250,0.4); }
.product-page .product-play-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.product-page .product-player.playing .product-play-btn { background: var(--accent-active); }
.product-page .product-wave {
    position: relative; flex: 1; height: 56px; min-width: 0;
    cursor: pointer; overflow: hidden; border-radius: 6px;
}
.product-page .product-wave img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.product-page .product-wave-base { filter: grayscale(1) brightness(0.85); opacity: 0.5; }
.product-page .product-wave-played { clip-path: inset(0 100% 0 0); transition: clip-path 0.08s linear; }
.product-page .product-wave:hover .product-wave-base { opacity: 0.65; }
.product-page .product-wave-missing { background: repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 6px, transparent 6px 10px); }

/* Inline stems list inside the stems asset card.
   Reuses .stem-row classes from modal.css — these are layout-only overrides. */
.product-page .stems-list-inline { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 4px; }
.product-page .asset-card-stems .stem-row { padding: 7px 10px; }
.product-page .asset-card-stems .stem-row .stem-name { width: 88px; font-size: 12.5px; }
.product-page .asset-card-stems .stem-row .stem-wave { height: 30px; }

.product-page .free-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 14px 32px;
    background: var(--accent-active);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px var(--accent-glow);
    width: fit-content;
}

.product-page .free-download-btn:hover {
    background: #9574f0;
    transform: translateY(-1px);
    box-shadow: 0 6px 30px var(--accent-glow);
}

/* ========== BUNDLE SECTION ========== */
.product-page .bundle-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px 40px;
}

.product-page .bundle-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 28px 32px;
    position: relative;
    overflow: hidden;
}

.product-page .bundle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.product-page .bundle-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.product-page .bundle-icon {
    font-size: 1.5rem;
    color: var(--accent-active);
}

.product-page .bundle-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 2px;
}

.product-page .bundle-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.product-page .bundle-pricing {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.product-page .bundle-original {
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.product-page .bundle-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
}

.product-page .bundle-includes {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.product-page .bundle-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.product-page .bundle-check.available i {
    color: var(--success);
}

.product-page .bundle-check.available span {
    color: var(--text-primary);
}

.product-page .bundle-check.unavailable i {
    color: var(--danger);
    opacity: 0.5;
}

.product-page .bundle-check.unavailable span {
    color: var(--text-secondary);
    text-decoration: line-through;
    opacity: 0.5;
}

.product-page .bundle-buy-btn {
    width: 100%;
    padding: 14px 24px;
    background: #3a3a3a;
    color: var(--text-white);
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.product-page .bundle-buy-btn:hover {
    background: #444444;
    transform: translateY(-1px);
}

/* ========== ASSETS SECTION ========== */
.product-page .assets-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px 60px;
}

.product-page .section-heading {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

.product-page .assets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ========== ASSET CARD ========== */
.product-page .asset-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-page .asset-card:hover {
    border-color: rgba(167, 139, 250, 0.2);
    transform: translateY(-2px);
}

.product-page .asset-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.product-page .asset-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.product-page .asset-icon-wrap.oneshots {
    background: rgba(245, 158, 11, 0.12);
    color: var(--oneshots-color);
}

.product-page .asset-icon-wrap.stems {
    background: rgba(59, 130, 246, 0.12);
    color: var(--stems-color);
}

.product-page .asset-icon-wrap.midi {
    background: rgba(16, 185, 129, 0.12);
    color: var(--midi-color);
}

.product-page .asset-icon-wrap.misc {
    background: rgba(236, 72, 153, 0.12);
    color: var(--misc-color);
}

.product-page .asset-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
    padding: 0;
}

.product-page .asset-card-title {
    flex: 1;
    min-width: 0;
}

.product-page .asset-card-title h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 2px;
}

.product-page .asset-count {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.product-page .asset-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    flex-shrink: 0;
}

/* ========== FILE LIST ========== */
.product-page .asset-file-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    flex: 1;
}

.product-page .asset-file-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-primary);
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.product-page .asset-file-list li i {
    color: var(--text-secondary);
    font-size: 0.8rem;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

/* ========== VST LABEL ========== */
.product-page .asset-vst-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 16px;
}

/* ========== BUY BUTTON ========== */
.product-page .asset-buy-btn {
    width: 100%;
    padding: 12px 20px;
    background: #3a3a3a;
    color: var(--text-white);
    border: none;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
}

.product-page .asset-buy-btn:hover {
    background: #444444;
}

/* Buy button loading/added states */
.product-page .asset-buy-btn.loading,
.product-page .bundle-buy-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.product-page .asset-buy-btn.added,
.product-page .bundle-buy-btn.added {
    background: rgba(74, 222, 128, 0.15);
    color: var(--success);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .product-page .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-page .hero-artwork img {
        width: 220px;
        height: 220px;
    }

    .product-page .hero-info {
        align-items: center;
    }

    .product-page .beat-title {
        font-size: 2rem;
    }

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

    .product-page .bundle-header {
        flex-direction: column;
        gap: 14px;
    }

    .product-page .bundle-pricing {
        align-self: flex-start;
    }

    .product-page .assets-grid {
        grid-template-columns: 1fr;
    }

    .product-page .hero {
        padding: 40px 20px 36px;
    }

    .product-page .bundle-section,
    .product-page .assets-section {
        padding-left: 20px;
        padding-right: 20px;
    }
}
