/*
Theme Name: Nunky Blog
Theme URI: https://nunkyworld.com/
Author: Nunky
Description: Tema independiente para el blog de Nunky.
Version: 1.1.0
Text Domain: nunky-blog
*/


/* =========================================================
   NUNKY BLOG — BASE
   ========================================================= */

:root {
    --nunky-bg: #050505;
    --nunky-surface: #111111;
    --nunky-surface-soft: #181818;

    --nunky-text: #ffffff;
    --nunky-text-soft: #b8b8b8;

    --nunky-cyan: #62e6f2;
    --nunky-green: #81c995;

    --nunky-border: rgba(255, 255, 255, 0.13);

    --nunky-max-width: 1240px;
    --nunky-article-width: 820px;

    --nunky-radius: 18px;
}


/* =========================================================
   RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--nunky-bg);
    color: var(--nunky-text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;
    line-height: 1.65;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--nunky-cyan);
}


/* =========================================================
   LAYOUT
   ========================================================= */

.blog-container {
    width: min(
        calc(100% - 40px),
        var(--nunky-max-width)
    );

    margin-inline: auto;
}

.blog-container--article {
    max-width: var(--nunky-article-width);
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    width: 100%;

    border-bottom: 1px solid var(--nunky-border);

    background: rgba(5, 5, 5, 0.95);
}

.site-header__inner {
    width: min(
        calc(100% - 40px),
        var(--nunky-max-width)
    );

    min-height: 82px;

    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.site-logo {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.site-navigation {
    display: flex;
    align-items: center;

    gap: 28px;
}

.site-navigation a {
    color: var(--nunky-text);
    font-size: 0.95rem;
}

.site-navigation a:hover {
    color: var(--nunky-cyan);
}


/* =========================================================
   BLOG HERO
   ========================================================= */

.blog-hero {
    padding: 120px 0 80px;
}

.section-kicker {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--nunky-green);

    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.blog-hero h1 {
    max-width: 850px;

    margin: 0 0 24px;

    font-size: clamp(
        3rem,
        8vw,
        6rem
    );

    line-height: 0.95;
    letter-spacing: -0.05em;
}

.blog-hero p {
    max-width: 720px;

    margin: 0;

    color: var(--nunky-text-soft);

    font-size: 1.15rem;
}


/* =========================================================
   BLOG LIST
   ========================================================= */

.blog-list {
    padding: 0 0 120px;
}

.blog-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px;
}


/* =========================================================
   BLOG CARD
   ========================================================= */

.blog-card {
    overflow: hidden;

    border: 1px solid var(--nunky-border);
    border-radius: var(--nunky-radius);

    background: var(--nunky-surface);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);

    border-color: rgba(98, 230, 242, 0.5);
}

.blog-card__image {
    display: block;
    overflow: hidden;

    aspect-ratio: 16 / 9;

    background: var(--nunky-surface-soft);
}

.blog-card__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.blog-card__content {
    padding: 26px;
}

.blog-card__meta {
    margin-bottom: 12px;

    color: var(--nunky-text-soft);

    font-size: 0.85rem;
}

.blog-card__title {
    margin: 0 0 16px;

    font-size: 1.55rem;
    line-height: 1.2;
}

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

.blog-card__excerpt {
    color: var(--nunky-text-soft);
}

.blog-card__excerpt p {
    margin-top: 0;
}

