/**
 * JUBU Single Track Page - Art Déco Styles
 * 
 * Styles personnalisés pour les pages single track
 * 
 * @package JUBU_Music
 * @since 1.0.0
 */

/* ============================================
   Variables
   ============================================ */
:root {
    --jubu-gold: #d4af37;
    --jubu-gold-light: #f4d03f;
    --jubu-gold-dark: #b8941e;
    --jubu-black: #0a0a0a;
    --jubu-dark-gray: #1a1a1a;
    --jubu-font-heading: 'Cormorant Garamond', serif;
    --jubu-font-body: 'Montserrat', sans-serif;
}

/* ============================================
   Page Container
   ============================================ */
.jubu-single-track-page {
    background: var(--jubu-black);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 80px 0 100px;
}

/* Background Cover Blur */
.jubu-track-bg-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(50px) brightness(0.3);
    transform: scale(1.2);
    z-index: 0;
}

/* Art Déco Frame */
.jubu-track-frame {
    position: fixed;
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    pointer-events: none;
    z-index: 1;
}

.jubu-track-frame::before,
.jubu-track-frame::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border: 2px solid var(--jubu-gold);
}

.jubu-track-frame::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.jubu-track-frame::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

/* Container */
.jubu-track-container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ============================================
   Hero Section
   ============================================ */
.jubu-track-hero {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
}

/* Cover Section */
.jubu-track-cover-section {
    position: relative;
}

.jubu-track-cover-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: var(--jubu-dark-gray);
    border: 3px solid var(--jubu-gold);
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(212, 175, 55, 0.2);
}

.jubu-track-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.jubu-track-cover-wrapper:hover .jubu-track-cover-img {
    transform: scale(1.05);
}

.jubu-track-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--jubu-gold);
    background: linear-gradient(135deg, var(--jubu-dark-gray), var(--jubu-black));
}

/* Cover Decorations */
.jubu-cover-deco {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--jubu-gold);
    z-index: 5;
    pointer-events: none;
}

.jubu-cover-deco-tl {
    top: 15px;
    left: 15px;
    border-right: none;
    border-bottom: none;
}

.jubu-cover-deco-tr {
    top: 15px;
    right: 15px;
    border-left: none;
    border-bottom: none;
}

.jubu-cover-deco-bl {
    bottom: 15px;
    left: 15px;
    border-right: none;
    border-top: none;
}

.jubu-cover-deco-br {
    bottom: 15px;
    right: 15px;
    border-left: none;
    border-top: none;
}

/* Play Overlay */
.jubu-track-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.jubu-track-cover-wrapper:hover .jubu-track-cover-overlay {
    opacity: 1;
}

.jubu-track-play-main {
    width: 100px;
    height: 100px;
    background: rgba(10, 10, 10, 0.9);
    border: 3px solid var(--jubu-gold);
    color: var(--jubu-gold);
    font-size: 32px;
    cursor: pointer;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.jubu-track-play-main:hover {
    background: rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
    transform: scale(1.1);
}

.jubu-track-play-main .play-icon {
    margin-left: 6px;
}

/* Vinyl Disc */
.jubu-vinyl-disc {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #333 20%, #111 21%, #222 40%, #111 41%, #1a1a1a 100%);
    border-radius: 50%;
    transform: translate(60%, -50%);
    z-index: -1;
    opacity: 0.8;
    transition: transform 0.4s ease;
}

.jubu-vinyl-disc.spinning {
    animation: vinylSpin 3s linear infinite;
}

.jubu-vinyl-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--jubu-gold) 0%, var(--jubu-gold-dark) 50%, #333 51%, #111 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.jubu-vinyl-inner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #0a0a0a;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

@keyframes vinylSpin {
    from { transform: translate(60%, -50%) rotate(0deg); }
    to { transform: translate(60%, -50%) rotate(360deg); }
}

/* ============================================
   Info Section
   ============================================ */
.jubu-track-info-section {
    padding-top: 20px;
}

