:root {
  --gold: #c9a24d;
  --gold-dark: #a88432;
  --stone: #f3f0ea;
  --stone-dark: #e6e2da;
  --ink: #1a1a1a;
  --muted: #6f6f6f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* REMOVE AZUL DE LINKS */
a {
  text-decoration: none;
  color: inherit;
}

a:visited,
a:hover,
a:active {
  color: inherit;
  text-decoration: none;
}

body {
  font-family: 'Cinzel', sans-serif;
  background: var(--stone);
  color: var(--ink);
  line-height: 1.6;
}

/* HEADER */
header {
  background: var(--stone-dark);
  border-bottom: 1px solid #ddd;
}

.nav {
  max-width: 1200px;
  margin: auto;
  padding: 5px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 220px;
}

nav a {
  margin-left: 32px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: var(--ink);
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* ================= TÍTULO ================= */

.content-title {
  font-family: 'Cinzel';
  font-size: 2.2rem;
  text-align: center;
  margin: 50px 0 40px 0;
  color: var(--gold);
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
}

/* BUSCA */

.search-container {
  max-width: 600px;
  margin: 0 auto 40px;
  display: flex;
  gap: 10px;
}

.search-container input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 30px;
  border: 1px solid var(--gold);
}

.search-container button {
  padding: 0 25px;
  border-radius: 30px;
  border: none;
  background: var(--gold);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.search-container button:hover {
  background: var(--gold-dark);
}

.no-results {
  text-align: center;
  margin-bottom: 30px;
  display: none;
}

/* CONTAINER */

.content-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 40px 100px;
  display: flex;
  flex-direction: column;
  gap: 70px;
}

.content-section h3 {
  font-family: 'Cinzel';
  margin-bottom: 25px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

/* POSTS */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.post-card {
  background: #e3dfd6;
  border-radius: 10px;
  overflow: hidden;
  transition: 0.3s;
  padding-bottom: 15px; /* espaço interno inferior */
}

.post-card:hover {
  transform: translateY(-5px);
}

.post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* ESPAÇAMENTO INTERNO DO TEXTO */
.post-card h3,
.post-card p,
.post-card a {
  padding: 0 18px;
  margin-top: 10px;
}

.post-card a {
  display: inline-block;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 10px;
}

.post-date {
  font-size: 0.8rem;
  color: var(--gold-dark);
  font-weight: 600;
}

.post-card.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.youtube-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.youtube-grid iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
}

.site-footer {
  background: var(--stone-dark);
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid #ddd;
  margin-top: 60px;
}

.footer-content {
  font-family: 'Cinzel', sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.site-footer a {
  color: var(--gold-dark);
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

.site-footer a:hover {
  color: var(--gold);
}


/* MOBILE */

@media (max-width: 768px) {

  .nav {
    flex-direction: column;
    gap: 20px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .posts-grid,
  .videos-grid {
    grid-template-columns: 1fr;
  }

  .search-container {
    flex-direction: column;
  }

  .search-container button {
    width: 100%;
    padding: 12px;
  }
}
