/* ==========================================================================
   single.css — SuaraBaca Single Article Styles
   ========================================================================== */

/* ── ARTICLE LAYOUT ──────────────────────────────────────────────── */
.single-post-wrapper {
    padding: 32px 0 64px;
}

.single-article {
    max-width: 760px;
    margin: 0 auto;
}

/* ── ARTICLE HEADER ──────────────────────────────────────────────── */
.article-header {
    margin-bottom: 32px;
}

/* ── BREADCRUMB ──────────────────────────────────────────────────── */
.breadcrumb {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    color: var(--sb-muted);
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.breadcrumb a {
    color: var(--sb-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ── ARTICLE CATEGORY LABEL ──────────────────────────────────────── */
.article-cat-label {
    display: inline-block;
    background-color: var(--sb-primary);
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    text-decoration: none;
    border-radius: 2px;
    margin-bottom: 12px;
    transition: background-color 0.2s;
}

.article-cat-label:hover {
    background-color: var(--sb-secondary);
    color: #fff;
    text-decoration: none;
}

/* ── ARTICLE TITLE ───────────────────────────────────────────────── */
.article-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--sb-heading);
    margin: 0 0 14px;
    letter-spacing: -0.5px;
}

/* ── ARTICLE SUBTITLE ────────────────────────────────────────────── */
.article-subtitle {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(17px, 2vw, 22px);
    font-style: italic;
    font-weight: 400;
    color: var(--sb-muted);
    line-height: 1.5;
    margin: 0 0 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--sb-border);
}

/* ── META ROW ────────────────────────────────────────────────────── */
.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    color: var(--sb-muted);
    padding: 14px 0;
    border-top: 1px solid var(--sb-border);
    border-bottom: 1px solid var(--sb-border);
    margin-bottom: 20px;
}

.meta-writer {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-label {
    font-weight: 600;
    color: var(--sb-text);
}

.meta-value {
    color: var(--sb-text);
}

.meta-role {
    color: var(--sb-muted);
    font-weight: 400;
}

.meta-datetime {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--sb-muted);
}

.published-time {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    color: var(--sb-muted);
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--sb-muted);
    padding-left: 12px;
    border-left: 1px solid var(--sb-border);
}

/* ── SOCIAL SHARING ──────────────────────────────────────────────── */
.social-sharing {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.sharing-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--sb-muted);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--sb-border);
    background: #fff;
    color: var(--sb-text);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.share-btn:hover {
    background-color: var(--sb-surface);
    border-color: var(--sb-secondary);
    color: var(--sb-secondary);
    text-decoration: none;
}

.share-whatsapp:hover { background-color: #25D366; border-color: #25D366; color: #fff; }
.share-facebook:hover { background-color: #1877F2; border-color: #1877F2; color: #fff; }
.share-twitter:hover  { background-color: #000; border-color: #000; color: #fff; }

/* ── FEATURED IMAGE ──────────────────────────────────────────────── */
.article-featured-image {
    margin: 0 0 32px;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.image-caption {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    color: var(--sb-muted);
    padding: 8px 0 4px;
    line-height: 1.5;
    border-bottom: 1px solid var(--sb-border);
}

.photo-credit-line {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    color: var(--sb-muted);
    padding-top: 4px;
    display: flex;
    gap: 4px;
}

/* ── ARTICLE CONTENT ─────────────────────────────────────────────── */
.article-content {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(17px, 2vw, 19px);
    line-height: 1.75;
    color: var(--sb-text);
    margin-bottom: 40px;
}

.article-content p {
    margin: 0 0 1.5em;
}

.article-content h2 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    color: var(--sb-heading);
    margin: 2em 0 0.75em;
    line-height: 1.25;
    padding-top: 0.5em;
    border-top: 2px solid var(--sb-primary);
}

.article-content h3 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(19px, 2vw, 23px);
    font-weight: 600;
    color: var(--sb-heading);
    margin: 1.75em 0 0.6em;
    line-height: 1.3;
}

.article-content blockquote {
    border-left: 4px solid var(--sb-primary);
    margin: 1.5em 0;
    padding: 1em 1.5em;
    background-color: var(--sb-surface);
    font-style: italic;
    color: var(--sb-muted);
    border-radius: 0 4px 4px 0;
}

.article-content ul,
.article-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}

.article-content li {
    margin-bottom: 0.5em;
}

.article-content a {
    color: var(--sb-link);
    text-decoration: underline;
    text-decoration-color: rgba(34,105,133,0.3);
    transition: color 0.2s;
}

.article-content a:hover {
    color: var(--sb-link-hover);
    text-decoration-color: var(--sb-link-hover);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    overflow-x: auto;
    display: block;
}

.article-content th,
.article-content td {
    border: 1px solid var(--sb-border);
    padding: 10px 14px;
    text-align: left;
}

.article-content th {
    background-color: var(--sb-surface);
    font-weight: 600;
}

/* Strong datelines (bold text at start of paragraphs) */
.article-content p > strong:first-child {
    color: var(--sb-heading);
}

/* ── EDITORIAL CREDITS PANEL ─────────────────────────────────────── */
.editorial-credits {
    background-color: var(--sb-surface);
    border-left: 4px solid var(--sb-primary);
    padding: 18px 20px;
    margin-bottom: 24px;
    border-radius: 0 4px 4px 0;
}

.credit-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    color: var(--sb-text);
    padding: 4px 0;
}

.credit-label {
    font-weight: 700;
    color: var(--sb-heading);
    min-width: 60px;
    flex-shrink: 0;
}

.credit-value a {
    color: var(--sb-link);
    text-decoration: none;
}

.credit-value a:hover {
    text-decoration: underline;
}

.credit-role {
    color: var(--sb-muted);
    font-size: 13px;
}

/* ── TAGS ────────────────────────────────────────────────────────── */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    padding: 16px 0;
    border-top: 1px solid var(--sb-border);
}

.tags-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--sb-muted);
}

.tag-link {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    color: var(--sb-secondary);
    border: 1.5px solid var(--sb-border);
    padding: 3px 10px;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
}

.tag-link:hover {
    background-color: var(--sb-surface);
    border-color: var(--sb-secondary);
    text-decoration: none;
}

/* ── RELATED ARTICLES ────────────────────────────────────────────── */
.related-articles {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid var(--sb-border);
}

.related-heading {
    font-size: 18px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.related-card-thumb {
    aspect-ratio: 16/9;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 10px;
}

.related-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.related-card:hover .related-card-thumb img {
    transform: scale(1.03);
}

.related-card-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.related-card-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--sb-heading);
    margin: 0;
}

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

.related-card-title a:hover {
    color: var(--sb-secondary);
    text-decoration: none;
}

/* ── COMMENTS SECTION ────────────────────────────────────────────── */
#comments {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--sb-border);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.comments-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--sb-heading);
    margin-bottom: 24px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--sb-border);
    border-radius: 4px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    color: var(--sb-text);
    background-color: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--sb-primary);
    outline: none;
}

.comment-form .submit {
    background-color: var(--sb-secondary);
    color: #fff;
    border: none;
    padding: 11px 24px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.comment-form .submit:hover {
    background-color: var(--sb-dark-blue);
}
