/*
Theme Name:     Podcaster Child Theme
Description:    Child theme for the Podcaster theme
Author:         Theme Station Team
Template:       podcaster
*/

/* Enhanced podcast episode image display */
.list-of-episodes article .featured-image,
.featured-image-large {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.list-of-episodes article .featured-image:hover,
.featured-image-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.list-of-episodes article .featured-image img,
.featured-image-large img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* Ensure podcast episode images display properly */
.post .featured-image-large {
    margin-bottom: 20px;
}

/* Style for podcast episode cards */
.list-of-episodes article {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.list-of-episodes article:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Episodes page (Podlove table) - align like original site */
.page-id-1376 .podlove-subscribe-button-iframe {
    display: block;
    margin: 0 0 16px 0;
}
.page-id-1376 table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}
.page-id-1376 table tr td:first-child {
    width: 60px;
    vertical-align: middle;
}
.page-id-1376 table tr td:first-child img {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    display: block;
}
.page-id-1376 table tr td:nth-child(2) {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
}
.page-id-1376 table tr td:nth-child(3) a {
    font-weight: 600;
    text-decoration: none;
}
.page-id-1376 table tr td:last-child {
    text-align: right;
    color: #6b7280;
    white-space: nowrap;
}

/* Global typography + colors (approximate original) */
body {
    color: #3a3f45;
    line-height: 1.7;
}
a {
    color: #2b6cb0;
    text-decoration: none;
}
a:hover,
a:focus {
    color: #1a4f80;
    text-decoration: underline;
}
h1, h2, h3 {
    color: #1f2937;
    font-weight: 700;
    line-height: 1.25;
}
h4, h5, h6 {
    color: #374151;
    font-weight: 600;
}

/* Header / nav spacing */
header .navigation,
.site-header .navigation {
    gap: 12px;
}
.site-header .navigation a {
    padding: 10px 12px;
    border-radius: 4px;
}
.site-header .navigation a:hover {
    background: rgba(0,0,0,0.04);
}

/* Footer styling */
.site-footer {
    color: #6b7280;
    font-size: 14px;
}
.site-footer a {
    color: inherit;
    text-decoration: underline;
}

/* Hide theme credit text */
.site-footer .footer-widgets:first-child {
    display: none;
}
footer.main-footer .footer-widgets:first-child {
    display: none;
}

/* Layout primitives */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.dj-home {
    --accent: #2a61be; /* from original site */
    --bgElev: rgba(255,255,255,0.06);
    --bdElev: rgba(255,255,255,0.14);
    color: #e9edf3;
}
.section-title {
    font-size: 24px;
    margin: 32px 0 16px 0;
    color: var(--accent);
}

.dj-home a { color: color-mix(in oklab, var(--accent) 85%, white); }
.dj-home a:hover { color: color-mix(in oklab, var(--accent) 100%, white); }

/* Global background + text */
body {
    background: #0f1115;
    color: #cbd2dc;
}

/* Hero */
.dj-home .dj-hero {
    padding: 28px 0 8px 0;
}
.dj-hero__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}
.dj-hero__body {
    margin-top: 24px;
}
.dj-hero__extra {
    margin: 8px 0 12px 0;
}
.dj-hero__title {
    font-size: 56px;
    letter-spacing: .5px;
    margin: 0 0 8px 0;
    color: var(--accent);
    text-shadow: 0 1px 0 rgba(0,0,0,.3);
}
.dj-hero__tagline {
    font-size: 18px;
    opacity: .9;
    margin: 0 0 16px 0;
}
.dj-hero__ctas .btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--bgElev);
    color: inherit;
    text-decoration: none;
    margin-right: 10px;
    transition: background .2s;
}
.dj-hero__ctas .btn:hover {
    background: rgba(255,255,255,0.12);
}
.dj-hero__ctas .btn-primary {
    background: color-mix(in oklab, var(--accent) 25%, transparent);
    border: 1px solid color-mix(in oklab, var(--accent) 55%, transparent);
}
.dj-hero__right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
}
.dj-hero__right .fb-page { margin-bottom: 8px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--bgElev);
    color: inherit;
    text-decoration: none;
    width: fit-content;
    border: 1px solid var(--bdElev);
}
.chip__icon {
    opacity: .85;
}

