/*
Theme Name: Relaxa Editorial
Description: Tema editorial limpo e responsivo criado especialmente para o blog Relaxa e Goza.
Version: 1.0.0
Text Domain: relaxa-editorial
*/

:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-muted: #475569;
  --ink-subtle: #64748b;
  --border: #e2e8f0;
  --navy: #0f172a;
  --navy-light: #1e293b;
  --sky: #0284c7;
  --sky-soft: #e0f2fe;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -6px rgba(15, 23, 42, 0.04);
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--sky);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #0369a1;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--navy) 0%, #172554 100%);
  color: #fff;
  border-bottom: 3px solid var(--amber);
}

.header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 22px;
}

.brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 680px;
}

.brand-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  display: block;
  transition: transform 0.18s ease;
}

.brand-icon:hover {
  transform: scale(1.04);
}

.brand-icon img {
  display: block;
  width: 54px;
  height: 54px;
}

.brand-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-title a {
  color: #ffffff;
}

.brand-desc {
  margin: 6px 0 0;
  font-size: 0.94rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.header-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 4px 6px 4px 16px;
  min-width: 250px;
}

.header-search input {
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
  font-size: 0.9rem;
  width: 100%;
}

.header-search input::placeholder {
  color: #cbd5e1;
}

.header-search button {
  background: var(--amber);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.header-search button:hover {
  background: #b45309;
}

/* Category Nav */
.cat-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cat-nav a {
  color: #e2e8f0;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.15s ease, color 0.15s ease;
}

.cat-nav a:hover,
.cat-nav a.active {
  background: #ffffff;
  color: var(--navy);
}

/* Main Layout */
.site-main {
  padding: 34px 0 60px;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
}

/* Archive Header */
.archive-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--sky);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.archive-banner h1 {
  margin: 0;
  font-size: 1.35rem;
}

.archive-banner p {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

/* Cards */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 640px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.post-card.featured {
  grid-column: 1 / -1;
  padding: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-top: 4px solid var(--sky);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: var(--ink-subtle);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--sky-soft);
  color: #0369a1;
}

.badge-featured {
  background: var(--amber-soft);
  color: #b45309;
}

.card-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.post-card.featured .card-title {
  font-size: 1.55rem;
}

.card-title a {
  color: var(--ink);
}

.card-title a:hover {
  color: var(--sky);
}

.card-excerpt {
  margin: 0 0 16px;
  color: var(--ink-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  color: var(--ink-subtle);
}

.read-more {
  font-weight: 600;
  color: var(--sky);
}

/* Pagination */
.pagination-wrap {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.page-numbers.current {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.page-numbers:hover:not(.current):not(.dots) {
  border-color: var(--sky);
  color: var(--sky);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-subtle);
}

.cat-list,
.recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.92rem;
}

.cat-list li:last-child {
  border-bottom: none;
}

.cat-count {
  background: #f1f5f9;
  color: var(--ink-subtle);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.recent-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
  line-height: 1.4;
}

.recent-list li:last-child {
  border-bottom: none;
}

.recent-list a {
  color: var(--ink);
  font-weight: 500;
}

.recent-list a:hover {
  color: var(--sky);
}

/* Single Article */
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .article-card {
    padding: 24px 20px;
  }
}

.article-header {
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.article-title {
  margin: 12px 0 12px;
  font-size: 1.95rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.article-meta {
  color: var(--ink-subtle);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.article-content {
  font-size: 1.06rem;
  line-height: 1.8;
  color: #1e293b;
}

.article-content p {
  margin: 0 0 1.25em;
}

.article-content img {
  border-radius: 10px;
  margin: 12px 0;
  box-shadow: var(--shadow-sm);
}

.article-content blockquote {
  margin: 1.4em 0;
  padding: 12px 20px;
  border-left: 4px solid var(--amber);
  background: #fffbeb;
  border-radius: 0 10px 10px 0;
  color: #334155;
}

.article-tags {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-tags a {
  background: #f1f5f9;
  color: var(--ink-muted);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.post-nav {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 640px) {
  .post-nav {
    grid-template-columns: 1fr;
  }
}

.post-nav-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

.post-nav-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-subtle);
  margin-bottom: 4px;
}

.post-nav-box a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.post-nav-box a:hover {
  color: var(--sky);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 28px 0;
  font-size: 0.88rem;
  border-top: 1px solid #1e293b;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-inner a {
  color: #e2e8f0;
}

