@charset "UTF-8";
/**
 * Proprietary License - All Rights Reserved
 *
 * Copyright (c) 2026 Hardware Online
 *
 * All rights reserved. This software and its source files are the
 * intellectual property of Hardware Online. Authored by gommergab.
 *
 * Unauthorized copying, modification, distribution or use of this
 * software, in whole or in part, is strictly prohibited without the
 * prior written permission of Hardware Online.
 *
 * This software is provided "as is", without warranty of any kind,
 * express or implied, including but not limited to the warranties of
 * merchantability, fitness for a particular purpose and non-infringement.
 *
 * @author gommergab
 * @copyright 2026 Hardware Online
 * @license Proprietary
 */
/**
 * Proprietary License - All Rights Reserved
 *
 * Copyright (c) 2026 Hardware Online
 *
 * All rights reserved. This software and its source files are the
 * intellectual property of Hardware Online. Authored by gommergab.
 *
 * Unauthorized copying, modification, distribution or use of this
 * software, in whole or in part, is strictly prohibited without the
 * prior written permission of Hardware Online.
 *
 * This software is provided "as is", without warranty of any kind,
 * express or implied, including but not limited to the warranties of
 * merchantability, fitness for a particular purpose and non-infringement.
 *
 * @author gommergab
 * @copyright 2026 Hardware Online
 * @license Proprietary
 */
/* ==========================================================================
   Blog Component — Burry Framework
   Estilos para blog-card (listados) y blog-post (detalle).
   Se usa junto a theme.css; article ya tiene estilos base en el framework.
   Fuentes Burry: abstracts del tema Sayaka vía --load-path al compilar.
   ========================================================================== */
/**
 * Proprietary License - All Rights Reserved
 *
 * Copyright (c) 2026 Hardware Online
 *
 * All rights reserved. This software and its source files are the
 * intellectual property of Hardware Online. Authored by gommergab.
 *
 * Unauthorized copying, modification, distribution or use of this
 * software, in whole or in part, is strictly prohibited without the
 * prior written permission of Hardware Online.
 *
 * This software is provided "as is", without warranty of any kind,
 * express or implied, including but not limited to the warranties of
 * merchantability, fitness for a particular purpose and non-infringement.
 *
 * @author gommergab
 * @copyright 2026 Hardware Online
 * @license Proprietary
 */
/**
 * Proprietary License - All Rights Reserved
 *
 * Copyright (c) 2026 Hardware Online
 *
 * All rights reserved. This software and its source files are the
 * intellectual property of Hardware Online. Authored by gommergab.
 *
 * Unauthorized copying, modification, distribution or use of this
 * software, in whole or in part, is strictly prohibited without the
 * prior written permission of Hardware Online.
 *
 * This software is provided "as is", without warranty of any kind,
 * express or implied, including but not limited to the warranties of
 * merchantability, fitness for a particular purpose and non-infringement.
 *
 * @author gommergab
 * @copyright 2026 Hardware Online
 * @license Proprietary
 */
.blog-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-post__main {
  min-width: 0;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.blog-card__read-more {
  color: var(--ink);
}

/* ── Blog listing grid (fluid, 300–450px tracks, filas centradas) ─────── */
#blog-listing .blog-listing__grid {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: repeat(auto-fill, minmax(300px, 450px));
  justify-content: center;
}

#blog-listing .blog-listing__grid > .blog-card {
  height: 100%;
}

/* Category landing (slug o filtro): HTML de descripcion bajo el hero */
#blog-listing .blog-listing__category-block .blog-post__hero {
  margin-bottom: var(--spacing-4, 1rem);
}

#blog-listing .blog-listing__category-html {
  width: 100%;
  line-height: 1.75;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

#blog-listing .blog-listing__category-html:last-child {
  margin-bottom: 0;
}

#blog-listing .blog-listing__category-html p {
  margin-bottom: 1em;
}

#blog-listing .blog-listing__category-html h2,
#blog-listing .blog-listing__category-html h3 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

#blog-listing .blog-listing__category-html img {
  max-width: 100%;
  height: auto;
}

#blog-listing .blog-listing__category-html--intro {
  font-size: 1.05rem;
}

/* ── Blog Card (listado) ─────────────────────────────────────────────────── */
.blog-card {
  gap: 0;
}

.blog-card.panel {
  overflow: hidden;
  box-shadow: none;
}

.blog-card > .blog-card__image,
.blog-card > .blog-card__footer {
  flex: 0 0 auto;
}

.blog-card > .blog-card__body {
  flex: 1 1 auto;
  min-height: 0;
}

.blog-card__image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: var(--tile);
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-post__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
}

.blog-card__category {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
}

.blog-card__category.badge-soft {
  background-color: var(--bg);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.blog-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.blog-card__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.4;
}

.blog-card__title a {
  color: var(--ink);
  text-decoration: none;
  transition: var(--transition);
}

.blog-card__title a:hover {
  color: var(--brand);
}

.blog-card__excerpt {
  color: var(--sub);
  font-size: 0.925rem;
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
}

