/**
 * Feminism Magazine - Audio Podcast Player CSS
 * Mini player, Playlist, Speed control, Show notes, Skip silence
 * Version: 2.0.0
 */

/* ==============================================
   PODCAST PLAYER ENHANCEMENT
   ============================================== */
.fem-podcast-player {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
}

.fem-podcast-player .fem-audio__controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Additional control buttons */
.fem-audio__mini-btn,
.fem-audio__download,
.fem-audio__notes-btn,
.fem-audio__silence-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.fem-audio__mini-btn:hover,
.fem-audio__download:hover,
.fem-audio__notes-btn:hover,
.fem-audio__silence-btn:hover {
    background: #D4486D;
    color: #fff;
}

.fem-audio__notes-btn.active,
.fem-audio__silence-btn.active {
    background: #D4486D;
    color: #fff;
}

/* Show notes panel */
.fem-audio__notes {
    margin-top: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    animation: fem-slide-down 0.3s ease;
}

@keyframes fem-slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fem-audio__notes-content {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #444;
}

.fem-audio__notes-content h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.fem-audio__notes-content p {
    margin-bottom: 0.75rem;
}

.fem-audio__notes-content ul {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Minimized state */
.fem-podcast-player.minimized {
    display: none;
}

/* ==============================================
   MINI PLAYER (FIXED BOTTOM)
   ============================================== */
.fem-mini-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9998;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.fem-mini-player.active {
    transform: translateY(0);
}

.fem-mini-player__progress {
    height: 3px;
    background: #e0e0e0;
    cursor: pointer;
}

.fem-mini-player__progress-bar {
    height: 100%;
    background: #D4486D;
    width: 0%;
    transition: width 0.1s linear;
}

.fem-mini-player__content {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 1rem;
}

.fem-mini-player__poster {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #f0f0f0;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.fem-mini-player__info {
    flex: 1;
    min-width: 0;
}

.fem-mini-player__title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fem-mini-player__artist {
    font-size: 0.8125rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fem-mini-player__controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fem-mini-player__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.fem-mini-player__btn:hover {
    background: #f5f5f5;
}

.fem-mini-player__play {
    background: #D4486D;
    color: #fff;
    width: 44px;
    height: 44px;
}

.fem-mini-player__play:hover {
    background: #B83A5A;
    transform: scale(1.05);
}

.fem-mini-player__play .pause-icon {
    display: none;
}

.fem-mini-player__play.playing .play-icon {
    display: none;
}

.fem-mini-player__play.playing .pause-icon {
    display: block;
}

.fem-mini-player__expand,
.fem-mini-player__close {
    color: #666;
}

.fem-mini-player__expand:hover,
.fem-mini-player__close:hover {
    background: #f0f0f0;
    color: #333;
}

/* ==============================================
   PLAYLIST STYLES
   ============================================== */
.fem-audio-playlist {
    margin-top: 1rem;
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
}

.fem-audio-playlist__title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}

.fem-audio-playlist__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fem-audio-playlist__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fem-audio-playlist__item:hover {
    background: #f5f5f5;
}

.fem-audio-playlist__item.active {
    background: #f9f5f5;
}

.fem-audio-playlist__item.active .fem-audio-playlist__number {
    background: #D4486D;
    color: #fff;
}

.fem-audio-playlist__number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
}

.fem-audio-playlist__info {
    flex: 1;
}

.fem-audio-playlist__track-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fem-audio-playlist__track-duration {
    font-size: 0.75rem;
    color: #999;
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 768px) {
    .fem-podcast-player {
        padding: 1rem;
    }
    
    .fem-podcast-player .fem-audio__controls {
        gap: 0.5rem;
    }
    
    .fem-mini-player__content {
        padding: 0.5rem;
        gap: 0.75rem;
    }
    
    .fem-mini-player__info {
        max-width: 120px;
    }
    
    .fem-mini-player__expand {
        display: none;
    }
}

/* Safe area for mobile devices */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .fem-mini-player {
        padding-bottom: env(safe-area-inset-bottom);
    }
}
