/* ==========================================================================
   homepage.css — SuaraBaca Homepage Layout Styles
   ========================================================================== */

/* ── SHARED SECTION STRUCTURE ────────────────────────────────────── */
.site-frontpage section {
    padding: 48px 0;
}

.section-heading-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.section-heading {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--sb-heading);
    white-space: nowrap;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-divider {
    flex: 1;
    height: 2px;
    background-color: var(--sb-primary);
    display: block;
    border-radius: 2px;
}

.section-view-all {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--sb-secondary);
    text-decoration: none;
    white-space: nowrap;
    border: 1.5px solid var(--sb-secondary);
    padding: 4px 12px;
    border-radius: 3px;
    transition: background-color 0.2s, color 0.2s;
}

.section-view-all:hover {
    background-color: var(--sb-secondary);
    color: #fff;
    text-decoration: none;
}

/* ── CATEGORY LABEL ──────────────────────────────────────────────── */
.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: 0.8px;
    padding: 3px 8px;
    text-decoration: none;
    border-radius: 2px;
    margin-bottom: 8px;
    transition: background-color 0.2s;
}

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

.cat-label--small {
    font-size: 10px;
    padding: 2px 6px;
}

/* ── DATE META ───────────────────────────────────────────────────── */
.published-date {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    color: var(--sb-muted);
    display: block;
    margin-top: 6px;
}

/* ── RESPONSIVE THUMBNAIL RATIO ──────────────────────────────────── */
.lead-thumbnail,
.support-thumb,
.news-card-thumb,
.pick-card-thumb,
.cat-featured-item > a {
    display: block;
    overflow: hidden;
    border-radius: 3px;
    background-color: var(--sb-surface);
}

.lead-thumbnail img,
.support-thumb img,
.news-card-thumb img,
.pick-card-thumb img,
.cat-featured-item > a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.lead-thumbnail:hover img,
.support-thumb:hover img,
.news-card-thumb:hover img,
.pick-card-thumb:hover img {
    transform: scale(1.02);
}

/* ── A. MAIN HEADLINE ────────────────────────────────────────────── */
.hp-main-headline {
    background-color: #fff;
    padding: 32px 0 48px;
    border-bottom: 1px solid var(--sb-border);
}

.main-headline-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

/* Lead story */
.lead-story {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lead-thumbnail {
    aspect-ratio: 16/9;
    margin-bottom: 16px;
}

.lead-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lead-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--sb-heading);
    margin: 0;
}

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

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

.lead-excerpt {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 17px;
    color: var(--sb-text);
    line-height: 1.6;
    margin: 0;
}

/* Supporting headlines sidebar */
.support-headlines {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-left: 1px solid var(--sb-border);
    padding-left: 24px;
}

.support-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    align-items: start;
}

.support-thumb {
    aspect-ratio: 4/3;
}

.support-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.support-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(14px, 1.5vw, 17px);
    font-weight: 600;
    line-height: 1.35;
    color: var(--sb-heading);
    margin: 0;
}

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

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

/* ── B. LATEST NEWS GRID ─────────────────────────────────────────── */
.hp-latest-news {
    background-color: var(--sb-surface);
    padding: 48px 0;
}

.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.news-card {
    background-color: #fff;
    border: 1px solid var(--sb-border);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}

.news-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.news-card-thumb {
    aspect-ratio: 16/9;
    display: block;
}

.news-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

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

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

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

/* ── C. CATEGORY SECTION ─────────────────────────────────────────── */
.hp-category-section {
    background-color: #fff;
    padding: 40px 0;
    border-bottom: 1px solid var(--sb-border);
}

.category-section-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

.cat-featured-item {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cat-featured-item > a {
    aspect-ratio: 16/9;
    margin-bottom: 14px;
}

.cat-featured-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cat-featured-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    line-height: 1.3;
    color: var(--sb-heading);
    margin: 0;
}

.cat-featured-title a {
    color: inherit;
    text-decoration: none;
}

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

.cat-featured-excerpt {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 15px;
    color: var(--sb-text);
    line-height: 1.6;
    margin: 0;
}

/* Side items list */
.cat-side-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid var(--sb-border);
}

.cat-side-item:last-child {
    border-bottom: none;
}

.cat-side-thumb {
    aspect-ratio: 4/3;
    display: block;
    overflow: hidden;
    border-radius: 3px;
}

.cat-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cat-side-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.cat-side-title a {
    color: inherit;
    text-decoration: none;
}

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

/* ── D. EDITOR'S PICKS ───────────────────────────────────────────── */
.hp-editors-picks {
    background-color: var(--sb-surface);
    padding: 48px 0;
}

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

.pick-card {
    background-color: #fff;
    border: 1px solid var(--sb-border);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}

.pick-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.pick-card-thumb {
    aspect-ratio: 16/9;
    display: block;
    overflow: hidden;
}

.pick-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pick-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

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

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

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