/* ============================================================
   RADIO ONLINE — SINGLE POST CSS
   ============================================================ */

.single-container { padding-block: 32px; }

.single-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.single-layout--full { grid-template-columns: 1fr; max-width: 800px; margin-inline: auto; }

.single-post__header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.single-post__title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.03em;
    color: var(--text);
}

.single-post__byline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--muted);
}

.byline__author { display: flex; align-items: center; gap: 6px; }
.byline__author a { color: var(--text-secondary); font-weight: 600; }
.byline__author a:hover { color: var(--accent-light); }

.single-post__thumbnail {
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 21/9;
}

.single-post__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post__caption {
    padding: 8px 0;
    font-size: 12px;
    color: var(--muted);
    font-style: italic;
}

/* ── Prose ── */
.prose {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-secondary);
}

.prose h2, .prose h3, .prose h4 {
    color: var(--text);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 36px;
    margin-bottom: 12px;
}

.prose h2 { font-size: 26px; }
.prose h3 { font-size: 21px; }
.prose h4 { font-size: 18px; }

.prose p { margin-bottom: 20px; }

.prose a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }

.prose ul, .prose ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; }

.prose blockquote {
    border-left: 4px solid var(--accent);
    padding: 16px 24px;
    margin: 28px 0;
    background: var(--bg-card);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 18px;
    font-style: italic;
    color: var(--text);
}

.prose img, .prose figure {
    max-width: 100%;
    border-radius: var(--radius);
    margin-block: 28px;
}

.prose figcaption {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

.prose pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    overflow-x: auto;
    margin-block: 24px;
    font-size: 14px;
    line-height: 1.6;
}

.prose code {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: .9em;
}

.prose pre code { background: none; border: none; padding: 0; }

.prose hr {
    border: none;
    border-top: 1px solid var(--border);
    margin-block: 36px;
}

.prose iframe,
.prose embed,
.prose object,
iframe { max-width: 100%; }

.prose table {
    width: 100%;
    overflow-x: auto;
    display: block;
    border-collapse: collapse;
}

/* ── Post footer ── */
.single-post__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.single-post__tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: background .2s, color .2s, border-color .2s;
}

.tag:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.single-post__share { display: flex; align-items: center; gap: 10px; }
.share__label { font-size: 13px; color: var(--muted); font-weight: 600; }

.share__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    transition: background .2s, color .2s;
}

.share__btn:hover { background: var(--accent); color: #fff; border-color: transparent; }

/* ── Related posts ── */
.related-posts {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--border);
}

.related-posts__title {
    font-family: var(--font-condensed);
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.news-grid--3 { grid-template-columns: repeat(3, 1fr); }

.news-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    transition: background .2s, transform .2s;
}

.news-card:hover { background: var(--bg-card-hover); transform: translateY(-2px); }

.news-card__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.news-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s var(--ease-out);
}

.news-card:hover .news-card__img { transform: scale(1.04); }

.news-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.news-card__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__title a:hover { color: rgba(255,255,255,.8); }

.news-card__excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    font-size: 12px;
    color: var(--muted);
}

/* ── Comments ── */
.comments-area {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.comments-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

.comment-list { display: flex; flex-direction: column; gap: 20px; list-style: none; }

.comment-body {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
}

.comment-author { font-size: 14px; font-weight: 700; margin-bottom: 4px; }

.comment-metadata {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 12px;
}

.comment-content { font-size: 15px; line-height: 1.6; color: var(--text-secondary); }

/* ── WP block alignment ── */
.alignwide  { margin-inline: -48px; }
.alignfull  { margin-inline: calc(50% - 50vw); }
.alignleft  { float: left; margin-right: 24px; }
.alignright { float: right; margin-left: 24px; }
.aligncenter { margin-inline: auto; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .single-layout { grid-template-columns: 1fr; }
    .single-layout--full { max-width: 100%; }
    .single-post__thumbnail { aspect-ratio: 16/9; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .single-container { padding-block: 20px; }
    .single-post__title { font-size: clamp(22px, 5vw, 30px); }
    .single-post__thumbnail { aspect-ratio: 16/9; border-radius: var(--radius); }
    .single-post__byline { gap: 10px; font-size: 12px; }
    .single-post__footer { flex-direction: column; align-items: flex-start; }
    .prose { font-size: 16px; word-break: break-word; overflow-wrap: break-word; }
    .prose h2 { font-size: 22px; }
    .prose h3 { font-size: 18px; }
    .prose blockquote { padding: 12px 16px; font-size: 16px; }
    .prose ul, .prose ol { padding-left: 20px; }
    .related-posts .news-grid--3 { grid-template-columns: 1fr; }
    .alignwide { margin-inline: 0; }
    .alignfull { margin-inline: -16px; border-radius: 0; }
    .alignleft,
    .alignright { float: none; margin: 0 0 16px 0; width: 100%; }
}
