/**
 * JUBU Top 3 Rated Tracks - Podium Styles
 * Art Deco themed podium display with diamond badges
 * 
 * @package JUBU_Music
 * @since 1.0.0
 */

/* ============================================
   SECTION CONTAINER
   ============================================ */
.jubu-top3-section {
    padding: 80px 5% 100px;
    background: linear-gradient(180deg, #0a0a0a 0%, #0f0f0f 50%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.jubu-top3-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.jubu-top3-subtitle {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: -40px;
    margin-bottom: 60px;
}

/* ============================================
   FLOATING DECORATIVE STARS
   ============================================ */
.jubu-floating-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.jubu-float-star {
    position: absolute;
    top: 20%;
    color: #d4af37;
    font-size: 1.2rem;
    opacity: 0.15;
    animation: jubuFloatStar 4s ease-in-out infinite;
}

@keyframes jubuFloatStar {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-20px) rotate(15deg);
        opacity: 0.25;
    }
}

/* ============================================
   PODIUM CONTAINER
   ============================================ */
.jubu-podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   PODIUM ITEM (CARD)
   ============================================ */
.jubu-podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.jubu-podium-item:hover {
    transform: translateY(-10px);
}

/* Position specific sizing */
.jubu-podium-item.position-1 {
    width: 320px;
    z-index: 3;
}

.jubu-podium-item.position-2,
.jubu-podium-item.position-3 {
    width: 280px;
    z-index: 2;
}

.jubu-podium-item.position-2 {
    margin-bottom: 30px;
}

.jubu-podium-item.position-3 {
    margin-bottom: 50px;
}

/* ============================================
   DIAMOND BADGE
   ============================================ */
.jubu-podium-badge {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: -20px;
    z-index: 10;
    transition: all 0.4s ease;
}

.jubu-podium-item.position-1 .jubu-podium-badge {
    width: 100px;
    height: 100px;
    margin-bottom: -25px;
}

.jubu-podium-badge-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.5));
}

.jubu-podium-item:hover .jubu-podium-badge {
    transform: scale(1.1) rotate(5deg);
}

/* Badge glow effects */
.jubu-podium-badge.gold .jubu-podium-badge-svg {
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
}

.jubu-podium-badge.silver .jubu-podium-badge-svg {
    filter: drop-shadow(0 0 15px rgba(192, 192, 192, 0.5));
}

.jubu-podium-badge.bronze .jubu-podium-badge-svg {
    filter: drop-shadow(0 0 15px rgba(205, 127, 50, 0.5));
}

/* ============================================
   ALBUM COVER
   ============================================ */
