/* Podcast Tabs Plugin Styles */

.podcast-tabs-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.podcast-tabs-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.podcast-tabs-icon {
    width: 32px;
    height: 32px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #666;
}

.podcast-tabs-icon svg {
    width: 20px;
    height: 20px;
}

.podcast-tabs-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.podcast-tabs-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.podcast-tabs-tabs {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
    background: #fafafa;
}

.podcast-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    border-radius: 0;
}

.podcast-tab:first-child {
    border-top-left-radius: 12px;
}

.podcast-tab:last-child {
    border-top-right-radius: 12px;
}

.podcast-tab:hover {
    background-color: #f0f0f0;
    color: #333;
}

.podcast-tab.active {
    background-color: #e8e8e8;
    color: #333;
    font-weight: 600;
}

.podcast-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #007cba;
}

.tab-icon {
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-icon svg {
    width: 18px;
    height: 18px;
}

.tab-text {
    white-space: nowrap;
}

.podcast-tabs-content {
    position: relative;
    min-height: 300px;
}

.podcast-tab-panel {
    display: none;
    padding: 0;
}

.podcast-tab-panel.active {
    display: block;
}

.podcast-embed {
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.podcast-embed iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 0 0 12px 12px;
}

.podcast-placeholder {
    width: 100%;
    height: 300px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 12px 12px;
}

.placeholder-icon {
    color: #999;
    opacity: 0.6;
}

.placeholder-icon svg {
    width: 48px;
    height: 48px;
}

/* Platform-specific styling */
.podcast-tab[data-platform="spotify"] .tab-icon svg {
    color: #1db954;
}

.podcast-tab[data-platform="youtube"] .tab-icon svg {
    color: #ff0000;
}

.podcast-tab[data-platform="apple"] .tab-icon svg {
    color: #fa243c;
}

.podcast-tab[data-platform="vimeo"] .tab-icon svg {
    color: #1ab7ea;
}

.podcast-tab[data-platform="facebook"] .tab-icon svg {
    color: #1877f2;
}

.podcast-tab[data-platform="instagram"] .tab-icon svg {
    color: #e4405f;
}

.podcast-tab[data-platform="tiktok"] .tab-icon svg {
    color: #000000;
}

.podcast-tab[data-platform="linkedin"] .tab-icon svg {
    color: #0077b5;
}

.podcast-tab[data-platform="twitter"] .tab-icon svg {
    color: #000000;
}

.podcast-tab[data-platform="google"] .tab-icon svg {
    color: #4285f4;
}

.podcast-tab[data-platform="deezer"] .tab-icon svg {
    color: #ff0000;
}

.podcast-tab[data-platform="soundcloud"] .tab-icon svg {
    color: #ff5500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .podcast-tabs-tabs {
        flex-direction: column;
    }
    
    .podcast-tab {
        border-radius: 0;
        border-bottom: 1px solid #e5e5e5;
    }
    
    .podcast-tab:first-child {
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }
    
    .podcast-tab:last-child {
        border-bottom: none;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    
    .podcast-tab.active::after {
        display: none;
    }
    
    .podcast-tab.active {
        background-color: #007cba;
        color: #fff;
    }
    
    .podcast-embed iframe {
        height: 250px;
    }
    
    .podcast-placeholder {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .podcast-tabs-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 12px;
    }
    
    .podcast-tabs-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .podcast-tabs-title {
        font-size: 16px;
    }
    
    .podcast-tab {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .tab-icon {
        margin-right: 6px;
    }
    
    .tab-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* Loading state */
.podcast-tabs-container.loading .podcast-tabs-content {
    opacity: 0.6;
}

.podcast-tabs-container.loading .podcast-tab {
    pointer-events: none;
}

/* Focus states for accessibility */
.podcast-tab:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .podcast-tab {
        border: 1px solid #000;
    }
    
    .podcast-tab.active {
        background-color: #000;
        color: #fff;
    }
}
