/**
 * YouTube Channel Display - Podcast Styles
 */

/* =====================================================
   Subscribe Buttons
   ===================================================== */
.ycd-subscribe {
    margin: 24px 0;
}

.ycd-subscribe-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.ycd-subscribe-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* Button Style */
.ycd-subscribe-buttons .ycd-subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--platform-color, #333);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none !important;
}

.ycd-subscribe-buttons .ycd-subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    color: #fff !important;
}

.ycd-subscribe-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ycd-subscribe-icon svg {
    width: 20px;
    height: 20px;
}

/* Icons Style */
.ycd-subscribe-icons .ycd-subscribe-btn {
    padding: 12px;
    border-radius: 50%;
}

.ycd-subscribe-icons .ycd-subscribe-icon svg {
    width: 24px;
    height: 24px;
}

/* Minimal Style */
.ycd-subscribe-minimal .ycd-subscribe-btn {
    background: transparent;
    color: var(--platform-color, #333) !important;
    border: 2px solid var(--platform-color, #333);
    padding: 10px 16px;
}

.ycd-subscribe-minimal .ycd-subscribe-btn:hover {
    background: var(--platform-color, #333);
    color: #fff !important;
}

/* Grid columns */
.ycd-subscribe-cols-2 .ycd-subscribe-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.ycd-subscribe-cols-3 .ycd-subscribe-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.ycd-subscribe-cols-4 .ycd-subscribe-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

/* =====================================================
   Latest Episode
   ===================================================== */
.ycd-latest-episode {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    overflow: hidden;
    color: #fff;
}

.ycd-latest-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ff0000;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Hero Style */
.ycd-latest-hero .ycd-latest-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 60px 40px;
}

.ycd-latest-hero .ycd-latest-thumbnail {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.ycd-latest-hero .ycd-latest-thumbnail img {
    width: 100%;
    display: block;
}

.ycd-latest-hero .ycd-latest-thumbnail .ycd-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.9;
}

.ycd-latest-hero .ycd-latest-thumbnail:hover .ycd-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

.ycd-latest-title {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.ycd-latest-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.8;
}

.ycd-latest-description {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 24px;
    max-height: 150px;
    overflow: hidden;
}

.ycd-latest-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.ycd-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.ycd-btn-primary {
    background: #ff0000;
    color: #fff !important;
}

.ycd-btn-primary:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.ycd-latest-subscribe {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ycd-latest-subscribe .ycd-subscribe {
    margin: 0;
}

.ycd-latest-subscribe .ycd-subscribe-buttons {
    justify-content: flex-start;
}

/* Card Style */
.ycd-latest-card {
    background: #fff;
    color: #333;
}

.ycd-latest-card .ycd-latest-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.ycd-latest-card .ycd-latest-video {
    padding: 20px;
}

.ycd-latest-card .ycd-latest-info {
    padding: 20px 20px 20px 0;
}

/* =====================================================
   Featured Episode
   ===================================================== */
.ycd-featured-episode {
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
}

.ycd-featured-badge {
    background: #ff6b00;
    color: #fff;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.ycd-featured-content {
    padding: 24px;
}

.ycd-featured-hero .ycd-featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.ycd-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
}

.ycd-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ycd-featured-title {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
}

.ycd-featured-description {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

/* =====================================================
   Episode Search
   ===================================================== */
.ycd-episode-search {
    max-width: 800px;
    margin: 0 auto;
}

.ycd-search-form {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
}

.ycd-search-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 30px 0 0 30px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
}

.ycd-search-input:focus {
    border-color: #ff0000;
}

.ycd-search-btn {
    padding: 16px 24px;
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ycd-search-btn:hover {
    background: #cc0000;
}

.ycd-search-results {
    display: grid;
    gap: 16px;
}

.ycd-episode-search[data-columns="2"] .ycd-search-results {
    grid-template-columns: repeat(2, 1fr);
}

.ycd-search-result {
    display: flex;
    gap: 16px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}

.ycd-search-result:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.ycd-search-thumb {
    flex: 0 0 120px;
}

.ycd-search-thumb img {
    width: 100%;
    border-radius: 6px;
}

.ycd-search-info {
    flex: 1;
    min-width: 0;
}

.ycd-search-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.ycd-search-title a {
    color: #333;
    text-decoration: none;
}

.ycd-search-title a:hover {
    color: #ff0000;
}

.ycd-search-date {
    font-size: 12px;
    color: #666;
}

.ycd-no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}

.ycd-search-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* =====================================================
   Podcast Stats
   ===================================================== */
.ycd-podcast-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 32px;
}

.ycd-stats-cards {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: #fff;
}

.ycd-stat-item {
    text-align: center;
}

.ycd-stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.ycd-stat-label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =====================================================
   Host Info
   ===================================================== */
.ycd-host-info {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.ycd-host-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.ycd-host-image {
    flex: 0 0 120px;
}

.ycd-host-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.ycd-host-content {
    flex: 1;
}

.ycd-host-name {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
}

.ycd-host-title {
    margin: 0 0 12px;
    font-size: 14px;
    color: #ff0000;
    font-weight: 500;
}

.ycd-host-bio {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 16px;
}

.ycd-host-bio p:last-child {
    margin-bottom: 0;
}

.ycd-host-social {
    display: flex;
    gap: 12px;
}

.ycd-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 50%;
    color: #333 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.ycd-social-link:hover {
    background: #333;
    color: #fff !important;
}

.ycd-social-twitter:hover { background: #1da1f2; }
.ycd-social-instagram:hover { background: #e4405f; }
.ycd-social-facebook:hover { background: #1877f2; }
.ycd-social-tiktok:hover { background: #000; }
.ycd-social-linkedin:hover { background: #0a66c2; }
.ycd-social-website:hover { background: #333; }

/* Sidebar Style */
.ycd-host-sidebar {
    flex-direction: column;
    text-align: center;
    padding: 24px;
}

.ycd-host-sidebar .ycd-host-image {
    flex: none;
    margin-bottom: 16px;
}

.ycd-host-sidebar .ycd-host-social {
    justify-content: center;
}

/* =====================================================
   Seasons/Playlists
   ===================================================== */
.ycd-seasons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.ycd-season-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ycd-season-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ycd-season-thumbnail {
    position: relative;
}

.ycd-season-thumbnail img {
    width: 100%;
    display: block;
}

.ycd-season-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.ycd-season-info {
    padding: 16px;
}

.ycd-season-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.ycd-season-title a {
    color: #333;
    text-decoration: none;
}

.ycd-season-title a:hover {
    color: #ff0000;
}

.ycd-season-description {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* =====================================================
   Share Buttons
   ===================================================== */
.ycd-share-buttons {
    display: flex;
    gap: 8px;
}

.ycd-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ycd-share-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ycd-share-copy.copied {
    background: #22c55e;
}

/* =====================================================
   Timestamps
   ===================================================== */
.ycd-timestamp {
    display: block;
    padding: 4px 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.ycd-timestamp:hover {
    color: #ff0000;
}

.ycd-timestamp-time {
    display: inline-block;
    min-width: 50px;
    color: #3ea6ff;
    font-weight: 500;
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 900px) {
    .ycd-latest-hero .ycd-latest-content {
        grid-template-columns: 1fr;
        padding: 40px 24px;
    }

    .ycd-latest-hero .ycd-latest-video {
        padding-top: 40px;
    }

    .ycd-featured-hero .ycd-featured-content {
        grid-template-columns: 1fr;
    }

    .ycd-latest-card .ycd-latest-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .ycd-subscribe-cols-3 .ycd-subscribe-buttons,
    .ycd-subscribe-cols-4 .ycd-subscribe-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .ycd-latest-title {
        font-size: 22px;
    }

    .ycd-podcast-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .ycd-host-info {
        flex-direction: column;
        text-align: center;
    }

    .ycd-host-social {
        justify-content: center;
    }

    .ycd-episode-search[data-columns="2"] .ycd-search-results {
        grid-template-columns: 1fr;
    }

    .ycd-search-result {
        flex-direction: column;
    }

    .ycd-search-thumb {
        flex: none;
    }
}