.jubu-podium-cover {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    border: 3px solid;
    background: #1a1a1a;
    transform: perspective(800px) rotateY(-5deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        10px 10px 30px rgba(0, 0, 0, 0.5),
        -5px -5px 20px rgba(255, 255, 255, 0.02);
}

.jubu-podium-item.position-1 .jubu-podium-cover {
    border-color: #d4af37;
    box-shadow: 
        0 0 40px rgba(212, 175, 55, 0.3),
        10px 10px 30px rgba(0, 0, 0, 0.5);
    transform: perspective(800px) rotateY(0deg);
}

.jubu-podium-item.position-2 .jubu-podium-cover {
    border-color: #c0c0c0;
    transform: perspective(800px) rotateY(8deg);
}

.jubu-podium-item.position-3 .jubu-podium-cover {
    border-color: #cd7f32;
    transform: perspective(800px) rotateY(-8deg);
}

.jubu-podium-item:hover .jubu-podium-cover {
    transform: perspective(800px) rotateY(0deg) scale(1.02);
}

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

.jubu-podium-item:hover .jubu-podium-cover img {
    transform: scale(1.05);
}

/* Art Deco corners on cover */
.jubu-podium-cover::before,
.jubu-podium-cover::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    border: 2px solid;
    opacity: 0.6;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.jubu-podium-item.position-1 .jubu-podium-cover::before,
.jubu-podium-item.position-1 .jubu-podium-cover::after {
    border-color: #d4af37;
}

.jubu-podium-item.position-2 .jubu-podium-cover::before,
.jubu-podium-item.position-2 .jubu-podium-cover::after {
    border-color: #c0c0c0;
}

.jubu-podium-item.position-3 .jubu-podium-cover::before,
.jubu-podium-item.position-3 .jubu-podium-cover::after {
    border-color: #cd7f32;
}

.jubu-podium-cover::before {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.jubu-podium-cover::after {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.jubu-podium-item:hover .jubu-podium-cover::before,
.jubu-podium-item:hover .jubu-podium-cover::after {
    opacity: 1;
}

/* ============================================
   TRACK INFO
   ============================================ */
.jubu-podium-info {
    text-align: center;
    padding: 20px 10px;
    width: 100%;
}

.jubu-podium-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    letter-spacing: 0.03em;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.jubu-podium-item.position-1 .jubu-podium-title {
    font-size: 1.6rem;
    color: #d4af37;
}

.jubu-podium-item.position-2 .jubu-podium-title {
    color: #c0c0c0;
}

.jubu-podium-item.position-3 .jubu-podium-title {
    color: #cd7f32;
}

.jubu-podium-item:hover .jubu-podium-title {
    text-shadow: 0 0 20px currentColor;
}

/* ============================================
   RATING STARS
   ============================================ */
.jubu-podium-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.jubu-podium-stars {
    display: flex;
    gap: 2px;
}

.jubu-podium-star {
    font-size: 1.8rem;
    line-height: 1;
    transition: all 0.3s ease;
}

/* Gold position - larger stars */
.jubu-podium-item.position-1 .jubu-podium-star {
    font-size: 2.2rem;
}

.jubu-podium-item.position-1 .jubu-podium-star.full {
    color: #d4af37;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.jubu-podium-item.position-1 .jubu-podium-star.empty {
    color: rgba(212, 175, 55, 0.3);
}

/* Silver position */
.jubu-podium-item.position-2 .jubu-podium-star.full {
    color: #c0c0c0;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.jubu-podium-item.position-2 .jubu-podium-star.empty {
    color: rgba(192, 192, 192, 0.3);
}

/* Bronze position */
.jubu-podium-item.position-3 .jubu-podium-star.full {
    color: #cd7f32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.jubu-podium-item.position-3 .jubu-podium-star.empty {
    color: rgba(205, 127, 50, 0.3);
}

.jubu-podium-score {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.jubu-podium-item.position-1 .jubu-podium-score {
    color: #d4af37;
}

.jubu-podium-item.position-2 .jubu-podium-score {
    color: #c0c0c0;
}

.jubu-podium-item.position-3 .jubu-podium-score {
    color: #cd7f32;
}

.jubu-podium-votes {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   META (ERA & COLLECTION)
   ============================================ */
.jubu-podium-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.jubu-podium-separator {
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .jubu-podium-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .jubu-podium-item.position-1,
    .jubu-podium-item.position-2,
    .jubu-podium-item.position-3 {
        width: 100%;
        max-width: 320px;
        margin-bottom: 0;
    }
    
    .jubu-podium-item .jubu-podium-cover {
        transform: none;
    }
    
    .jubu-podium-item:hover .jubu-podium-cover {
        transform: scale(1.02);
    }
    
    /* Reorder: 1st, 2nd, 3rd vertically */
    .jubu-podium-item.position-1 { order: 1; }
    .jubu-podium-item.position-2 { order: 2; }
    .jubu-podium-item.position-3 { order: 3; }
}

@media (max-width: 480px) {
    .jubu-top3-section {
        padding: 60px 4% 80px;
    }
    
    .jubu-top3-subtitle {
        font-size: 0.85rem;
        margin-bottom: 40px;
    }
    
    .jubu-podium-item.position-1,
    .jubu-podium-item.position-2,
    .jubu-podium-item.position-3 {
        max-width: 280px;
    }
    
    .jubu-podium-badge {
        width: 70px;
        height: 70px;
    }
    
    .jubu-podium-item.position-1 .jubu-podium-badge {
        width: 85px;
        height: 85px;
    }
    
    .jubu-podium-title {
        font-size: 1.2rem;
    }
    
    .jubu-podium-item.position-1 .jubu-podium-title {
        font-size: 1.4rem;
    }
    
    .jubu-podium-star {
        font-size: 1.5rem;
    }
    
    .jubu-podium-item.position-1 .jubu-podium-star {
        font-size: 1.8rem;
    }
}

/* ============================================
   HOVER GLOW EFFECTS
   ============================================ */
.jubu-podium-item.position-1:hover {
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.3));
}

.jubu-podium-item.position-2:hover {
    filter: drop-shadow(0 0 25px rgba(192, 192, 192, 0.25));
}

.jubu-podium-item.position-3:hover {
    filter: drop-shadow(0 0 25px rgba(205, 127, 50, 0.25));
}
