/* Custom CSS pour le thème Soa i Madagasikara */

/* Hero podcast - identique à la page d'accueil */
.hero {
    position: relative;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(7,11,18,.72) 0%, rgba(7,11,18,.92) 100%),
        url("../../../../images/soaimadagasikara_hero.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Texte secondaire lisible sur fond */
.hero .text-body-secondary {
    color: rgba(255,255,255,.78) !important;
}

/* Badge LIVE style identique */
.badge-live {
    padding: .45rem .7rem;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
}

.badge-live .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--mg-sand, #FBBF24);
    display: inline-block;
    box-shadow: 0 0 0 6px rgba(251,191,36,.14);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Player card style identique */
.card-player {
    border: 1px solid rgba(14,165,233,.30);
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(10px);
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-player:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.card-player .text-body-secondary {
    color: rgba(255,255,255,.78) !important;
}

/* Cards podcasts avec effet hover */
.podcast-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,.125) !important;
}

.podcast-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.podcast-card .card-body {
    background: white;
}

.podcast-card h5 a {
    color: #0d6efd !important;
    text-decoration: none;
}

.podcast-card h5 a:hover {
    color: #0a58ca !important;
    text-decoration: underline;
}

/* Player audio personnalisé */
audio {
    width: 100%;
    border-radius: 0.5rem;
    outline: none;
    background: #f8f9fa;
}

audio::-webkit-media-controls-panel {
    background-color: rgba(14, 165, 233, 0.1);
}

/* Badges et boutons */
.badge {
    font-weight: 500;
}

.btn-primary {
    background-color: var(--mg-ocean, #0EA5E9);
    border-color: var(--mg-ocean, #0EA5E9);
}

.btn-primary:hover {
    background-color: #0284c7;
    border-color: #0284c7;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #dee2e6;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* Pagination */
.pagination .page-link {
    color: var(--mg-ocean, #0EA5E9);
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--mg-ocean, #0EA5E9);
    border-color: var(--mg-ocean, #0EA5E9);
}

.pagination .page-link:hover {
    background-color: rgba(14, 165, 233, 0.1);
}

/* Images responsive */
.card-img-top {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
}

/* Content long description */
.content {
    line-height: 1.7;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.content p {
    margin-bottom: 1rem;
}

/* Section Nos émissions */
section.bg-body-tertiary {
    background-color: #f8f9fa !important;
}

/* Texte dans les cartes */
.podcast-card .text-body-secondary,
.podcast-card .text-muted {
    color: #6c757d !important;
}

.podcast-card small {
    color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        background-position: 65% center;
    }
    
    .hero h1 {
        font-size: 1.75rem !important;
    }
    
    audio {
        height: 40px;
    }
}
