/*
Theme Name: SpillPH Debug
Theme URI: https://spillph.com
Author: SpillPH
Description: Debug-ready SpillPH WordPress news theme with visible active-theme banner.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: spillph
Tags: news, blog, magazine
*/

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f4f5;
    color: #111;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.spillph-active-banner {
    background: #e10600;
    color: white;
    text-align: center;
    padding: 14px 20px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 14px;
}

.site-header {
    background: #050505;
    color: white;
    padding: 22px 20px;
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-text {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -2px;
}

.logo-text span {
    color: #e10600;
}

.primary-nav ul {
    display: flex;
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.primary-nav a {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
}

.site-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

.hero-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    border: 3px solid #050505;
    box-shadow: 0 18px 45px rgba(0,0,0,.08);
}

.hero-image {
    min-height: 360px;
    background: linear-gradient(135deg, #050505, #e10600);
    color: white;
    display: grid;
    place-items: center;
    font-size: 46px;
    font-weight: 900;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    padding: 42px;
}

.eyebrow {
    color: #e10600;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: clamp(38px, 5vw, 64px);
    line-height: .95;
    letter-spacing: -3px;
    margin: 12px 0;
}

.hero-content p,
.post-card p {
    color: #555;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    background: #e10600;
    color: white;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 900;
}

.section-title {
    margin: 38px 0 18px;
    font-size: 30px;
    letter-spacing: -1px;
}

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

.post-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #ddd;
    overflow: hidden;
}

.post-card-thumb {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #111, #e10600);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 24px;
}

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

.post-card-body {
    padding: 18px;
}

.post-card h2 {
    font-size: 21px;
    line-height: 1.15;
    margin: 8px 0;
}

.post-meta {
    color: #e10600;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 900;
}

.single-article {
    max-width: 820px;
    margin: 0 auto;
    background: white;
    border-radius: 28px;
    border: 1px solid #ddd;
    padding: 36px;
}

.single-article h1 {
    font-size: clamp(38px, 5vw, 66px);
    line-height: .95;
    letter-spacing: -3px;
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
}

.site-footer {
    background: #050505;
    color: white;
    text-align: center;
    padding: 28px 20px;
}

@media (max-width: 850px) {
    .hero-card,
    .post-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .primary-nav ul {
        flex-wrap: wrap;
    }
}
