/* Ayşe Tolga Podcast Plugin - Frontend Styles */

/* Podcast Player Styles */
.atp-podcast-player {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #C4C4C4;
}

.atp-podcast-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.atp-podcast-image {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
}

.atp-podcast-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.atp-podcast-info {
    flex: 1;
    min-width: 0;
}

.atp-podcast-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 4px;
}

.atp-podcast-category {
    color: #494949;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

@media (max-width: 768px) {
    .atp-podcast-category {
        text-align: center;
        width: 100%;
    }
    .atp-podcast-date {
        text-align: center;
        width: 100%;
    }
}

.atp-podcast-date {
    color: #494949;
    font-size: 10px;
    line-height: 1;
}

.atp-podcast-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.atp-podcast-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    color: #333;
    flex: 1;
}

.atp-podcast-list .atp-podcast-title {
    max-width: 47%;
}

.atp-podcast-play-button {
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.atp-podcast-play-button:hover {
    transform: scale(1.1);
}

.atp-podcast-play-button svg {
    width: 32px;
    height: 32px;
    fill: #333;
}

.atp-podcast-play-button.playing {
}

.atp-podcast-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.atp-podcast-duration {
    color: #999;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* Advanced Player Inline Styles for Full-Width */
.atp-advanced-podcast-player-inline {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
}

.atp-advanced-podcast-player-inline .atp-player-progress-container {
    margin-bottom: 15px;
}

.atp-advanced-podcast-player-inline .atp-player-progress-bar {
    position: relative;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    cursor: pointer;
}

.atp-advanced-podcast-player-inline .atp-player-progress-fill {
    height: 100%;
    background: #667eea;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

.atp-advanced-podcast-player-inline .atp-player-progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.atp-advanced-podcast-player-inline .atp-player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.atp-advanced-podcast-player-inline .atp-player-control-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666;
}

.atp-advanced-podcast-player-inline .atp-player-control-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.atp-advanced-podcast-player-inline .atp-player-main-play-btn {
    width: 44px;
    height: 44px;
    background: #949596;
    border: none;
    border-radius: 50% !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 0 8px;
}

.atp-advanced-podcast-player-inline .atp-player-main-play-btn:hover {
    background: #555;
    transform: scale(1.05);
}

.atp-advanced-podcast-player-inline .atp-player-main-play-btn.playing {
    background: #667eea;
}

.atp-advanced-podcast-player-inline .atp-player-main-play-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.atp-advanced-podcast-player-inline .atp-speed-btn .atp-speed-text {
    font-size: 11px;
    font-weight: 700;
    color: inherit;
}

.atp-advanced-podcast-player-inline .atp-player-control-btn svg {
    fill: currentColor;
}

.atp-advanced-podcast-player-inline .atp-player-time-display {
    margin-left: 15px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
}

.atp-advanced-podcast-player-inline .atp-duration-separator {
    color: #999;
}

/* Podcast List Styles */
.atp-podcast-list[data-style="grid"] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.atp-podcast-list[data-style="grid"] .atp-podcast-content {
    flex-direction: column;
    text-align: center;
}

.atp-podcast-list[data-style="grid"] .atp-podcast-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
}

.atp-podcast-list[data-style="grid"] .atp-podcast-meta {
    justify-content: center;
}

/* Podcast Categories Styles */
.atp-podcast-categories[data-style="list"] {
    list-style: none;
    padding: 0;
}

.atp-podcast-categories[data-style="list"] .atp-podcast-category-item {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.atp-podcast-categories[data-style="list"] .atp-podcast-category-item:last-child {
    border-bottom: none;
}

.atp-podcast-categories[data-style="buttons"] {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.atp-podcast-categories[data-style="buttons"] .atp-podcast-category-link {
    background: #f4f5f7;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.atp-podcast-categories[data-style="buttons"] .atp-podcast-category-link:hover {
    background: #333;
    color: #fff;
}

.atp-podcast-categories[data-style="grid"] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.atp-podcast-categories[data-style="grid"] .atp-podcast-category-item {
    background: #f9f9f9;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.atp-podcast-categories[data-style="grid"] .atp-podcast-category-item:hover {
    transform: translateY(-2px);
}

.atp-podcast-category-link {
    text-decoration: none;
    color: #333;
}

.atp-category-count {
    color: #999;
    font-size: 0.9em;
    margin-left: 5px;
}

/* Compact podcast player style */
.atp-podcast-player[data-style="compact"] {
    padding: 15px;
}

.atp-podcast-player[data-style="compact"] .atp-podcast-content {
    gap: 15px;
}

.atp-podcast-player[data-style="compact"] .atp-podcast-image {
    width: 80px;
    height: 80px;
}

.atp-podcast-player[data-style="compact"] .atp-podcast-title {
    font-size: 16px;
    margin-bottom: 5px;
}

.atp-podcast-player[data-style="compact"] .atp-podcast-excerpt {
    display: none;
}

/* Full width podcast player style */
.atp-podcast-player[data-style="full-width"] {
    padding: 30px;
}

.atp-podcast-player[data-style="full-width"] .atp-podcast-content {
    flex-direction: column;
}

.atp-podcast-player[data-style="full-width"] .atp-podcast-image {
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.atp-podcast-player[data-style="full-width"] .atp-podcast-title {
    font-size: 40px;
    text-align: center;
    font-weight: 600;
}

.atp-podcast-player[data-style="full-width"] .atp-podcast-meta {
    justify-content: center;
}

.atp-podcast-player[data-style="full-width"] .atp-podcast-title-wrapper {
    padding: 25px;
}

@media (max-width: 690px) {
    .atp-podcast-player[data-style="full-width"] .atp-podcast-title {
        font-size: 24px;
    }
}

/* İlişkili Podcast'ler Bölümü */
.atp-related-podcasts-section {
    margin-top: 40px;
    padding: 30px 0;
    border-top: 2px solid #f5f5f5;
}

.atp-related-podcasts-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    text-align: left;
    position: relative;
}

.atp-related-podcasts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.atp-related-podcast-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.atp-related-podcast-item:hover {
    border-color: #007cba;
    box-shadow: 0 4px 16px rgba(0,124,186,0.1);
    transform: translateY(-2px);
}

.atp-related-podcast-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.atp-related-podcast-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.atp-related-podcast-content {
    flex: 1;
    min-width: 0;
}

.atp-related-podcast-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.atp-related-podcast-category {
    background: #007cba;
    color: white;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 12px;
    line-height: 1;
}

.atp-related-podcast-date,
.atp-related-podcast-duration {
    color: #666;
    font-size: 12px;
    font-weight: 500;
}

.atp-related-podcast-date:before {
    content: '📅 ';
    margin-right: 2px;
}

.atp-related-podcast-duration:before {
    content: '⏱️ ';
    margin-right: 2px;
}

.atp-related-podcast-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.atp-related-podcast-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.atp-related-podcast-title a:hover {
    color: #007cba;
}

.atp-related-podcast-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.atp-related-podcast-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.atp-related-podcast-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.atp-related-podcast-play-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,124,186,0.3);
}

.atp-related-podcast-play-btn svg {
    fill: currentColor;
}

.atp-related-podcast-read-more {
    color: #007cba;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    border: 1px solid #007cba;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.atp-related-podcast-read-more:hover {
    background: #007cba;
    color: white;
    transform: translateY(-1px);
}

/* Related Podcasts Wrapper - Podcast List Shortcode Kullanımı */
.atp-related-podcasts-wrapper {
    background: #F4F5F7;
    width: 100%;
    padding: 50px 0;
    margin: 0;
}

/* Main-content dışında konumlandırıldığında container stilini uygula */
.atp-related-podcasts-wrapper .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
}

