/* Podcast Sayfaları için CSS */

/* Podcast Listesi Sayfası */
.listing--podcast .podcast-grid {
    margin-top: 2rem;
}

.podcast-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.podcast-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.podcast-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.podcast-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.podcast-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.podcast-card:hover .podcast-card__image img {
    transform: scale(1.05);
}

.podcast-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.podcast-card__content {
    padding: 20px;
}

.podcast-card__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    line-height: 1.4;
}

.podcast-card__author {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 12px;
}

.podcast-card__description {
    font-size: 14px;
    color: #5a6c7d;
    line-height: 1.5;
    margin-bottom: 16px;
}

.podcast-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #95a5a6;
}

.podcast-card__episodes {
    font-weight: 500;
}

.podcast-card__duration {
    background: #ecf0f1;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Podcast Detail Sayfası - Yeni Stiller */
.playlist-item__img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 12px;
}

.playlist-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-player-controls {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.playlist-player-controls .row {
    margin: 0;
}

.playlist-player-controls .col-md-3,
.playlist-player-controls .col-md-6 {
    padding: 0 10px;
}

.playlist-player-controls .player-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.playlist-player-controls .player-buttons-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.playlist-player-controls .player-buttons-item:hover {
    transform: scale(1.1);
}

.playlist-player-controls .player-buttons-item--prev,
.playlist-player-controls .player-buttons-item--next {
    transform: rotate(180deg);
}

.playlist-player-controls .player-buttons-item--next {
    transform: rotate(0deg);
}

.playlist-player-controls .player-duration {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.playlist-player-controls .player-duration-line {
    flex: 1;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.playlist-player-controls .player-duration-line span {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    border-radius: 2px;
    transition: max-width 0.1s linear, width 0.1s linear;
    display: block;
    min-width: 0%;
}

.playlist-player-controls .player-duration-line {
    position: relative;
}

.playlist-player-controls .player-duration-line:hover span {
    background: linear-gradient(90deg, #c0392b, #a93226);
}

/* Progress bar tooltip (optional) */
.playlist-player-controls .player-duration-line::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    width: 12px;
    height: 12px;
    background: #e74c3c;
    border-radius: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.playlist-player-controls .player-duration-line:hover::after {
    opacity: 1;
}

.playlist-player-controls .player-right {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.playlist-player-controls .player-right-btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

.playlist-player-controls .player-right-btn:hover {
    transform: scale(1.1);
}

/* Podcast Play button states */
.js-podcast-player-play.loading .loader-player {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.js-podcast-player-play.playing .btn__icon:first-child {
    display: none;
}

.js-podcast-player-play.playing .btn__icon:last-child {
    display: inline-block;
}

.js-podcast-player-play:not(.playing) .btn__icon:first-child {
    display: inline-block;
}

.js-podcast-player-play:not(.playing) .btn__icon:last-child {
    display: none;
}

/* Podcast player controls hover effects */
.js-podcast-player-prev,
.js-podcast-player-next {
    cursor: pointer;
    transition: all 0.3s ease;
}

.js-podcast-player-prev:hover,
.js-podcast-player-next:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.js-podcast-player-volume,
.js-podcast-player-delete {
    cursor: pointer;
    transition: all 0.3s ease;
}

.js-podcast-player-volume:hover,
.js-podcast-player-delete:hover {
    transform: scale(1.1);
}

/* Podcast progress line */
.js-podcast-progress-line {
    cursor: pointer;
    position: relative;
}

.js-podcast-progress-line:hover span {
    background: linear-gradient(90deg, #c0392b, #a93226) !important;
}

/* Podcast Detay Sayfası */
.book-detail--podcast .book-detail-info-description {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.book-detail--podcast .book-detail-info-description p {
    color: #5a6c7d;
    line-height: 1.6;
    margin: 0;
}

/* Podcast Player */
.player--podcast {
    background: #fff;
    border-top: 1px solid #ecf0f1;
}

.player--podcast .player-book-img img {
    border-radius: 8px;
}

/* Playlist Item Styles */
.playlist-item {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    position: relative;
}

.playlist-item:hover {
    background-color: #f8f9fa;
}

.playlist-item.active {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.playlist-item.active.playing {
    background-color: #e8f5e9;
    border-left-color: #4caf50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.playlist-item.active.playing::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #4caf50, #66bb6a);
    animation: pulse-border 1.5s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.player--podcast .playlist-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.player--podcast .playlist-item:hover {
    background-color: #f8f9fa;
}

.player--podcast .playlist-item.active {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.player--podcast .playlist-item.active.playing {
    background-color: #e8f5e9;
    border-left-color: #4caf50;
}

/* Responsive Design */
@media (max-width: 768px) {
    .podcast-card__image {
        height: 150px;
    }
    
    .podcast-card__content {
        padding: 16px;
    }
    
    .podcast-card__title {
        font-size: 16px;
    }
    
    .podcast-card__description {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .podcast-grid .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    .podcast-card__image {
        height: 120px;
    }
    
    .podcast-card__content {
        padding: 12px;
    }
}

/* Podcast Slider */
.new-podcasts-slider .swiper-slide,
.other-podcasts-slider .swiper-slide {
    height: auto;
}

.new-podcasts-slider .book-item,
.other-podcasts-slider .book-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.new-podcasts-slider .book-item-info,
.other-podcasts-slider .book-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Loading States */
.podcast-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.podcast-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.podcast-error {
    text-align: center;
    padding: 40px 20px;
    color: #e74c3c;
}

.podcast-error .error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.podcast-error .error-message {
    font-size: 16px;
    margin-bottom: 20px;
}

.podcast-error .retry-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.podcast-error .retry-btn:hover {
    background: #2980b9;
}

/* Empty States */
.podcast-empty {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.podcast-empty .empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.podcast-empty .empty-message {
    font-size: 18px;
    margin-bottom: 8px;
}

.podcast-empty .empty-description {
    font-size: 14px;
    opacity: 0.8;
}

/* New Podcasts Slider */
.new-podcasts-slider {
    position: relative;
    padding: 0 50px;
    overflow: hidden;
}

.new-podcasts-slider .swiper-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.new-podcasts-slider .swiper-wrapper {
    display: flex;
    width: 100%;
}

.new-podcasts-slider .swiper-slide {
    width: 180px !important;
    margin-right: 20px;
    flex-shrink: 0;
}

.new-podcasts-slider .book-item {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.new-podcasts-slider .book-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.new-podcasts-slider .book-item__img {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.new-podcasts-slider .book-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.new-podcasts-slider .book-item:hover .book-item__img img {
    transform: scale(1.05);
}

.new-podcasts-slider .book-item-info {
    padding: 15px;
}

.new-podcasts-slider .book-item__title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.new-podcasts-slider .book-item__author {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.new-podcasts-slider .book-item__subtitle {
    font-size: 11px;
    color: #999;
    font-style: italic;
}

/* Custom Navigation Buttons */
.swiper-button-prev--custom,
.swiper-button-next--custom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.swiper-button-prev--custom {
    left: 10px;
}

.swiper-button-next--custom {
    right: 10px;
}

.swiper-button-prev--custom:hover,
.swiper-button-next--custom:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.swiper-button-prev--custom .icon-font,
.swiper-button-next--custom .icon-font {
    width: 16px;
    height: 16px;
    color: #333;
}

.swiper-button-prev--custom.swiper-button-disabled,
.swiper-button-next--custom.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Other Podcasts Slider */
.other-podcasts-slider {
    position: relative;
    padding: 0 50px;
    overflow: hidden;
}

.other-podcasts-slider .swiper-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.other-podcasts-slider .swiper-wrapper {
    display: flex;
    width: 100%;
}

.other-podcasts-slider .swiper-slide {
    width: 180px !important;
    margin-right: 20px;
    flex-shrink: 0;
}

.other-podcasts-slider .book-item {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.other-podcasts-slider .book-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.other-podcasts-slider .book-item__img {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.other-podcasts-slider .book-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.other-podcasts-slider .book-item:hover .book-item__img img {
    transform: scale(1.05);
}

.other-podcasts-slider .book-item-info {
    padding: 15px;
}

.other-podcasts-slider .book-item__title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.other-podcasts-slider .book-item__author {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.other-podcasts-slider .book-item__subtitle {
    font-size: 11px;
    color: #999;
    font-style: italic;
}

/* Book Item Badge */
.book-item-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.book-item-badge span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(0, 123, 255, 0.9);
    border-radius: 50%;
    color: white;
}

.book-item-badge .icon-font {
    width: 16px;
    height: 16px;
}

/* Book Item Image */
.book-item__img {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.book-item__img img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.book-item:hover .book-item__img img {
    transform: scale(1.05);
}

/* Book Item Info */
.book-item-info {
    padding: 15px 0;
}

.book-item__title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-item__author {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.book-item__subtitle {
    font-size: 11px;
    color: #999;
    font-style: italic;
}
