/* =======================================
   VASCO DA GAMA BLOG — MARIO COELHO
   Cores: Preto, Branco, Dourado
   ======================================= */
:root {
  --black: #0a0a0a;
  --dark: #111111;
  --dark-2: #1a1a1a;
  --dark-3: #242424;
  --gold: #c9a227;
  --gold-light: #e6c458;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-300: #d4d4d4;
  --gray-500: #737373;
  --gray-700: #404040;
  --red: #cc1020;

  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 4px;
  --sidebar-width: 300px;
  --gap: 1.5rem;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--gray-100);
  color: var(--dark);
  line-height: 1.6;
}

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ======= HEADER ======= */
.site-header {
  background: var(--black);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex-shrink: 0;
}

.logo-vasco {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar { display: none; }

.main-nav a {
  color: var(--gray-300);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.main-nav a:hover {
  color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gray-700);
  color: var(--white);
  font-size: 1.2rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  margin-left: auto;
}

/* ======= LAYOUT ======= */
.main-layout {
  padding: 2rem 0 3rem;
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--gap);
  align-items: start;
}

/* ======= POSTS GRID ======= */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.post-card--featured {
  grid-column: 1 / -1;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.post-card__image-link {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.post-card--featured .post-card__image-link {
  aspect-ratio: 21/9;
}

.post-card__image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card__image-link img {
  transform: scale(1.03);
}

.post-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark-2) 100%);
}

.post-card__category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--gold);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card__body {
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.post-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.post-card--featured .post-card__title {
  font-size: 1.5rem;
}

.post-card__title a:hover { color: var(--gold); }

.post-card__excerpt {
  color: var(--gray-500);
  font-size: 0.875rem;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: auto;
}

/* ======= SIDEBAR ======= */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 80px;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.widget-title {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--gold);
}

.widget-title .accent { font-size: 1rem; }

/* Jogos */
.matches-list { padding: 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; }

.match-card {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 0.625rem;
  font-size: 0.8rem;
}

.match-competition {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gray-500);
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
}

.match-round {
  margin-left: auto;
  font-size: 0.65rem;
}

.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.team:first-child { align-items: flex-start; text-align: left; }
.team:last-child { align-items: flex-end; text-align: right; }

.team .featured { color: var(--gold); font-weight: 700; }

.match-score {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--dark);
  text-align: center;
  min-width: 48px;
}

.match-date-time {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}

.live-badge {
  display: block;
  background: var(--red);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.3rem;
  border-radius: 2px;
  margin-top: 0.25rem;
  animation: pulse 1.5s infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.match-venue {
  font-size: 0.65rem;
  color: var(--gray-500);
  margin-top: 0.4rem;
  text-align: center;
}

/* Standings */
.standings-table-wrap { overflow-x: auto; }

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.standings-table thead tr {
  background: var(--dark-3);
  color: var(--gray-300);
}

.standings-table th {
  padding: 0.4rem 0.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.standings-table th:nth-child(2) { text-align: left; }

.standings-table td {
  padding: 0.4rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid var(--gray-300);
}

.standings-table td.team-cell {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.standings-table td.pos { color: var(--gray-500); font-size: 0.7rem; }
.standings-table td.pts { color: var(--dark); }

.standings-table .separator-row {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.7rem;
  padding: 0.2rem;
  border-bottom: 1px solid var(--gray-300);
}

.standings-table .featured-row {
  background: rgba(201, 162, 39, 0.12);
}

.standings-table .featured-row td.pts strong {
  color: var(--gold);
}

/* ======= SINGLE POST ======= */
.post-layout .content-with-sidebar {
  grid-template-columns: 1fr var(--sidebar-width);
}

.single-post { background: var(--white); border-radius: var(--radius); overflow: hidden; padding: 2rem; }

.post-header { margin-bottom: 1.5rem; }

.post-category-link {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.post-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.post-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.8rem; color: var(--gray-500); }

.author-chip { display: flex; align-items: center; gap: 0.4rem; }
.author-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.post-featured-image { margin-bottom: 1.5rem; border-radius: var(--radius); overflow: hidden; }
.post-featured-image img { width: 100%; max-height: 480px; object-fit: cover; }

.post-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--dark);
}

.post-content h2 { font-family: var(--font-heading); font-size: 1.5rem; margin: 2rem 0 0.75rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--gold); }
.post-content h3 { font-family: var(--font-heading); font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { margin: 0 0 1.25rem 1.5rem; }
.post-content li { margin-bottom: 0.4rem; }
.post-content blockquote { border-left: 4px solid var(--gold); margin: 1.5rem 0; padding: 0.75rem 1.25rem; background: var(--gray-100); font-style: italic; }
.post-content a { color: var(--gold); text-decoration: underline; }
.post-content strong { font-weight: 700; }
.post-content figure.post-inline-image { margin: 1.5rem 0; }
.post-content figure.post-inline-image img { border-radius: var(--radius); }
.post-content figcaption { font-size: 0.8rem; color: var(--gray-500); text-align: center; margin-top: 0.4rem; }

.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 1.5rem 0; border-radius: var(--radius); }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.tag { background: var(--dark-3); color: var(--gray-300); font-size: 0.75rem; padding: 0.25rem 0.75rem; border-radius: 2px; }