/* Badges */
.jubu-track-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.jubu-badge {
    padding: 8px 20px;
    font-family: var(--jubu-font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 2px solid;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.jubu-badge-era {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--jubu-gold);
    color: var(--jubu-gold);
}

.jubu-badge-collection {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.9);
}

/* Title */
.jubu-track-title {
    font-family: var(--jubu-font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--jubu-gold);
    line-height: 1.1;
    margin: 0 0 20px 0;
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
}

/* Separator */
.jubu-art-deco-separator {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.jubu-art-deco-separator::before,
.jubu-art-deco-separator::after {
    content: '';
    height: 2px;
    background: linear-gradient(90deg, var(--jubu-gold), transparent);
}

.jubu-art-deco-separator::before {
    width: 0;
}

.jubu-art-deco-separator::after {
    flex: 1;
    max-width: 200px;
}

.jubu-separator-diamond {
    width: 12px;
    height: 12px;
    background: var(--jubu-gold);
    transform: rotate(45deg);
}

/* Rating Display */
.jubu-track-rating-display {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}

.jubu-stars-large {
    display: flex;
    gap: 4px;
}

.jubu-star-lg {
    font-size: 1.8rem;
    line-height: 1;
}

.jubu-star-lg.full {
    color: var(--jubu-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.jubu-star-lg.half {
    background: linear-gradient(90deg, var(--jubu-gold) 50%, rgba(212, 175, 55, 0.2) 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.jubu-star-lg.empty {
    color: rgba(212, 175, 55, 0.3);
}

.jubu-rating-numbers {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.jubu-rating-avg {
    font-family: var(--jubu-font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--jubu-gold);
}

.jubu-rating-count {
    font-family: var(--jubu-font-body);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Meta Grid */
.jubu-track-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.jubu-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
}

.jubu-meta-icon {
    font-size: 1.5rem;
}

.jubu-meta-label {
    font-family: var(--jubu-font-body);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.jubu-meta-value {
    font-family: var(--jubu-font-body);
    font-size: 1rem;
    color: var(--jubu-gold);
    font-weight: 600;
    margin-left: auto;
}

/* ============================================
   Audio Player
   ============================================ */
.jubu-track-player {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(10, 10, 10, 0.9));
    border: 2px solid var(--jubu-gold);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.jubu-player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.jubu-player-btn {
    width: 50px;
    height: 50px;
    background: var(--jubu-gold);
    border: none;
    border-radius: 50%;
    color: var(--jubu-black);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.jubu-player-btn:hover {
    background: var(--jubu-gold-light);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.jubu-player-btn .play-icon {
    margin-left: 3px;
}

.jubu-player-progress {
    flex: 1;
}

.jubu-progress-bar {
    height: 8px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    margin-bottom: 8px;
}

.jubu-progress-filled {
    height: 100%;
    background: linear-gradient(90deg, var(--jubu-gold-dark), var(--jubu-gold), var(--jubu-gold-light));
    width: 0%;
    transition: width 0.1s linear;
}

.jubu-player-times {
    display: flex;
    justify-content: space-between;
    font-family: var(--jubu-font-body);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.jubu-player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
}

.jubu-volume-icon {
    cursor: pointer;
}

.jubu-volume-slider {
    flex: 1;
    height: 6px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
}

.jubu-volume-filled {
    height: 100%;
    background: var(--jubu-gold);
    width: 100%;
    transition: width 0.1s linear;
}

/* ============================================
   Action Buttons
   ============================================ */
.jubu-track-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.jubu-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-family: var(--jubu-font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.jubu-btn-nft {
    background: linear-gradient(135deg, var(--jubu-gold), var(--jubu-gold-light));
    border-color: var(--jubu-gold);
    color: var(--jubu-black);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.jubu-btn-nft:hover {
    background: linear-gradient(135deg, var(--jubu-gold-light), var(--jubu-gold));
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
    transform: translateY(-3px);
}

.jubu-btn-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.8);
}

.jubu-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--jubu-gold);
    color: var(--jubu-gold);
}

.btn-icon {
    font-size: 1.2em;
}

/* ============================================
   Content Sections
   ============================================ */
.jubu-track-section {
    margin-bottom: 60px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.6), rgba(10, 10, 10, 0.8));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    position: relative;
}

.jubu-track-section::before,
.jubu-track-section::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.jubu-track-section::before {
    top: 15px;
    left: 15px;
    border-right: none;
    border-bottom: none;
}

.jubu-track-section::after {
    bottom: 15px;
    right: 15px;
    border-left: none;
    border-top: none;
}

.jubu-section-title {
    font-family: var(--jubu-font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--jubu-gold);
    text-align: center;
    margin: 0 0 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-deco {
    color: var(--jubu-gold);
    font-size: 0.8em;
    opacity: 0.6;
}

/* External Links */
.jubu-external-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.jubu-external-link-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.jubu-external-link-card:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--jubu-gold);
    transform: translateX(5px);
}

.jubu-link-icon {
    font-size: 1.5rem;
}

.jubu-link-platform {
    font-family: var(--jubu-font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    flex: 1;
}

.jubu-link-arrow {
    color: var(--jubu-gold);
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.jubu-external-link-card:hover .jubu-link-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* Tags */
.jubu-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.jubu-tag {
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    font-family: var(--jubu-font-body);
    font-size: 0.85rem;
    color: var(--jubu-gold);
    transition: all 0.3s ease;
}

.jubu-tag:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--jubu-gold);
}

/* Related Tracks */
.jubu-related-tracks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.jubu-related-card {
    text-decoration: none;
    transition: all 0.4s ease;
}

.jubu-related-card:hover {
    transform: translateY(-10px);
}

.jubu-related-cover {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 12px;
}

.jubu-related-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.jubu-related-card:hover .jubu-related-cover img {
    transform: scale(1.1);
}

.jubu-related-card:hover .jubu-related-cover {
    border-color: var(--jubu-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.jubu-related-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jubu-dark-gray);
    color: var(--jubu-gold);
    font-size: 3rem;
}

.jubu-related-info {
    text-align: center;
}

.jubu-related-title {
    font-family: var(--jubu-font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--jubu-gold);
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.jubu-related-era {
    font-family: var(--jubu-font-body);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.jubu-no-related {
    text-align: center;
    font-family: var(--jubu-font-body);
    color: rgba(255, 255, 255, 0.6);
    grid-column: 1 / -1;
}

.jubu-no-related a {
    color: var(--jubu-gold);
    text-decoration: underline;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1200px) {
    .jubu-track-hero {
        grid-template-columns: 400px 1fr;
        gap: 40px;
    }
    
    .jubu-related-tracks {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 968px) {
    .jubu-track-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .jubu-track-cover-section {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .jubu-vinyl-disc {
        display: none;
    }
    
    .jubu-track-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .jubu-related-tracks {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .jubu-track-frame {
        top: 15px;
        left: 15px;
        right: 15px;
        bottom: 15px;
    }
}

@media (max-width: 768px) {
    .jubu-single-track-page {
        padding: 60px 0 80px;
    }
    
    .jubu-track-title {
        font-size: 2rem;
    }
    
    .jubu-player-controls {
        flex-wrap: wrap;
    }
    
    .jubu-player-progress {
        order: 3;
        width: 100%;
        flex: none;
    }
    
    .jubu-player-volume {
        display: none;
    }
    
    .jubu-track-actions {
        flex-direction: column;
    }
    
    .jubu-btn {
        width: 100%;
        justify-content: center;
    }
    
    .jubu-track-section {
        padding: 25px;
    }
    
    .jubu-external-links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .jubu-related-tracks {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .jubu-track-rating-display {
        flex-direction: column;
        text-align: center;
    }
    
    .jubu-track-frame {
        display: none;
    }
}
