/*
Theme Name: JSTV Sports
Theme URI: https://jstv.com.br
Author: JSTV Sports
Description: Tema custom do portal de notícias esportivas JSTV Sports.
Version: 1.0
Requires PHP: 8.0
Text Domain: jstv-sports
*/

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #F4F1EC; color: #2A2A2A; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; }

/* ===== Header ===== */
.site-header { background: #3B1752; padding: 18px 40px; }
.header-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.site-logo img { height: 60px; width: auto; display: block; }
.search-icon { color: #fff; font-size: 18px; }
.accent-line { height: 3px; width: 200px; background: linear-gradient(90deg, #D8432E, #FBCE3C); margin-bottom: 12px; border-radius: 2px; }
.main-nav ul { display: flex; gap: 26px; flex-wrap: wrap; }
.main-nav a { color: #E8DCEF; font-size: 13px; }
.main-nav a:hover { color: #FBCE3C; }

/* ===== Layout ===== */
.container { max-width: 1440px; margin: 0 auto; padding: 24px 40px; }

.live-strip { display: flex; align-items: center; gap: 10px; background: #3B1752; border-radius: 10px; padding: 12px 20px; margin-bottom: 24px; flex-wrap: wrap; }
.badge-live { background: #D8432E; color: #fff; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 4px; letter-spacing: 0.5px; }
.live-strip .title { color: #fff; font-size: 14px; }
.lock-note { margin-left: auto; color: #FBCE3C; font-size: 12px; display: flex; align-items: center; gap: 4px; }

.layout-grid { display: grid; grid-template-columns: 2.6fr 1fr; gap: 28px; align-items: start; }

/* ===== Hero ===== */
.hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin-bottom: 32px; }
.hero-main { position: relative; border-radius: 14px; overflow: hidden; height: 420px; background: #3B1752; }
.hero-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,5,30,0.88) 5%, transparent 60%); }
.hero-text { position: absolute; bottom: 0; left: 0; right: 0; padding: 22px; }
.tag { display: inline-block; background: #FBCE3C; color: #5C3A0A; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 4px; margin-bottom: 10px; }
.hero-text h1 { color: #fff; font-size: 26px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.hero-text p.meta { color: #DDD; font-size: 12px; }

.side-stack { display: flex; flex-direction: column; gap: 18px; }
.side-card { position: relative; border-radius: 14px; overflow: hidden; height: 201px; background: #3B1752; }
.side-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,5,30,0.85) 20%, transparent 65%); }
.side-text { position: absolute; bottom: 0; padding: 14px; }
.side-text .tag { font-size: 10px; padding: 2px 8px; margin-bottom: 6px; }
.side-text h2 { color: #fff; font-size: 14px; font-weight: 600; line-height: 1.3; }

.section-label { font-size: 15px; font-weight: 700; color: #3B1752; margin-bottom: 14px; padding-left: 12px; border-left: 4px solid #FBCE3C; }

/* ===== News grid ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 32px; }
.news-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.news-card .thumb { display: block; height: 130px; background: #3B1752; }
.news-card img { width: 100%; height: 130px; object-fit: cover; display: block; }
.news-card-body { padding: 14px; }
.news-card .cat { font-size: 10px; font-weight: 700; letter-spacing: 0.4px; }
.news-card h3 { font-size: 14px; font-weight: 600; line-height: 1.35; margin-top: 6px; color: #222; }
.news-card .meta { font-size: 11px; color: #888; margin-top: 8px; }

.sponsor-banner { background: #fff; border: 1px dashed #C9B8D4; border-radius: 10px; height: 60px; display: flex; align-items: center; justify-content: center; color: #8A7A94; font-size: 12px; margin-bottom: 32px; }

.commerce-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 8px; }
.commerce-card { background: #fff; border-radius: 12px; padding: 18px; display: flex; align-items: center; gap: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.commerce-icon { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(160deg, #F5A623, #D8432E); flex-shrink: 0; }
.commerce-card h4 { font-size: 14px; color: #222; margin-bottom: 4px; }
.commerce-card p { font-size: 12px; color: #777; }

/* ===== Sidebar ===== */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget { background: #fff; border-radius: 12px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.widget h4 { font-size: 13px; font-weight: 700; color: #3B1752; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #EEE; }
.rank-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #F2F2F2; }
.rank-item:last-child { border-bottom: none; }
.rank-num { font-size: 16px; font-weight: 700; color: #FBCE3C; -webkit-text-stroke: 1px #D8432E; width: 22px; flex-shrink: 0; }
.rank-text { font-size: 12px; line-height: 1.4; color: #333; }
.agenda-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #F2F2F2; font-size: 12px; }
.agenda-item:last-child { border-bottom: none; }
.agenda-item .when { color: #993C1D; font-weight: 600; }
.plans-widget { background: linear-gradient(160deg, #3B1752, #26215C); color: #fff; }
.plans-widget h4 { color: #FBCE3C; border-bottom-color: rgba(255,255,255,0.15); }
.plans-widget p { font-size: 12px; color: #E8DCEF; line-height: 1.5; margin-bottom: 12px; }
.plans-widget button, .plans-widget a.button { width: 100%; background: #FBCE3C; color: #5C3A0A; border: none; border-radius: 6px; padding: 10px; font-size: 12px; font-weight: 700; cursor: pointer; display: block; text-align: center; }

/* ===== Category colors (rotates through this palette) ===== */
.cat-0 { color: #D8432E; } .cat-1 { color: #185FA5; } .cat-2 { color: #993556; }
.cat-3 { color: #3B6D11; } .cat-4 { color: #0F6E56; } .cat-5 { color: #BA7517; }
.cat-6 { color: #7F4FBF; } .cat-7 { color: #1D7A99; }

/* ===== Footer ===== */
.site-footer { background: #3B1752; padding: 20px 40px; margin-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.site-footer span, .site-footer a { color: #C9B8D4; font-size: 12px; }

/* ===== Single post ===== */
.single-post-wrap { max-width: 820px; margin: 0 auto; background: #fff; padding: 32px; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.single-post-wrap .tag { margin-bottom: 12px; }
.single-post-wrap h1 { font-size: 28px; color: #222; line-height: 1.3; margin-bottom: 10px; }
.single-post-wrap .meta { font-size: 12px; color: #888; margin-bottom: 20px; }
.single-post-wrap .featured-image { border-radius: 10px; overflow: hidden; margin-bottom: 24px; }
.single-post-wrap .entry-content { font-size: 16px; line-height: 1.75; color: #333; }
.single-post-wrap .entry-content p { margin-bottom: 1.2em; }

@media (max-width: 1000px) {
  .layout-grid, .hero-grid, .news-grid, .commerce-grid { grid-template-columns: 1fr; }
}