.author-box { margin-top: 2.5rem; padding: 1.5rem; background: var(--dark-2); border-radius: var(--radius); border-left: 4px solid var(--gold); }
.author-box-inner { display: flex; gap: 1rem; align-items: flex-start; }
.author-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-photo-placeholder { width: 72px; height: 72px; border-radius: 50%; background: var(--gold); color: var(--black); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; flex-shrink: 0; }
.author-label { font-size: 0.7rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.08em; }
.author-name { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; color: var(--white); }
.author-expertise { font-size: 0.8rem; color: var(--gold); margin-top: 0.25rem; }
.author-bio { font-size: 0.875rem; color: var(--gray-300); margin-top: 0.5rem; }

/* ======= CATEGORIA ======= */
.category-header { margin-bottom: 1.5rem; }
.category-title { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 700; padding-bottom: 0.5rem; border-bottom: 3px solid var(--gold); display: inline-block; }

/* ======= STATIC PAGES ======= */
.static-page {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
}

.static-page h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--gold);
}

.static-page h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin: 1.5rem 0 0.5rem;
}

.static-page p { margin-bottom: 1rem; color: var(--gray-700); line-height: 1.7; }
.static-page a { color: var(--gold); text-decoration: underline; }

.static-content { color: var(--gray-700); line-height: 1.75; }

/* ======= PAGINAÇÃO ======= */
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; padding: 1rem; }
.pagination__btn { background: var(--black); color: var(--gold); border: 1px solid var(--gold); padding: 0.5rem 1.25rem; border-radius: var(--radius); font-weight: 600; font-size: 0.875rem; transition: background 0.2s; }
.pagination__btn:hover { background: var(--gold); color: var(--black); }
.pagination__info { font-size: 0.875rem; color: var(--gray-500); }

/* ======= ERROR / EMPTY ======= */
.error-page { text-align: center; padding: 4rem 0; }
.error-page h1 { font-family: var(--font-heading); font-size: 5rem; color: var(--gold); }
.error-page p { font-size: 1.25rem; color: var(--gray-500); margin: 1rem 0 2rem; }

.empty-state { text-align: center; padding: 3rem; color: var(--gray-500); background: var(--white); border-radius: var(--radius); }

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--gold-light); }

/* ======= FOOTER ======= */
.site-footer {
  background: var(--black);
  color: var(--gray-300);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
  border-top: 3px solid var(--gold);
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }

.footer-brand p { font-size: 0.875rem; color: var(--gray-500); margin-top: 0.75rem; line-height: 1.6; }

.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social a { background: var(--dark-3); color: var(--gray-300); padding: 0.4rem 0.75rem; border-radius: var(--radius); font-size: 0.75rem; font-weight: 700; transition: background 0.2s, color 0.2s; }
.footer-social a:hover { background: var(--gold); color: var(--black); }

.footer-col h4 { color: var(--white); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a { color: var(--gray-500); font-size: 0.875rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom { border-top: 1px solid var(--dark-3); padding-top: 1.25rem; display: flex; align-items: center; justify-content: center; }
.footer-bottom p { font-size: 0.8rem; color: var(--gray-700); }

/* ======= RESPONSIVO ======= */
@media (max-width: 900px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .posts-grid { grid-template-columns: 1fr; }
  .post-card--featured { grid-column: 1; }
  .nav-mobile-toggle { display: block; }
  .main-nav { display: none; flex-direction: column; align-items: flex-start; position: absolute; top: 64px; left: 0; right: 0; background: var(--black); padding: 1rem; border-bottom: 2px solid var(--gold); z-index: 99; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.6rem 1rem; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .post-title { font-size: 1.5rem; }
  .single-post { padding: 1.25rem; }
}
