/*
Theme Name: Big Lion Blog
Theme URI: https://www.bigliondomains.com/blog/
Author: Big Lion Domains
Author URI: https://www.bigliondomains.com/
Description: Tema del blog de Big Lion Domains. Usa la misma hoja de estilos, el mismo encabezado y el mismo pie del sitio principal para que el blog se vea como parte de la misma página: contornos gruesos, sombras planas, azul y naranja, Rubik y Dave el león.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: biglion-blog
*/

/* Los estilos base (colores, tipografía, botones, encabezado, pie) están en assets/css/main.css, una copia de la hoja del sitio principal
   que genera sitio/tools/blog-tema.js. Aquí solo van las piezas propias del blog. */

/* ---------- Encabezado del blog ---------- */
.blog-hero .page-hero__grid { grid-template-columns: 1.15fr .85fr; min-height: 0; padding-top: 12px; }
.blog-hero .page-hero__text { padding: 20px 0 54px; max-width: 760px; }
.blog-hero--simple .page-hero__grid { grid-template-columns: 1fr; }
.blog-hero--simple .page-hero__text { max-width: 860px; padding-bottom: 46px; }
.blog-hero h1 { font-size: clamp(32px, 4.4vw, 52px); }
/* Dave grande (solo escritorio): se corta por abajo, como en el resto del sitio */
.blog-hero__dave { width: min(460px, 100%); justify-self: center; align-self: end; margin-bottom: -140px; position: relative; z-index: 1; }
.blog-hero .page-hero__text .lead { margin-bottom: 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; font-size: 15.5px; color: #c9d4ea; }
.post-meta span + span::before { content: "·"; margin-right: 18px; color: var(--orange); }

/* ---------- Buscador y categorías ---------- */
.blog-tools { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; margin-bottom: 38px; }
.blog-cats { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.blog-cats a { display: inline-block; padding: 7px 16px; background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; border: var(--bw) solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.blog-cats a:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); color: var(--ink); background: var(--cream); }
.blog-cats .current-cat a, .blog-cats a[aria-current] { background: var(--orange); }
.blog-search { display: flex; gap: 10px; }
.blog-search input[type="search"] { font: inherit; padding: 10px 14px; min-width: 240px; background: #fff; color: var(--ink); border: var(--bw) solid var(--ink); border-radius: 10px; }
.blog-search input[type="search"]:focus { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Tarjetas de entradas ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; transition: transform .12s ease, box-shadow .12s ease; }
.post-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.post-card__img { display: block; aspect-ratio: 3 / 2; background: var(--blue-l); border-bottom: var(--bw) solid var(--ink); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__img--vacio { display: grid; place-items: center; }
.post-card__img--vacio img { width: 92px; height: 92px; object-fit: contain; }
.post-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; flex: 1; }
.post-card__cat { align-self: flex-start; padding: 2px 12px; background: var(--orange); color: var(--ink); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; border: 2px solid var(--ink); border-radius: 999px; }
.post-card__cat:hover { background: #ffb23d; color: var(--ink); }
.post-card h2 { font-size: 22px; margin: 4px 0 0; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--blue); }
.post-card__meta { font-size: 14px; color: var(--muted); }
.post-card p { margin: 0; color: var(--muted); font-size: 16px; }
.post-card__more { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--blue); text-decoration: none; }
.post-card__more:hover { color: var(--blue-d); }
.post-card--destacada { grid-column: 1 / -1; flex-direction: row; }
.post-card--destacada .post-card__img { flex: 0 0 48%; aspect-ratio: auto; height: 400px; border-bottom: 0; border-right: var(--bw) solid var(--ink); }
.post-card--destacada h2 { font-size: clamp(26px, 3vw, 36px); }
.post-card--destacada .post-card__body { padding: 30px 34px; justify-content: center; }
.post-card--destacada p { font-size: 17.5px; }

/* ---------- Paginación ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 46px; }
.pager .page-numbers { display: inline-block; min-width: 44px; padding: 8px 14px; text-align: center; background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; border: var(--bw) solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); }
.pager a.page-numbers:hover { background: var(--cream); color: var(--ink); }
.pager .page-numbers.current { background: var(--orange); }
.pager .dots { box-shadow: none; border-color: transparent; background: none; }

/* ---------- Entrada individual ---------- */
.post-figure { margin: 0 auto 44px; max-width: 980px; }
.post-figure img { width: 100%; border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); }
.post-figure figcaption { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.entry-content { max-width: 760px; margin-inline: auto; font-size: 18.5px; line-height: 1.75; }
.entry-content > * + * { margin-top: 1.15em; margin-bottom: 0; }
.entry-content h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 1.9em; }
.entry-content h3 { font-size: 24px; margin-top: 1.6em; }
.entry-content h4 { font-size: 20px; margin-top: 1.4em; }
.entry-content a { color: var(--blue); font-weight: 500; text-decoration-thickness: 2px; text-decoration-color: var(--orange); }
.entry-content a:hover { color: var(--blue-d); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .4em; }
.entry-content ul li::marker { color: var(--orange); }
.entry-content blockquote { margin-inline: 0; padding: 20px 26px; background: var(--cream); border: var(--bw) solid var(--ink); border-left: 10px solid var(--orange); border-radius: var(--r); box-shadow: var(--shadow); }
.entry-content blockquote p { margin: 0; font-style: italic; }
.entry-content blockquote strong { font-style: normal; font-weight: 800; }
.entry-content blockquote cite { display: block; margin-top: 10px; font-size: 15px; color: var(--muted); font-style: normal; }
.entry-content img, .entry-content .wp-block-image img { border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption { margin-top: 10px; font-size: 14.5px; color: var(--muted); text-align: center; }
.entry-content pre { overflow-x: auto; padding: 18px 20px; background: var(--ink); color: #fff; font-size: 15.5px; line-height: 1.55; border-radius: var(--r); border: var(--bw) solid var(--ink); }
.entry-content code { padding: 2px 6px; background: var(--blue-l); border-radius: 6px; font-size: .9em; }
.entry-content pre code { padding: 0; background: none; color: inherit; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; border: var(--bw) solid var(--ink); }
.entry-content th, .entry-content td { padding: 10px 14px; text-align: left; border: 2px solid #e4e9f2; }
.entry-content thead th, .entry-content th { background: var(--ink); color: #fff; }
.entry-content hr { border: 0; border-top: var(--bw) solid var(--ink); margin-block: 2.4em; }
.entry-content .wp-block-button__link, .entry-content .wp-element-button { display: inline-block; padding: 12px 22px; background: var(--orange); color: var(--ink); font-weight: 700; text-decoration: none; border: var(--bw) solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); }
.entry-content .wp-block-button__link:hover { background: #ffb23d; color: var(--ink); }
.entry-content .alignwide { max-width: 980px; margin-inline: auto; }
.entry-content .alignleft { float: left; margin: .4em 1.4em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .4em 0 1em 1.4em; max-width: 50%; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content::after { content: ""; display: block; clear: both; }
.post-tags { max-width: 760px; margin: 38px auto 0; display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.post-tags a { display: inline-block; padding: 4px 14px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; border: 2px solid var(--ink); border-radius: 999px; }
.post-tags a:hover { background: var(--cream); }
.post-nav { max-width: 760px; margin: 46px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { display: block; padding: 16px 18px; background: #fff; color: var(--ink); text-decoration: none; border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: 4px 4px 0 var(--ink); }
.post-nav a:hover { background: var(--cream); }
.post-nav small { display: block; margin-bottom: 4px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; }
.post-nav strong { font-size: 17px; line-height: 1.3; }
.post-nav .siguiente { text-align: right; grid-column: 2; }

/* ---------- Comentarios ---------- */
.comments { max-width: 760px; margin: 56px auto 0; }
.comments h2 { font-size: 28px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 34px; }
.comment-list .children { list-style: none; padding-left: 22px; }
.comment-body { margin-bottom: 16px; padding: 18px 20px; background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: 4px 4px 0 var(--ink); }
.comment-author { font-weight: 700; }
.comment-author img { float: left; margin-right: 12px; border: 2px solid var(--ink); border-radius: 50%; }
.comment-metadata { font-size: 13.5px; color: var(--muted); }
.comment-metadata a { color: var(--muted); }
.comment-form label { display: block; margin-bottom: 4px; font-weight: 600; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; font: inherit; padding: 10px 14px; background: #fff; border: var(--bw) solid var(--ink); border-radius: 10px; }
.comment-form p { margin: 0 0 14px; }
.comment-form .submit { display: inline-block; padding: 12px 22px; font: 700 17px "Rubik", sans-serif; background: var(--orange); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); cursor: pointer; }

/* ---------- 404 y sin resultados ---------- */
.blog-vacio { max-width: 640px; margin-inline: auto; text-align: center; }
.blog-vacio img { width: min(260px, 70%); margin: 0 auto 18px; }

/* ---------- Tablet y celular ---------- */
@media (max-width: 1000px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-hero .page-hero__grid { grid-template-columns: 1fr; }
  .blog-hero__dave { display: none; }
  .post-card--destacada { flex-direction: column; }
  .post-card--destacada .post-card__img { flex: none; height: auto; aspect-ratio: 3 / 2; border-right: 0; border-bottom: var(--bw) solid var(--ink); }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; gap: 22px; }
  .blog-tools { flex-direction: column; align-items: stretch; }
  .blog-search input[type="search"] { min-width: 0; flex: 1; }
  .entry-content { font-size: 17.5px; }
  .post-meta span + span::before { display: none; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .siguiente { grid-column: 1; text-align: left; }
  .entry-content .alignleft, .entry-content .alignright { float: none; max-width: 100%; margin: 1em 0; }
}
