/*==============================================================
  COMPONENTS — Editorial Style
  Alinea todos los componentes del blog al tono del ejemplo:
  Libre Baskerville + Mulish · paleta #faf9f7 · sin box-shadows
==============================================================*/

/* ─────────────────────────────────────────────
   1. LIKE BUTTON (views · likes · comments · read time)
───────────────────────────────────────────── */
.like-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 16px;
    font-family: 'Mulish', sans-serif;
    font-size: 11.5px;
    color: #aaa;
    font-weight: 400;
    margin-bottom: 1rem;
}

.like-bar i {
    font-size: 13px;
    margin-right: 4px;
    vertical-align: middle;
}

.like-bar .heartIcon {
    cursor: pointer;
    transition: color 0.2s;
}

.like-bar .heartIcon:hover,
.like-bar .heartIcon.liked {
    color: #c0392b;
}

/* Override del span inline que envuelve el componente */
.blog-details .article > span,
.post-entry > span,
.trending-post span:has(.heartIcon) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 14px;
    font-family: 'Mulish', sans-serif;
    font-size: 11.5px;
    color: #aaa;
    margin-bottom: 0.75rem;
}


/* ─────────────────────────────────────────────
   2. HOME POST PREVIEW  (.post-entry.lg)
───────────────────────────────────────────── */
.trending-category .post-entry {
    margin-bottom: 2rem;
    background: transparent;
    border: none;
    box-shadow: none;
}

.trending-category .post-entry img {
    width: 100%;
    display: block;
    margin-bottom: 1rem;
    border-radius: 4px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: opacity 0.3s;
}

.trending-category .post-entry img:hover {
    opacity: 0.88;
}

.trending-category .post-meta {
    font-family: 'Mulish', sans-serif;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: #aaa;
    margin-bottom: 6px;
}

.trending-category .post-meta .date {
    color: var(--accent-color);
}

.trending-category .post-entry h2 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    color: #111;
}

.trending-category .post-entry.lg h2 {
    font-size: 20px;
    line-height: 1.22;
    letter-spacing: -0.01em;
}

.trending-category .post-entry h2 a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s;
}

.trending-category .post-entry h2 a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.trending-category .post-entry p {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 15px;
    line-height: 1.75;
    color: #555;
    margin-bottom: 0.75rem;
}

.trending-category .author .name h3 {
    font-family: 'Mulish', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 0.04em;
}

.trending-category .author .name h3 a {
    color: var(--accent-color);
}


/* ─────────────────────────────────────────────
   3. TRENDING SIDEBAR  (.trending)
───────────────────────────────────────────── */
.trending-category .trending {
    border: 0.5px solid #e0ddd8;
    border-radius: 6px;
    overflow: hidden;
    background: #faf9f7;
}

.trending-category .trending > h3 {
    font-family: 'Mulish', sans-serif;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    color: #888;
    padding: 16px 20px;
    margin: 0;
    border-bottom: 0.5px solid #e0ddd8;
    background: transparent;
}

.trending-category .trending .trending-post {
    padding: 0;
    margin: 0;
}

.trending-category .trending .trending-post li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trending-category .trending .trending-post li a {
    display: block;
    padding: 16px 20px 14px;
    border-bottom: 0.5px solid #e8e5e1;
    position: relative;
    overflow: hidden;
    z-index: 2;
    text-decoration: none;
    transition: background 0.2s;
}

.trending-category .trending .trending-post li a:hover {
    background: #f3f1ee;
}

.trending-category .trending .trending-post li:last-child a {
    border-bottom: none;
}

.trending-category .trending .trending-post li a .number {
    position: absolute;
    z-index: 1;
    font-size: 4.5rem;
    left: -8px;
    top: -16px;
    font-weight: 700;
    font-family: 'Libre Baskerville', Georgia, serif;
    color: color-mix(in srgb, var(--default-color), transparent 93%);
    line-height: 1;
    pointer-events: none;
}

.trending-category .trending .trending-post li a h3 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1916;
    margin-bottom: 6px;
    transition: color 0.2s;
    position: relative;
    z-index: 2;
}

.trending-category .trending .trending-post li a:hover h3 {
    color: var(--accent-color);
    text-decoration: none;
}

/* Like bar dentro del trending */
.trending-category .trending .trending-post li a > span {
    font-size: 10.5px;
    color: #bbb;
    gap: 0 10px;
}


