/* =====================================================================
   Spotted landing page — styles
   Place in:  salient-child/news-spotted.css
   Loaded only on the "Spotted Landing" template (news-spotted-functions.php).
   Uses the palette variables defined in news.css.
   ===================================================================== */

.spotted-wrap { padding-bottom: 60px; }

/* ---------- Page heading ---------- */
.spotted-head { margin: 8px 0 28px; }
.spotted-head__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--news-ink);
    margin: 0 0 6px;
}
.spotted-head__sub {
    font-size: 1.05rem;
    color: var(--news-muted);
    margin: 0;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--news-border);
}

/* ---------- Section label (Latest / Browse by GP / Trackside) ---------- */
.spotted-label {
    color: var(--news-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    margin: 40px 0 0px;
    padding-bottom: 0px;
}

/* ---------- LATEST ---------- */
.spotted-race__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.6rem;
    color: var(--news-ink);
    margin: 0 0 2px;
}
.spotted-race__meta {
    color: var(--news-muted);
    font-size: .95rem;
    margin: 0 0 16px;
    padding-bottom: 0px;
}
.spotted-banner { margin-bottom: 18px; }
.spotted-banner img { width: 100%; height: auto; border-radius: 10px; display: block; }

/* Latest cards: 5 across, responsive */
.spotted-cards {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(5, 1fr); /* default / fallback */
}
.spotted-cards--4 { grid-template-columns: repeat(4, 1fr); }
.spotted-cards--5 { grid-template-columns: repeat(5, 1fr); }

.spotted-card {
    display: block;
    text-decoration: none;
    border: 1px solid var(--news-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .15s ease, transform .15s ease;
}
.spotted-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.12); text-decoration: none; }
/* Landscape media (was 4/5 portrait) */
.spotted-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    background: #000;
}
.spotted-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spotted-card__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
}
.spotted-card__title {
    font-weight: 700;
    font-size: .8rem;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--news-ink);
}
.spotted-card__chev { color: var(--news-red); font-size: 1.1rem; font-weight: 700; }

/* ---------- BROWSE BY GP (slick) ---------- */
.spotted-gp { position: relative; }
.spotted-gp-slider { margin: 0 -6px; }
.spotted-gp-slider:not(.slick-initialized) { display: flex; overflow: hidden; }
.spotted-gp-slider:not(.slick-initialized) .spotted-gp__slide { flex: 0 0 16.66%; }
.spotted-gp__slide { padding: 0 6px; }
.spotted-gp__card {
    position: relative;
    display: block;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    text-decoration: none;
}
.spotted-gp__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.25) 100%);
}
.spotted-gp__text {
    position: absolute;
    left: 12px;
    bottom: 10px;
    right: 12px;
    color: #fff;
    z-index: 1;
}
.spotted-gp__name {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    line-height: 1.1;
}
.spotted-gp__loc { display: block; font-size: .8rem; opacity: .85; }

/* GP slider arrows */
.spotted-gp__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    z-index: 5;
    border: 0;
    border-radius: 50%;
    background: #0a0a0a;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: auto;
    left: auto;
    right: auto;
}
.spotted-gp__nav:hover { background: var(--news-red); color: var(--news-nav); }
.spotted-gp__nav--prev { left: -14px; }
.spotted-gp__nav--next { right: -14px; }
.spotted-gp__nav.slick-disabled { opacity: .35; cursor: default; }

/* ---------- TRACKSIDE HAPPENINGS ---------- */
.spotted-trackside__col { margin-bottom: 18px; }
.spotted-th {
    display: flex;
    gap: 14px;
    align-items: stretch;
    text-decoration: none;
    border: 1px solid var(--news-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    height: 100%;
    transition: box-shadow .15s ease;
}
.spotted-th:hover { box-shadow: 0 6px 18px rgba(0,0,0,.1); text-decoration: none; }
.spotted-th__media { flex: 0 0 50%; max-width: 50%; background: #000; }
.spotted-th__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spotted-th__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 14px;
}
.spotted-th__title { font-weight: 700; font-size: 1rem; line-height: 1.25; color: var(--news-ink); }
.spotted-th__time { margin-top: 8px; font-size: .8rem; color: var(--news-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .spotted-cards,
    .spotted-cards--4,
    .spotted-cards--5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .spotted-cards,
    .spotted-cards--4,
    .spotted-cards--5 { grid-template-columns: 1fr; }
    .spotted-card__title { font-size: .72rem; }
}