.blog-card__link {
    display: inline-block;

    margin-top: 16px;

    color: var(--nunky-cyan);

    font-weight: 600;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.blog-pagination {
    margin-top: 60px;
}

.blog-pagination .nav-links {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.blog-pagination .page-numbers {
    min-width: 42px;
    min-height: 42px;

    padding: 9px 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--nunky-border);
    border-radius: 999px;
}

.blog-pagination .current {
    background: var(--nunky-text);
    color: var(--nunky-bg);
}


/* =========================================================
   ARTICLE
   ========================================================= */

.article-page {
    padding: 100px 0 120px;
}

.article-header {
    margin-bottom: 50px;
}

.article-meta {
    margin-bottom: 24px;

    color: var(--nunky-text-soft);

    font-size: 0.9rem;
}

.article-meta__separator {
    margin: 0 8px;
}

.article-categories a {
    color: var(--nunky-cyan);
}

.article-title {
    margin: 0 0 26px;

    font-size: clamp(
        2.6rem,
        7vw,
        5rem
    );

    line-height: 1;
    letter-spacing: -0.045em;
}

.article-excerpt {
    color: var(--nunky-text-soft);

    font-size: 1.25rem;
    line-height: 1.6;
}

.article-featured-image {
    margin: 0 0 60px;

    overflow: hidden;

    border-radius: var(--nunky-radius);
}

.article-content {
    font-size: 1.08rem;
}

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

.article-content h2 {
    margin: 2.2em 0 0.7em;

    font-size: 2.1rem;
    line-height: 1.15;
}

.article-content h3 {
    margin: 2em 0 0.7em;

    font-size: 1.55rem;
}

.article-content a {
    color: var(--nunky-cyan);

    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content ul,
.article-content ol {
    padding-left: 24px;
}

.article-content blockquote {
    margin: 40px 0;

    padding: 10px 0 10px 28px;

    border-left: 3px solid var(--nunky-cyan);

    color: var(--nunky-text-soft);

    font-size: 1.2rem;
}

.article-content img {
    margin: 40px auto;

    border-radius: 12px;
}


/* =========================================================
   ARTICLE FOOTER
   ========================================================= */

.article-footer {
    margin-top: 70px;

    padding-top: 30px;

    border-top: 1px solid var(--nunky-border);
}

.article-tags {
    margin-bottom: 28px;
}

.article-tags a {
    display: inline-block;

    margin: 4px 6px 4px 0;

    padding: 7px 14px;

    border: 1px solid var(--nunky-border);
    border-radius: 999px;

    font-size: 0.85rem;
}

.article-back {
    color: var(--nunky-cyan);

    font-weight: 600;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.blog-empty {
    padding: 80px 0;
}

.blog-empty h2 {
    margin-top: 0;

    font-size: 2rem;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    border-top: 1px solid var(--nunky-border);

    background: var(--nunky-surface);
}

.site-footer__inner {
    width: min(
        calc(100% - 40px),
        var(--nunky-max-width)
    );

    margin-inline: auto;

    padding: 60px 0;

    display: flex;
    justify-content: space-between;

    gap: 40px;
}

.site-footer__brand p {
    margin: 8px 0 0;

    color: var(--nunky-text-soft);
}

.site-footer__links {
    display: flex;
    align-items: flex-start;

    gap: 24px;
}


/* =========================================================
   WORDPRESS
   ========================================================= */

.alignwide {
    width: min(
        1100px,
        100%
    );

    max-width: none;

    margin-left: 50%;
    transform: translateX(-50%);
}

.alignfull {
    width: 100vw;
    max-width: none;

    margin-left: calc(50% - 50vw);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 960px) {

    .blog-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 720px) {

    .site-header__inner {
        min-height: auto;

        padding: 20px 0;

        flex-direction: column;
        align-items: flex-start;
    }

    .site-navigation {
        width: 100%;

        overflow-x: auto;

        gap: 20px;

        padding-bottom: 5px;
    }

    .site-navigation a {
        white-space: nowrap;
    }


    .blog-hero {
        padding: 80px 0 60px;
    }


    .blog-grid {
        grid-template-columns: 1fr;
    }


    .article-page {
        padding-top: 70px;
    }


    .site-footer__inner {
        flex-direction: column;
    }

    .site-footer__links {
        flex-direction: column;

        gap: 12px;
    }

}

/* =========================================================
   NUNKY BLOG — SINGLE ARTICLE
   ========================================================= */

.nunky-single {
    background: #ffffff;
    color: #172033;
}


/* HERO */

.nunky-single-hero {
    background: #f5f8fb;
    padding: 170px 0 80px;
}

.nunky-single-hero-inner {
    width: min(100%, 1050px);
    margin: 0 auto;
}

.nunky-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 28px;

    color: #667085;

    font-size: 0.92rem;
}

.nunky-single-category {
    color: #007f8e;

    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nunky-single-title {
    max-width: 1050px;

    margin: 0;

    color: #111827;

    font-family: "Poppins", sans-serif;
    font-size: clamp(3rem, 6vw, 5.6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
}

.nunky-single-lead {
    max-width: 780px;

    margin-top: 32px;

    color: #475467;

    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.65;
}

.nunky-single-lead p {
    margin: 0;
}


/* IMAGEN DESTACADA */

.nunky-single-featured {
    background: #f5f8fb;
    padding: 0 0 80px;
}

.nunky-single-featured-inner {
    width: min(100%, 1180px);
    margin: 0 auto;

    overflow: hidden;

    border-radius: 22px;
}

.nunky-single-featured-inner img {
    display: block;

    width: 100%;
    height: auto;
}


/* CUERPO */

.nunky-single-body {
    background: #ffffff;

    padding: 100px 24px;
}

.nunky-single-reading {
    width: min(100%, 760px);

    margin: 0 auto;

    color: #344054;

    font-family: "Inter", sans-serif;
    font-size: 1.1rem;
    line-height: 1.85;
}

.nunky-single-reading > *:first-child {
    margin-top: 0;
}

.nunky-single-reading p {
    margin: 0 0 1.65em;
}

.nunky-single-reading h2 {
    margin: 2.2em 0 0.65em;

    color: #101828;

    font-family: "Poppins", sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.18;
    letter-spacing: -0.035em;
}

.nunky-single-reading h3 {
    margin: 2em 0 0.65em;

    color: #101828;

    font-family: "Poppins", sans-serif;
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    line-height: 1.25;
}

.nunky-single-reading strong {
    color: #101828;
}

.nunky-single-reading a {
    color: #007f8e;

    text-decoration: underline;
    text-underline-offset: 4px;
}

.nunky-single-reading ul,
.nunky-single-reading ol {
    margin: 1.5em 0;

    padding-left: 1.5em;
}

.nunky-single-reading li {
    margin-bottom: 0.7em;
}


/* IMÁGENES DEL CONTENIDO */

.nunky-single-reading figure,
.nunky-single-reading .wp-block-image {
    margin: 56px 0;
}

.nunky-single-reading img {
    display: block;

    max-width: 100%;
    height: auto;

    margin-inline: auto;

    border-radius: 18px;
}

.nunky-single-reading figcaption {
    margin-top: 12px;

    color: #667085;

    font-size: 0.85rem;
    text-align: center;
}


/* CITAS */

.nunky-single-reading blockquote {
    margin: 56px 0;

    padding: 8px 0 8px 30px;

    border-left: 4px solid #00a7b7;

    color: #344054;

    font-size: 1.3rem;
    line-height: 1.65;
}


/* FINAL */

.nunky-single-end {
    background: #f5f8fb;

    padding: 72px 24px 100px;
}

.nunky-single-end-inner {
    width: min(100%, 760px);

    margin: 0 auto;
}

.nunky-single-tags {
    margin-bottom: 48px;
}

.nunky-single-tags-title {
    display: block;

    margin-bottom: 15px;

    color: #667085;

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.nunky-single-tags-list {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}

.nunky-single-tags-list a {
    padding: 8px 14px;

    border: 1px solid #d0d5dd;
    border-radius: 999px;

    background: #ffffff;

    color: #344054;
}

.nunky-single-back {
    color: #007f8e;

    font-weight: 600;
}


/* RESPONSIVE */

@media (max-width: 768px) {

    .nunky-single-hero {
        padding: 125px 0 55px;
    }

    .nunky-single-title {
        font-size: clamp(2.6rem, 12vw, 4rem);
    }

    .nunky-single-featured {
        padding-bottom: 55px;
    }

    .nunky-single-featured-inner {
        border-radius: 14px;
    }

    .nunky-single-body {
        padding: 65px 22px;
    }

    .nunky-single-reading {
        font-size: 1.03rem;
    }

    .nunky-single-end {
        padding: 55px 22px 75px;
    }

}

/* Comentarios del blog Nunky */
.nunky-single-comments {
  margin: 48px 0;
}

.nunky-comments {
  color: #253044;
}

.nunky-comments-title,
.nunky-comments .comment-reply-title {
  margin: 0 0 24px;
  color: #172033;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
}

.nunky-comments-list {
  margin: 0 0 48px;
  padding: 0;
  list-style: none;
}

.nunky-comments-list .comment {
  margin: 0 0 20px;
  padding: 24px;
  border: 1px solid #dce5ee;
  border-radius: 16px;
  background: #fff;
}

.nunky-comments-list .comment-body {
  font-size: 1rem;
  line-height: 1.6;
}

.nunky-comments-list .comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-weight: 700;
}

.nunky-comments-list .comment-author .avatar {
  display: block;
  flex: 0 0 44px;
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  object-fit: cover;
  border-radius: 50%;
}

.nunky-comments-list .comment-meta {
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.nunky-comments-list .comment-meta a {
  color: #64748b;
}

.nunky-comments-list .comment-content p {
  margin: 0 0 12px;
}

.nunky-comments-list .children {
  margin: 20px 0 0 24px;
  padding: 0;
  list-style: none;
}

.nunky-comments .comment-notes {
  margin-bottom: 24px;
  color: #64748b;
  font-size: 0.95rem;
}

.nunky-comments .comment-form p {
  margin-bottom: 20px;
}

.nunky-comments .comment-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.nunky-comments .comment-form textarea,
.nunky-comments .comment-form input[type="text"],
.nunky-comments .comment-form input[type="email"],
.nunky-comments .comment-form input[type="url"] {
  box-sizing: border-box;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #172033;
  font: inherit;
}

.nunky-comments .comment-form textarea:focus,
.nunky-comments .comment-form input:focus {
  outline: 2px solid #00b8d4;
  outline-offset: 2px;
}

.nunky-comments .comment-form-cookies-consent label {
  display: inline;
  margin-left: 6px;
  font-weight: 400;
}

.nunky-comments .nunky-comments-submit {
  padding: 14px 24px;
  border: 0;
  border-radius: 10px;
  background: #007d91;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nunky-comments .nunky-comments-submit:hover {
  background: #005f70;
}

@media (max-width: 600px) {
  .nunky-comments-list .comment {
    padding: 18px;
  }

  .nunky-comments-list .children {
    margin-left: 12px;
  }
}