/* ─────────────────────────────────────────────
   4. POST PREVIEW (category / blog list page)
   .blog-posts article
───────────────────────────────────────────── */
.blog-posts article {
    background-color: transparent;
    box-shadow: none;
    border: 0.5px solid #e8e5e1;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.blog-posts article:hover {
    border-color: #c8c4be;
}

.blog-posts .post-img img {
    transition: transform 0.4s ease;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-posts article:hover .post-img img {
    transform: scale(1.04);
}

.blog-posts .post-date {
    background-color: var(--accent-color);
    color: #fff;
    position: absolute;
    right: 0;
    bottom: 0;
    font-family: 'Mulish', sans-serif;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 12px;
    font-weight: 600;
}

.blog-posts .post-content {
    padding: 20px 22px 22px;
}

.blog-posts .post-title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.blog-posts article:hover .post-title {
    color: var(--accent-color);
}

.blog-posts .meta {
    font-family: 'Mulish', sans-serif;
    font-size: 11px;
    color: #aaa;
    margin-bottom: 0;
}

.blog-posts .meta i {
    font-size: 13px;
    color: var(--accent-color);
}

.blog-posts .meta span {
    font-size: 11px;
    color: #aaa;
}

.blog-posts p {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 14.5px;
    line-height: 1.7;
    color: #555;
    margin-top: 12px;
    margin-bottom: 0;
}

.blog-posts hr {
    border-color: #e8e5e1;
    margin: 14px 0 12px;
}

.blog-posts .readmore {
    font-family: 'Mulish', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-color);
    transition: gap 0.2s;
}

.blog-posts .readmore i {
    margin-left: 5px;
    font-size: 14px;
    transition: transform 0.2s;
}

.blog-posts article:hover .readmore i {
    transform: translateX(3px);
}


/* ─────────────────────────────────────────────
   5. COMMENTS SECTION
───────────────────────────────────────────── */
.blog-comments {
    padding: 20px 0 10px;
    border-top: 0.5px solid #e0ddd8;
    margin-top: 2rem;
}

.blog-comments .comments-count {
    font-family: 'Mulish', sans-serif;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: #999;
    background: #fff;
    padding: 10px 0;
    border-bottom: 0.5px solid #e8e5e1;
}

.blog-comments .comments-count .btn-link {
    font-family: 'Mulish', sans-serif;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
}

.blog-comments .comment {
    margin-top: 24px;
    position: relative;
    padding-bottom: 20px;
    border-bottom: 0.5px solid #f0ede9;
}

.blog-comments .comment:last-child {
    border-bottom: none;
}

.blog-comments .comment .comment-img {
    margin-right: 14px;
    flex-shrink: 0;
}

.blog-comments .comment .comment-img img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e0ddd8;
}

.blog-comments .comment h5 {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
    color: #1a1916;
}

.blog-comments .comment h5 a {
    color: #1a1916;
    font-weight: 700;
}

.blog-comments .comment h5 a:hover {
    color: var(--accent-color);
}

.blog-comments .comment h5 .reply {
    font-family: 'Mulish', sans-serif;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    padding-left: 12px;
    color: #bbb;
    transition: color 0.2s;
}

.blog-comments .comment h5 .reply:hover {
    color: var(--accent-color);
}

.blog-comments .comment h5 .reply i {
    font-size: 14px;
    vertical-align: middle;
}

.blog-comments .comment time {
    display: block;
    font-family: 'Mulish', sans-serif;
    font-size: 11px;
    color: #bbb;
    margin-bottom: 8px;
}

.blog-comments .comment p {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 14.5px;
    line-height: 1.75;
    color: #3a3835;
    margin-bottom: 0;
}

.blog-comments .comment.comment-reply {
    padding-left: 36px;
    border-left: 1.5px solid #e8e5e1;
    margin-left: 22px;
}


/* ─────────────────────────────────────────────
   6. COMMENT FORM
───────────────────────────────────────────── */
.comment-form {
    padding-top: 2rem;
    border-top: 0.5px solid #e0ddd8;
    margin-top: 2rem;
}

.comment-form form {
    background-color: transparent;
    margin-top: 0;
    padding: 0;
    box-shadow: none;
}

.comment-form form h4 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
}

.comment-form form p {
    font-family: 'Mulish', sans-serif;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 1.5rem;
}

.comment-form form input,
.comment-form form textarea {
    background-color: #faf9f7;
    color: #1a1916;
    border: 0.5px solid #ddd;
    border-radius: 4px;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 14px;
    padding: 10px 14px;
    transition: border-color 0.2s;
}

.comment-form form input:focus,
.comment-form form textarea:focus {
    background-color: #fff;
    border-color: var(--accent-color);
    box-shadow: none;
    outline: none;
}