.social-icons {
    display: flex;
    gap: 8px;
}
.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
}
.social-links li { margin: 0; padding: 0; }
.social-links a {
    display: inline-block;
    width: 28px;
    height: 28px;
    text-indent: -9999px;
    overflow: hidden;
    border: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.social-links a.facebook   { background-image: url('images/icons/facebook.png'); }
.social-links a.instagram  { background-image: url('images/icons/instagram.png'); }
.social-links a.twitter    { background-image: url('images/icons/twitter.png'); }
.social-links a.youtube    { background-image: url('images/icons/youtube.png'); }
.social-links a.soundcloud { background-image: url('images/icons/soundcloud.png'); }
.social-links a.beatport   { background-image: url('images/icons/beatport.png'); }
.social-links a.itunes     { background-image: url('images/icons/itunes.png'); }
.social-links a.rss        { background-image: url('images/icons/rss.png'); }
.social-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 14px;
    background: var(--bgElev);
    border: 1px solid var(--bdElev);
    color: inherit;
    text-decoration: none;
    height: 40px;
}
.social-chip img {
    width: 22px;
    height: 22px;
    display: block;
}
.social-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in oklab, var(--accent) 85%, #2a61be);
    border: 1px solid color-mix(in oklab, var(--accent) 90%, #2a61be);
    border-radius: 50%;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.social-icon:hover {
    border-color: color-mix(in oklab, var(--accent) 55%, var(--bdElev));
    box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 25%, transparent);
}
.social-icon img { width: 18px; height: 18px; display: block; }
.social-icon--lg {
    width: 48px;
    height: 48px;
}
.social-icon--lg img { width: 24px; height: 24px; }

/* Cards */
.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 800px) {
    .cards--events {
        grid-template-columns: 1fr 1fr;
    }
}
.cards--listen { grid-template-columns: 1fr !important; }
.card {
    border-radius: 16px;
    padding: 16px;
    background: var(--bgElev);
    border: 1px solid var(--bdElev);
    transition: border-color .2s, box-shadow .2s;
}
.card:hover {
    border-color: color-mix(in oklab, var(--accent) 45%, var(--bdElev));
    box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 25%, transparent);
}
.card--listen .card__player {
    margin-top: 8px;
    width: 100%;
}
.card--listen .card__player iframe,
.card--listen .card__player audio { width: 100% !important; height: auto; }
.card__title {
    font-weight: 600;
    margin-bottom: 6px;
    color: color-mix(in oklab, var(--accent) 80%, white);
}
.card__meta {
    opacity: .8;
    font-size: 14px;
}
.card__link {
    text-decoration: none;
}
.card--event .card__date {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    opacity: .9;
}
.card--event .card__day {
    font-weight: 600;
}
.card--contact .card__row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.card__copy {
    background: transparent;
    border: 1px solid var(--bdElev);
    color: inherit;
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer;
}

/* Accordion */
.dj-accordion {
    border: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 0 0 16px 0;
}
.dj-accordion__summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    color: var(--accent);
    font-size: 24px;
    margin: 32px 0 16px 0;
}
.dj-accordion__summary::-webkit-details-marker {
    display: none;
}
.dj-accordion__content {
    margin-top: 8px;
}

/* Logo adjustments */
.dj-hero__logo img {
    max-width: 360px;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 16px rgba(0,0,0,.3));
    margin-bottom: 6px;
}

/* Replace header site title text with logo */
.site-title a {
    background-image: url('/wp-content/uploads/2013/10/ADAM_LOVE_LOGO_FINALS-132-250x250.png');
    background-repeat: no-repeat;
    background-size: auto 28px;
    display: inline-block;
    width: 160px;
    height: 28px;
    text-indent: -9999px;
    overflow: hidden;
    color: transparent;
}


/* Page layout tightening */
.entry-content p {
    margin: 0 0 14px 0;
}
.entry-content ul,
.entry-content ol {
    margin: 0 0 16px 1.25rem;
}

/* Episodes table header emphasis */
.page-id-1376 table thead th,
.page-id-1376 table tr:first-child td {
    color: #374151;
    font-weight: 600;
}