/*
 * Podcast CSS - Modern Design for Podcast Pages
 * Uses design patterns from Modist framework
 * Compatible with existing site styling
 */

/* ========== BREADCRUMB SECTION ========== */
.breadcrumb-section {
    background: #f8f9fa;
    background: var(--light-bg);
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-nav .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #6c757d;
    margin: 0 8px;
}

.breadcrumb-item a {
    color: #4b1e1e;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* ========== PODCASTS SECTION ========== */
.podcasts-section {
    padding: 60px 0;
 
}

/* ========== FEATURED PODCAST ========== */
.featured-podcast-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(75, 30, 30, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.featured-podcast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(75, 30, 30, 0.15);
}

.featured-video-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin: 20px;
}

.youtube-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.featured-content {
    padding: 40px 30px;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    background: var(--primary-gradient);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 20px;
}

.featured-badge i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.featured-title {
    font-size: 2.2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-description {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.featured-meta {
    display: flex;
    align-items: center;
    color: #8e8e8e;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.featured-meta i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.quick-chat-preview {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.quick-chat-preview h6 {
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    margin-bottom: 15px;
    font-size: 1rem;
}

.chat-preview-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-preview-item {
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-preview-item strong {
    color: var(--primary-color);
}

.chat-preview-item span {
    color: #6c757d;
}

.featured-actions .btn {
    background: var(--primary-gradient);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: var(--font-weight-medium);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--white);
}

.featured-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(75, 30, 30, 0.3);
    color: var(--white);
}

.featured-actions .btn i {
    margin-right: 10px;
}

/* ========== SECTION HEADER ========== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title i {
    margin-right: 15px;
    color: var(--secondary-color);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========== PODCASTS GRID ========== */
.podcasts-grid {
    margin-top: 40px;
}

.podcast-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.podcast-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.podcast-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.podcast-link:hover {
    text-decoration: none;
    color: inherit;
}

.podcast-thumbnail {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

.podcast-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.podcast-card:hover .podcast-thumbnail img {
    transform: scale(1.05);
}

.default-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    color: var(--white);
    font-size: 3rem;
}

.podcast-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(75, 30, 30, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.podcast-card:hover .podcast-overlay {
    opacity: 1;
}

.play-button {
    background: var(--white);
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.podcast-card:hover .play-button {
    transform: scale(1);
}

.podcast-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 220px);
}

.podcast-title {
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.podcast-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.podcast-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #8e8e8e;
    margin-top: auto;
}

.podcast-date,
.podcast-duration {
    display: flex;
    align-items: center;
}

.podcast-date i,
.podcast-duration i {
    margin-right: 6px;
    color: var(--secondary-color);
}

/* ========== NO CONTENT STATE ========== */
.no-podcasts-found {
    text-align: center;
    padding: 80px 20px;
}

.no-content-illustration {
    font-size: 5rem;
    color: #e9ecef;
    margin-bottom: 30px;
}

.no-podcasts-found h4 {
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    margin-bottom: 15px;
}

.no-podcasts-found p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 992px) {
    .featured-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .featured-content {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .podcasts-section {
        padding: 40px 0;
    }
    
    .featured-podcast-card {
        margin-bottom: 30px;
    }
    
    .featured-video-container {
        margin: 15px;
    }
    
    .featured-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-header {
        margin-bottom: 35px;
    }
    
    .featured-actions .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .breadcrumb-section {
        padding: 15px 0;
    }
    
    .podcasts-section {
        padding: 30px 0;
    }
    
    .featured-content {
        padding: 25px 15px;
    }
    
    .featured-title {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .podcast-content {
        padding: 20px;
    }
    
    .podcast-thumbnail {
        height: 180px;
    }
    
    .podcast-content {
        height: calc(100% - 180px);
    }
}

/* ========== PODCAST DETAIL PAGE ========== */
.podcast-detail-section {
    padding: 60px 0;
}

.video-container {
    margin-bottom: 30px;
}

.youtube-player {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: #000;
}

.youtube-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.podcast-info {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.podcast-info .podcast-title {
    font-size: 2.2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.podcast-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.95rem;
}

.meta-item i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.podcast-description h3 {
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.description-content {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.7;
}

/* ========== RELATED PODCASTS ========== */
.related-podcasts {
    margin-top: 40px;
}

.related-podcasts .section-title {
    font-size: 1.8rem;
    text-align: left;
    margin-bottom: 25px;
}

.related-podcast-card {
    background: var(--white);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.related-podcast-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-podcast-card a {
    text-decoration: none;
    color: inherit;
}

.related-thumbnail {
    position: relative;
    width: 100%;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-thumbnail .default-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    color: var(--white);
    font-size: 1.5rem;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(75, 30, 30, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--white);
    font-size: 1.2rem;
}

.related-podcast-card:hover .play-overlay {
    opacity: 1;
}

.related-content {
    padding-left: 15px;
}

.related-title {
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-date {
    display: flex;
    align-items: center;
    color: #8e8e8e;
    font-size: 0.85rem;
}

.related-date i {
    margin-right: 6px;
    color: var(--secondary-color);
}

/* ========== CHAT SIDEBAR ========== */
.chat-sidebar {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.chat-header h4 {
    margin: 0 0 8px 0;
    font-weight: var(--font-weight-bold);
}

.chat-header h4 i {
    margin-right: 10px;
}

.chat-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    background: #f8f9fa;
}

.chat-message {
    margin-bottom: 15px;
    padding: 12px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar {
    background: var(--primary-gradient);
    color: var(--white);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: 0.9rem;
}

.message-info {
    flex: 1;
}

.username {
    font-weight: var(--font-weight-medium);
    color: var(--primary-color);
    font-size: 0.9rem;
    display: block;
}

.timestamp {
    color: #8e8e8e;
    font-size: 0.8rem;
}

.message-content {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.no-messages {
    text-align: center;
    padding: 40px 20px;
    color: #8e8e8e;
}

.no-messages i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #e9ecef;
    display: block;
}

.no-messages p {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
}

.chat-input {
    padding: 20px;
    background: var(--white);
    border-top: 1px solid #e9ecef;
}

.chat-form .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chat-form .form-control {
    border: none;
    padding: 12px 20px;
    font-size: 0.9rem;
    background: #f8f9fa;
}

.chat-form .form-control:focus {
    box-shadow: none;
    background: var(--white);
}

.send-btn {
    background: var(--primary-gradient);
    border: none;
    padding: 12px 20px;
    color: var(--white);
    transition: all 0.3s ease;
}

.send-btn:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.login-prompt {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.login-prompt p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.login-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.login-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ========== RESPONSIVE DESIGN FOR DETAIL PAGE ========== */
@media (max-width: 992px) {
    .chat-sidebar {
        position: static;
        margin-top: 30px;
        max-height: none;
    }
    
    .related-podcasts .section-title {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .podcast-detail-section {
        padding: 40px 0;
    }
    
    .podcast-info {
        padding: 20px;
    }
    
    .podcast-info .podcast-title {
        font-size: 1.8rem;
    }
    
    .related-content {
        padding-left: 10px;
    }
    
    .chat-messages {
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .podcast-info {
        padding: 15px;
    }
    
    .podcast-info .podcast-title {
        font-size: 1.5rem;
    }
    
    .meta-item {
        font-size: 0.85rem;
    }
    
    .related-content {
        padding-left: 8px;
    }
    
    .related-title {
        font-size: 0.9rem;
    }
    
    .chat-header {
        padding: 15px;
    }
    
    .chat-messages {
        padding: 15px;
        max-height: 250px;
    }
    
    .chat-input {
        padding: 15px;
    }
}