.comment-form form input::placeholder,
.comment-form form textarea::placeholder {
    color: #bbb;
}

.comment-form form textarea {
    height: 130px;
    resize: vertical;
}

.comment-form form .form-group {
    margin-bottom: 18px;
}

.comment-form form .btn-primary {
    font-family: 'Mulish', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 28px;
    border-radius: 4px;
    border: none;
    background-color: var(--accent-color);
    color: #fff;
    transition: background 0.2s;
}

.comment-form form .btn-primary:hover {
    background-color: color-mix(in srgb, var(--accent-color), transparent 15%);
}


/* ─────────────────────────────────────────────
   7. SIDEBAR WIDGETS
───────────────────────────────────────────── */
.widget-item {
    margin-bottom: 28px;
    background-color: #faf9f7;
    border: 0.5px solid #e8e5e1;
    padding: 22px;
    border-radius: 6px;
}

.widget-title {
    font-family: 'Mulish', sans-serif;
    font-size: 9.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    color: #999;
    padding: 0 0 0 10px;
    margin: 0 0 16px 0;
    border-left: 2px solid var(--accent-color);
}

/* Recent posts */
.recent-posts-widget .post-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 0.5px solid #eeebe7;
}

.recent-posts-widget .post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts-widget .post-item img {
    width: 68px;
    height: 50px;
    object-fit: cover;
    border-radius: 3px;
    margin-right: 12px;
    flex-shrink: 0;
}

.recent-posts-widget .post-item h4 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 4px;
    color: #1a1916;
}

.recent-posts-widget .post-item h4 a {
    color: #1a1916;
    transition: color 0.2s;
}

.recent-posts-widget .post-item h4 a:hover {
    color: var(--accent-color);
}

.recent-posts-widget .post-item time {
    font-family: 'Mulish', sans-serif;
    font-size: 10px;
    color: #bbb;
    display: block;
    letter-spacing: 0.04em;
}

/* Author widget */
.blog-author-widget {
    border: 0.5px solid #e8e5e1;
    border-radius: 6px;
    padding: 20px;
    background: #faf9f7;
    margin-bottom: 20px;
}

.blog-author-widget img {
    max-width: 56px;
    height: 56px;
    object-fit: contain;
    margin-right: 14px;
    border-radius: 4px;
}

.blog-author-widget h4 {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1a1916;
    margin-bottom: 2px;
    padding: 0;
}

.blog-author-widget .social-links a {
    font-size: 16px;
    color: #bbb;
    margin-right: 6px;
    transition: color 0.2s;
}

.blog-author-widget .social-links a:hover {
    color: var(--accent-color);
}

/* Tags widget */
.tags-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tags-widget ul li {
    display: inline-block;
}

.tags-widget ul a {
    font-family: 'Mulish', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    background-color: #f3f1ee;
    color: #777;
    border: 0.5px solid #ddd;
    border-radius: 3px;
    padding: 4px 12px;
    margin: 0 5px 7px 0;
    display: inline-block;
    transition: all 0.2s;
}

.tags-widget ul a:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}


/* ─────────────────────────────────────────────
   8. PAGINATOR
───────────────────────────────────────────── */
.blog-pagination {
    padding-top: 0;
}

.blog-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: center;
}

.blog-pagination li {
    margin: 0;
}

.blog-pagination li a,
.blog-pagination li span {
    font-family: 'Mulish', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #888;
    padding: 7px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.5px solid #e0ddd8;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    background: #faf9f7;
    min-width: 38px;
}

.blog-pagination li a:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.blog-pagination li.active a,
.blog-pagination li a.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.blog-pagination li.disabled span,
.blog-pagination li.disabled a {
    opacity: 0.35;
    pointer-events: none;
}


/* ─────────────────────────────────────────────
   9. PAGE TITLE (category / archive pages)
───────────────────────────────────────────── */
.page-title {
    background: #f3f1ee;
    border-bottom: 0.5px solid #e0ddd8;
    padding: 28px 0;
}

.page-title h1 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.01em;
}

.page-title .breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 6px;
    padding: 0;
    margin: 0;
    font-family: 'Mulish', sans-serif;
    font-size: 11px;
    color: #aaa;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.page-title .breadcrumbs ol li a {
    color: var(--accent-color);
}

.page-title .breadcrumbs ol li.current {
    color: #aaa;
}

.page-title .breadcrumbs ol li + li::before {
    content: '·';
    padding-right: 6px;
    color: #ccc;
}