/* perso.news - Personalized News Curation */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #ffffff;
    color: #0a0a0a;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

/* Red bar accent */
.red-bar {
    height: 4px;
    background: #dc2626;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Hero section - dominant lead */
.hero {
    width: 100%;
    padding: 4rem 2rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.hero-content {
    max-width: 900px;
    width: 100%;
}

.personalized-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #999;
    display: block;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Category pills */
.category-pill {
    display: inline-block;
    border-radius: 9999px;
    padding: 4px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.category-pill.red {
    background: #dc2626;
}

.category-pill.blue {
    background: #2563eb;
}

.category-pill.green {
    background: #16a34a;
}

.category-pill.amber {
    background: #d97706;
}

/* Lead headline - massive, bold */
.lead-headline {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin: 0.5rem 0;
    color: #0a0a0a;
}

.lead-meta {
    margin-top: 1rem;
}

.timestamp {
    font-family: 'Fira Code', monospace;
    font-size: 0.6rem;
    color: #999;
    text-transform: lowercase;
}

/* Grid section - asymmetric layout */
.grid-section {
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    max-width: 900px;
    width: 100%;
    border: 2px solid #000000;
    gap: 0;
}

.grid-feature {
    padding: 1.5rem;
    border-right: 2px solid #000000;
}

.grid-headline {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.2;
    margin: 0.4rem 0 0.6rem;
    color: #0a0a0a;
}

.grid-body {
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.grid-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-story {
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid #000000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.sidebar-story:last-child {
    border-bottom: none;
}

.sidebar-headline {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    margin: 0.4rem 0 0.3rem;
    color: #0a0a0a;
}

/* Categories section */
.categories {
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.cat-bar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 900px;
}

/* Ticker strip - breaking news */
.ticker {
    background: #0a0a0a;
    color: #ffffff;
    padding: 1rem 2rem;
    overflow: hidden;
    width: 100%;
}

.ticker-strip {
    white-space: nowrap;
}

.ticker-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.65rem;
    color: #ffffff;
    display: inline-block;
    animation: scroll-left 30s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Fade-in animation for scroll reveal */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }

    .grid-feature {
        border-right: none;
        border-bottom: 2px solid #000000;
    }

    .lead-headline {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    .grid-headline {
        font-size: 1.1rem;
    }

    .sidebar-headline {
        font-size: 0.9rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .grid-section {
        padding: 1rem;
    }

    .categories {
        padding: 1rem;
    }

    .ticker {
        padding: 0.75rem 1rem;
    }

    .ticker-text {
        font-size: 0.55rem;
    }
}