.atp-related-podcasts-wrapper .atp-related-podcasts-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

/* Podcast list içinde yer alan podcast'ler için özel stil */
.atp-related-podcasts-wrapper .atp-podcast-list {
    margin: 0;
}

.atp-related-podcasts-wrapper .atp-podcast-player {
    border-bottom: 1px solid #e1e8ed;
    transition: all 0.3s ease;
}

.atp-related-podcasts-wrapper .atp-podcast-player:last-child {
    border-bottom: none;
}

/* Main content container'a eklendiğinde stil ayarları */
.container.main-content .atp-related-podcasts-wrapper,
.main-content .atp-related-podcasts-wrapper {
    background: #fafbfc;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0 0 0;
    border: 1px solid #e1e8ed;
}

/* Responsive design for wrapper */
@media (max-width: 768px) {
    .atp-related-podcasts-wrapper {
        padding: 30px 0;
    }
    
    .atp-related-podcasts-wrapper .container {
        padding: 0 20px;
    }
    
    .atp-related-podcasts-wrapper .atp-related-podcasts-title {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    .container.main-content .atp-related-podcasts-wrapper,
    .main-content .atp-related-podcasts-wrapper {
        padding: 20px 15px;
        margin: 30px 0 0 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .atp-podcast-content {
        flex-direction: column;
    }
    
    .atp-podcast-image {
        width: 100%;
        height: 200px;
        margin: 0 0 15px 0;
    }
    
    .atp-podcast-title {
        font-size: 16px;
    }
    
    .atp-podcast-title-wrapper {
        gap: 10px;
    }
    
    .atp-podcast-play-button {
        width: 35px;
        height: 35px;
    }
    
    .atp-podcast-play-button svg {
        width: 14px;
        height: 14px;
    }
    
    .atp-podcast-list[data-style="grid"] {
        grid-template-columns: 1fr;
    }
    
    .atp-podcast-list[data-style="grid"] .atp-podcast-image {
        width: 150px;
        height: 150px;
    }
    
    .atp-advanced-podcast-player-inline .atp-player-controls {
        gap: 8px;
    }
    
    .atp-advanced-podcast-player-inline .atp-player-control-btn {
        width: 32px;
        height: 32px;
    }
    
    .atp-advanced-podcast-player-inline .atp-player-main-play-btn {
        width: 38px;
        height: 38px;
        margin: 0 5px;
    }
    
    .atp-advanced-podcast-player-inline .atp-player-main-play-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .atp-advanced-podcast-player-inline .atp-player-time-display {
        margin-left: 10px;
        font-size: 11px;
    }

    .atp-related-podcasts-section {
        margin-top: 30px;
        padding: 20px 0;
    }
    
    .atp-related-podcasts-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .atp-related-podcast-item {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }
    
    .atp-related-podcast-image {
        width: 80px;
        height: 80px;
        align-self: center;
    }
    
    .atp-related-podcast-meta {
        justify-content: center;
        text-align: center;
    }
    
    .atp-related-podcast-title {
        text-align: center;
        font-size: 15px;
    }
    
    .atp-related-podcast-excerpt {
        text-align: center;
        font-size: 13px;
    }
    
    .atp-related-podcast-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .atp-podcast-player {
        padding: 15px;
    }
    
    .atp-podcast-title {
        font-size: 14px;
    }
    
    .atp-podcast-title-wrapper {
        gap: 8px;
    }
    
    .atp-podcast-play-button {
        width: 32px;
        height: 32px;
    }
    
    .atp-podcast-play-button svg {
        width: 12px;
        height: 12px;
    }
    
    .atp-podcast-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .atp-related-podcast-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .atp-related-podcast-play-btn,
    .atp-related-podcast-read-more {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
