/**
 * Post to Podcast - Public CSS
 */

.post-to-podcast-player {
    background-color: var(--primary-dark-color, #f9f9f9);
    border: 1px solid var(--primary-dark-color, #e0e0e0);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.post-to-podcast-player h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--wp--preset--color--text, #333);
}

.post-to-podcast-player audio {
    width: 100%;
    border-radius: 30px;
    outline: none;
}

/* Responsive styles */
@media (max-width: 768px) {
    .post-to-podcast-player {
        padding: 15px;
    }
}

/* Waveform Player Custom Styles */
.post2podcast-player-wrapper {
    margin: 30px 0;
    background: transparent;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

.post2podcast-player-wrapper [data-waveform-player] {
    --wfp-button-color: currentColor;
    --wfp-text-color: currentColor;
    --wfp-text-secondary-color: currentColor;
}

.post2podcast-custom-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 16px;
    gap: 12px;
    border-top: 1px solid #f3f4f6;
    padding-top: 16px;
}

.post2podcast-speed-btn, .post2podcast-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
}

.post2podcast-speed-btn {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #4b5563;
}

.post2podcast-speed-btn:hover {
    background: #e5e7eb;
}

.post2podcast-speed-btn.speed-2x {
    background: #e0e7ff;
    color: #4f46e5;
    border-color: #c7d2fe;
}

.post2podcast-download-btn {
    background: #3b82f6;
    color: white;
    border: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.post2podcast-download-btn:hover {
    background: #2563eb;
    color: white;
}

.post2podcast-icon {
    margin-right: 6px;
    display: block;
}

/* Dark Mode Adaptation */
@media (prefers-color-scheme: dark) {
    .post2podcast-player-wrapper {
        background: transparent;
        border-color: #374151;
    }
    
    /* Inherit currentColor for dark mode texts too */

    .post2podcast-custom-controls {
        border-top-color: #374151;
    }

    .post2podcast-speed-btn {
        background: #374151;
        border-color: #4b5563;
        color: #d1d5db;
    }

    .post2podcast-speed-btn:hover {
        background: #4b5563;
    }

    .post2podcast-speed-btn.speed-2x {
        background: #3730a3;
        color: #e0e7ff;
        border-color: #4338ca;
    }
}