.blog-card__meta > span,
.blog-post__meta > span:not(.badge) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  color: var(--sub);
}

.blog-card__meta svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}

.blog-post__meta svg {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
}

.blog-card__meta svg:not(.svg-icon),
.blog-post__meta svg:not(.svg-icon) {
  margin-right: 4px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.blog-card__meta .svg-icon,
.blog-post__meta .svg-icon {
  margin-right: 0;
  flex-shrink: 0;
}

.blog-card__meta .svg-icon:not(.svg-icon--stroke),
.blog-post__meta .svg-icon:not(.svg-icon--stroke) {
  fill: currentColor;
  stroke: none;
}

.blog-card__meta .svg-icon--stroke,
.blog-post__meta .svg-icon--stroke {
  fill: none;
  stroke: currentColor;
}

.blog-card__footer {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background-color: var(--bg);
  margin-top: auto;
}

.blog-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--transition);
}

.blog-card__read-more:hover {
  gap: 10px;
  color: var(--brand);
}

.blog-card__read-more::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  background-color: currentColor;
  transition: var(--transition);
}

/* ── Blog Post (detalle) ─────────────────────────────────────────────────── */
.blog-post {
  display: flex;
  gap: var(--grid-gap, 20px);
  align-items: flex-start;
}

.blog-post__main {
  flex: 1;
}

.blog-post__sidebar {
  width: 300px;
  flex-shrink: 0;
}

.blog-post__sidebar > .panel {
  padding: 1.25rem;
  margin-bottom: var(--grid-gap, 20px);
}

.blog-post__sidebar > .panel:last-child {
  margin-bottom: 0;
}

.blog-post__hero {
  position: relative;
  aspect-ratio: 21/9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  background-color: var(--tile);
}

.blog-post__header {
  margin-bottom: 32px;
}

.blog-post__header h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin: 0 0 16px;
}

.blog-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 0.875rem;
}

.blog-post__content {
  width: 100%;
  line-height: 1.8;
  font-size: 1.05rem;
}

.blog-post__content h2,
.blog-post__content h3 {
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.blog-post__content p {
  margin-bottom: 1.25em;
}

.blog-post__content ul,
.blog-post__content ol {
  margin-bottom: 1.25em;
  padding-left: 24px;
}

.blog-post__content li {
  margin-bottom: 0.5em;
}

.blog-post__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.blog-post__content blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-left: 4px solid var(--brand);
  background-color: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ── Blog comments (aligned with ho_productfeedback review UI) ─────────── */
.blog-comments__action {
  margin-bottom: var(--spacing-3);
}

.ho-blog-comment-dialog.modal[popover],
dialog.ho-blog-comment-dialog.modal[popover] {
  width: min(36rem, 100vw - 2rem);
  max-height: min(90vh, 720px);
}

.ho-blog-comment-dialog .modal__scroll-body {
  padding: var(--spacing-4);
}

.ho-blog-comment__subject {
  margin-top: 0.35rem;
}

.blog-comments__login-hint a {
  font-weight: 500;
}

/* ho_productfeedback front.css subset: cards, stars, form, alerts */
#blog-comments .ho-pf-card__meta,
.ho-blog-comment-dialog .ho-pf-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--sub);
  font-size: 0.9rem;
  min-width: 0;
}

#blog-comments .ho-pf-card__meta strong,
.ho-blog-comment-dialog .ho-pf-card__meta strong,
#blog-comments .ho-pf-card__meta span,
.ho-blog-comment-dialog .ho-pf-card__meta span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#blog-comments .ho-pf-card__meta strong,
.ho-blog-comment-dialog .ho-pf-card__meta strong {
  color: var(--ink);
}

