/*
Theme Name: Mesa Ilustrada
Theme URI: https://mesa-ilustrada.local
Author: Mesa Ilustrada
Author URI: https://mesa-ilustrada.local
Description: Tema mobile-first para blog com Bootstrap.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: mesa-ilustrada
*/

:root {
  --mi-yellow: #FFC400;
  --mi-coral: #0E625D;
  --mi-cream: #FFF0E6;
  --mi-ink: #2f2a27;
  --mi-muted: #6f6762;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: var(--mi-ink);
  background: var(--mi-cream);
  line-height: 1.7;
}

a {
  color: var(--mi-coral);
  text-decoration: none;
}

a:hover,
a:focus {
  color: #b84f4a;
}

.site-header {
  background: #ffd65c;
  border-bottom: 3px solid rgba(47, 42, 39, 0.15);
}

.navbar-brand,
.nav-link {
  color: #2b1715;
  font-weight: 700;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  width: auto;
  max-height: 56px;
}

.nav-link:hover,
.nav-link:focus {
  color: #fff;
}

.hero {
  background: #fff;
  border: 2px solid rgba(222, 98, 93, 0.2);
  border-radius: 1rem;
  padding: 1.25rem;
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.hero p {
  color: var(--mi-muted);
  margin-bottom: 0;
}

.post-card {
  background: #fff;
  border: 1px solid rgba(47, 42, 39, 0.1);
  border-radius: 0.85rem;
  height: auto;
  box-shadow: 0 8px 24px rgba(47, 42, 39, 0.06);
}

.post-card .card-body {
  padding: 1.25rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-tag-pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #4A2E1A;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}

.post-tag-pill:hover,
.post-tag-pill:focus {
  color: #fff;
  background: #3a2414;
}

.post-card .card-title {
  font-weight: 800;
}

.post-card .card-text,
.entry-content p,
.widget p,
ul, ul li, h2, h3 {
  color: var(--mi-muted);
}

.post-meta {
  font-size: 0.9rem;
  color: var(--mi-muted);
}

.section-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.widget-area .widget {
  background: #fff;
  border: 1px solid rgba(47, 42, 39, 0.08);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem;
}

.widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.entry-title {
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.single-hero {
  width: 100%;
}

.single-hero-media {
  position: relative;
  min-height: clamp(280px, 54vw, 560px);
  background: #1f1b19;
  overflow: hidden;
}

.single-hero-image {
  display: block;
  width: 100%;
  height: clamp(280px, 54vw, 560px);
  object-fit: cover;
}

.single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.82) 100%);
  pointer-events: none;
}

.single-hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(1.25rem, 3vw, 2.5rem);
  color: #fff;
}

.single-hero-meta {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.70rem;
}

.single-hero-title {
  color: #fff;
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.3rem, 4vw, 2rem);
  line-height: 1.15;
  max-width: 18ch;
}

.btn-mi {
  --bs-btn-bg: var(--mi-coral);
  --bs-btn-border-color: var(--mi-coral);
  --bs-btn-hover-bg: #bb514c;
  --bs-btn-hover-border-color: #bb514c;
  --bs-btn-color: #fff;
  --bs-btn-font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-mi-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: block;
  transform: rotate(30deg);
  transition: transform 220ms ease;
}

.btn-mi:hover .btn-mi-icon,
.btn-mi:focus .btn-mi-icon {
  transform: rotate(-10deg);
}

.pagination .page-link {
  color: var(--mi-coral);
}

.pagination .active .page-link {
  background-color: var(--mi-coral);
  border-color: var(--mi-coral);
}

.site-footer {
  background: #2f2a27;
  color: #fff;
  padding: 1rem 0;
  margin-top: 2rem;
  text-align:center;
}

.site-footer a {
  color: var(--mi-yellow);
}

.comment-list .comment-body {
  background: #fff;
  border: 1px solid rgba(47, 42, 39, 0.08);
  border-radius: 0.75rem;
  padding: 1rem;
}

.comment-respond textarea,
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.site-main p{
  text-align: justify;
}

.entry-content .wp-block-image {
  position: relative;
  overflow: hidden;
}

.entry-content .wp-block-image .wp-element-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  text-align: center;
}

@media (max-width: 991.98px) {
  .site-header {
    padding-bottom: 0.5rem;
  }

  .hero {
    padding: 1rem;
  }

  .single-hero-content {
    padding-bottom: 1rem;
  }

  .single-hero-title {
    max-width: 100%;
  }
  .btn-mi-icon{
    transform: rotate(0);
  }
}