/* ============================================================
   Articles listing: Understanding Your AI locked identity.
   Chrome (nav, footer, buttons, newsletter) lives in uya.css,
   loaded via article.css on this page. Listing-only styles here.
   ============================================================ */

/* ---------- page header band (navy) ---------- */
.page-header {
    background: var(--navy);
    color: var(--cloud);
    padding: 3.6rem 2rem 3.2rem;
    text-align: center;
    border-bottom: 1px solid var(--line-dark);
}
.page-header h1 {
    font-size: clamp(2rem, 4.4vw, 2.75rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.8rem;
}
.page-header p {
    font-size: 1.15rem;
    color: var(--cloud-muted);
    max-width: 46em;
    margin: 0 auto;
}

/* ---------- listing grid ---------- */
.articles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background: var(--card);
    border: 1px solid var(--line-light);
    border-radius: var(--radius-card);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.article-card:hover {
    transform: translateY(-2px);
    border-color: var(--cyan);
}

.article-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* placeholder tile: navy with the glasses mark (replaces emoji icons) */
.article-card-image.placeholder {
    background: var(--navy);
    position: relative;
}
.article-card-image.placeholder::after {
    content: '';
    width: 38%;
    aspect-ratio: 1199 / 402;
    background: var(--gold);
    -webkit-mask: url('/assets/img/glasses.svg') no-repeat center / contain;
    mask: url('/assets/img/glasses.svg') no-repeat center / contain;
}
/* the AI 101 tile keeps its typographic treatment */
.article-card-image.placeholder.ai101::after {
    content: attr(data-icon);
    width: auto;
    aspect-ratio: auto;
    background: none;
    -webkit-mask: none;
    mask: none;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 0.04em;
}

.article-card-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.article-card-category {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.article-card-category.tech { background: var(--cyan); }

.article-card-date { color: var(--ink-muted); font-size: 0.85rem; }

.article-card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.article-card p {
    font-size: 1rem;
    color: var(--ink-muted);
    line-height: 1.6;
    flex: 1;
}

.article-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cyan-text);
    font-weight: 700;
    margin-top: 1rem;
    font-size: 0.95rem;
    transition: gap 0.15s ease;
}
.article-card:hover .article-card-link { gap: 0.75rem; }

/* ---------- responsive ---------- */
@media (max-width: 768px) {
    .page-header { padding: 2.6rem 1.2rem 2.4rem; }
    .articles-container { padding: 2.2rem 1.2rem 3rem; }
    .articles-grid { grid-template-columns: 1fr; }
}