#blog-comments .ho-pf-list,
.ho-blog-comment-dialog .ho-pf-list {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

#blog-comments .ho-pf-card,
.ho-blog-comment-dialog .ho-pf-card {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tile);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#blog-comments .ho-pf-card__text,
.ho-blog-comment-dialog .ho-pf-card__text {
  margin: 0.6rem 0 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#blog-comments .ho-pf-stars svg,
.ho-blog-comment-dialog .ho-pf-stars svg {
  height: 16px;
}

#blog-comments .ho-pf-answers,
.ho-blog-comment-dialog .ho-pf-answers {
  margin-top: 0.75rem;
  border-left: 3px solid var(--brand-light);
  padding-left: 0.75rem;
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

#blog-comments .ho-pf-actions,
.ho-blog-comment-dialog .ho-pf-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}

#blog-comments .ho-pf-actions .btn,
#blog-comments .ho-pf-actions button,
.ho-blog-comment-dialog .ho-pf-actions .btn,
.ho-blog-comment-dialog .ho-pf-actions button {
  max-width: 100%;
}

#blog-comments .ho-pf-form,
.ho-blog-comment-dialog .ho-pf-form {
  display: grid;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem;
  background: var(--bg-soft);
}

.ho-blog-comment-dialog .ho-pf-form {
  border: 0;
  padding: 0;
  background: transparent;
}

#blog-comments .ho-pf-form textarea,
.ho-blog-comment-dialog .ho-pf-form textarea {
  min-height: 100px;
  resize: vertical;
}

#blog-comments .ho-pf-counter,
.ho-blog-comment-dialog .ho-pf-counter {
  font-size: 0.8rem;
  color: var(--sub);
}

#blog-comments .ho-pf-counter.is-limit,
.ho-blog-comment-dialog .ho-pf-counter.is-limit {
  color: var(--error);
}

#blog-comments .ho-pf-alert,
.ho-blog-comment-dialog .ho-pf-alert {
  padding: 0.75rem;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#blog-comments .ho-pf-alert--success,
.ho-blog-comment-dialog .ho-pf-alert--success {
  background: color-mix(in srgb, var(--ok) 14%, var(--bg));
  color: var(--ok);
}

#blog-comments .ho-pf-alert--error,
.ho-blog-comment-dialog .ho-pf-alert--error {
  background: color-mix(in srgb, var(--error) 14%, var(--bg));
  color: var(--error);
}

#blog-comments .ho-pf-error,
.ho-blog-comment-dialog .ho-pf-error {
  color: var(--error);
  font-size: 0.85rem;
  margin: 0;
}

#blog-comments .ho-pf-stars-input,
.ho-blog-comment-dialog .ho-pf-stars-input {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

#blog-comments .ho-pf-star-btn,
.ho-blog-comment-dialog .ho-pf-star-btn {
  border: 0;
  background: transparent;
  color: var(--sub);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

#blog-comments .ho-pf-stars-input .ho-pf-star-btn:hover,
#blog-comments .ho-pf-stars-input .ho-pf-star-btn:focus,
#blog-comments .ho-pf-stars-input .ho-pf-star-btn:focus-visible,
.ho-blog-comment-dialog .ho-pf-stars-input .ho-pf-star-btn:hover,
.ho-blog-comment-dialog .ho-pf-stars-input .ho-pf-star-btn:focus,
.ho-blog-comment-dialog .ho-pf-stars-input .ho-pf-star-btn:focus-visible {
  background: transparent;
  background-color: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

#blog-comments .ho-pf-stars-input .ho-pf-star-btn:hover,
.ho-blog-comment-dialog .ho-pf-stars-input .ho-pf-star-btn:hover {
  color: var(--warn);
}

#blog-comments .ho-pf-stars-input .ho-pf-star-btn:focus:not(:focus-visible),
.ho-blog-comment-dialog .ho-pf-stars-input .ho-pf-star-btn:focus:not(:focus-visible) {
  outline: none;
}

#blog-comments .ho-pf-stars-input .ho-pf-star-btn:focus-visible,
.ho-blog-comment-dialog .ho-pf-stars-input .ho-pf-star-btn:focus-visible {
  outline: 2px solid var(--warn);
  outline-offset: 2px;
}

#blog-comments .ho-pf-stars-input .ho-pf-star-btn:active,
.ho-blog-comment-dialog .ho-pf-stars-input .ho-pf-star-btn:active {
  transform: none;
  box-shadow: none;
}

#blog-comments .ho-pf-star-btn.is-active,
.ho-blog-comment-dialog .ho-pf-star-btn.is-active {
  color: var(--warn);
}

/* ── Blog Section Header ─────────────────────────────────────────────────── */
.blog-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.blog-section-header h2 {
  margin: 0;
  border: none;
  padding: 0;
}

.blog-section-header a {
  color: var(--brand);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.blog-section-header a:hover {
  gap: 8px;
  color: var(--brand-dark);
}

/* ── Blog Filters ────────────────────────────────────────────────────────── */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.blog-filters a {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--bg);
  color: var(--sub);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.blog-filters a:hover {
  border-color: var(--brand-light);
  color: var(--brand);
}

.blog-filters a.active {
  background-color: var(--brand);
  color: var(--bg);
  border-color: var(--brand);
}

/* ── Blog Search ─────────────────────────────────────────────────────────── */
.blog-search {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin-bottom: 24px;
}

.blog-search input[type=search] {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 0.9375rem;
  transition: var(--transition);
}

.blog-search input[type=search]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}

.blog-search button {
  padding: 10px 20px;
  background-color: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
}

.blog-search button:hover {
  background-color: var(--brand-dark);
}

/* ── Blog Reading Time ───────────────────────────────────────────────────── */
.blog-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-reading-time svg:not(.svg-icon) {
  stroke: currentColor;
}

.blog-reading-time .svg-icon {
  color: currentColor;
  fill: currentColor;
  stroke: none;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .blog-post {
    flex-direction: column;
  }
  .blog-post__sidebar {
    width: 100%;
  }
  .blog-post__header h1 {
    font-size: 1.6rem;
  }
  .blog-post__hero {
    aspect-ratio: 16/9;
  }
}
@media (max-width: 767px) {
  .blog-card__body {
    padding: 16px;
  }
  .blog-card__footer {
    padding: 12px 16px;
  }
  .blog-card__meta > span {
    white-space: normal;
  }
  .blog-post__content {
    font-size: 1rem;
  }
  .blog-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .blog-search {
    max-width: 100%;
  }
}
