/* Podcast Subscription Display */

.podcastsubscribe {
    width: 100%;
    padding: 1em;
}

.podcastheader {
    margin-bottom: 0.75rem;
}

.podcastheader h4 {
    margin: 0;
    font-weight: bold;
}

/* Card grid — uses Bootstrap variables so cards match the active template theme */
.podcastsubscribe .prow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
}

.podcastsubscribe .pcell {
    flex: 1 1 280px;
    background-color: var(--bs-body-bg, #fff);
    border-radius: var(--bs-border-radius, 8px);
    border: 1px solid var(--bs-border-color, #dee2e6);
    padding: 1rem;
}

.podcastsubscribe .pcell h5 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.podcastsubscribe .pcell h5 i {
    margin-right: 0.35rem;
    color: var(--bs-secondary-color, #6c757d);
}

/* Subscribe links container */
.podcast-subscribe-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* Text-only subscribe buttons */
.podcast-subscribe-links a:not(.podcast-badge) {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--bs-border-radius, 6px);
    border: 1px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-body-bg, #fff);
    color: inherit;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.podcast-subscribe-links a:not(.podcast-badge):hover {
    background-color: var(--bs-tertiary-bg, #e9ecef);
    border-color: var(--bs-secondary-color, #adb5bd);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.podcast-subscribe-links a:not(.podcast-badge) i {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Image badge subscribe buttons */
.podcast-subscribe-links a.podcast-badge {
    display: inline-block;
    line-height: 0;
    border-radius: var(--bs-border-radius, 6px);
    overflow: hidden;
    transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.podcast-subscribe-links a.podcast-badge:hover {
    opacity: 0.85;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.podcast-subscribe-links a.podcast-badge img {
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Admin: Platform Links subform — icon preview inline with dropdown */
.platform-links-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.platform-icon-preview {
    font-size: 2em;
    flex-shrink: 0;
    line-height: 1;
}

/* Vertically center all cells in platform links subform rows */
#subfieldList_jform_platform_links tbody tr td {
    vertical-align: middle;
}

/* Mobile responsive layout */
@media (max-width: 576px) {
    .podcastsubscribe .prow {
        flex-direction: column;
    }

    .podcastsubscribe .pcell {
        flex-basis: auto;
    }

    .podcast-subscribe-links {
        justify-content: center;
    }
}
