/* ------------------------------------------------------------------
 |  NOVA — SEO, blog, sharing and editorial dashboard
 * ----------------------------------------------------------------- */

/* Language switcher */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
}
.lang-switch a {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 25px;
    padding: 0 7px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--muted-2);
    transition: 0.18s ease;
}
.lang-switch a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.lang-switch a.is-active { color: #fff; background: rgba(255, 255, 255, 0.1); }
.lang-switch--mobile { margin: 12px 0 0; width: 100%; justify-content: center; }
.lang-switch--mobile a { min-width: 64px; height: 32px; font-size: 12px; }
.lang-switch--footer a { color: var(--muted); }

/* Share block */
.share-block {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
}
.share-block__head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted-2);
}
.share-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-soft);
    cursor: pointer;
    transition: 0.18s ease;
}
.share-btn:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.share-btn--facebook:hover { border-color: rgba(96, 165, 250, 0.5); color: #bfdbfe; }
.share-btn--x:hover { border-color: rgba(255, 255, 255, 0.3); }
.share-btn--pinterest:hover { border-color: rgba(244, 114, 182, 0.5); color: #fbcfe8; }
.share-btn--whatsapp:hover { border-color: rgba(52, 211, 153, 0.45); color: #a7f3d0; }
.share-btn--copy.is-copied { border-color: rgba(52, 211, 153, 0.45); color: #6ee7b7; }

/* ------------------------------------------------------------------
 |  Public blog
 * ----------------------------------------------------------------- */

.blog-head__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.blog-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 5px 4px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(10, 10, 16, 0.55);
}
.blog-search svg { color: var(--muted-2); flex: 0 0 auto; }
.blog-search input {
    width: 190px;
    height: 30px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 12.5px;
    outline: none;
}
.blog-search input::placeholder { color: var(--muted-2); }
.rss-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 36px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted);
}
.rss-link:hover { color: #fcd34d; border-color: rgba(251, 191, 36, 0.35); }

.blog-body { padding-top: 22px; padding-bottom: 56px; }
.blog-categories {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border);
}
.blog-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted);
    transition: 0.18s ease;
}
.blog-chip:hover { color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.blog-chip.is-active,
.blog-chip--active {
    color: #fff;
    border-color: rgba(255, 61, 90, 0.4);
    background: rgba(255, 61, 90, 0.14);
}
.blog-filter-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    font-size: 12.5px;
    color: var(--muted);
}
.blog-filter-note span { display: inline-flex; align-items: center; gap: 6px; }
.blog-filter-note a { color: #fda4af; font-weight: 600; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.025);
    transition: 0.2s ease;
}
.blog-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
}
.blog-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0c0c13; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-card__media img { transform: scale(1.03); }
.blog-card__category {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(8, 8, 12, 0.82);
    backdrop-filter: blur(8px);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fecdd3;
}
.blog-card__body { display: flex; flex-direction: column; gap: 9px; padding: 15px 16px 17px; }
.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 10.5px;
    color: var(--muted-2);
}
.blog-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.blog-card__title { margin: 0; font-size: 1rem; line-height: 1.35; }
.blog-card__title a { color: var(--text); }
.blog-card__title a:hover { color: #fecdd3; }
.blog-card__excerpt { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.blog-card__more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 4px;
    font-size: 11.5px;
    font-weight: 700;
    color: #fda4af;
}
.blog-empty { display: grid; place-items: center; gap: 8px; padding: 54px 24px; text-align: center; }
.blog-empty > svg { color: var(--muted-2); }
.blog-empty h2 { margin: 0; font-size: 1.3rem; }
.blog-empty p { margin: 0 0 8px; font-size: 13px; color: var(--muted); }

.pagination__step,
.pagination__pages a {
    display: inline-grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    transition: 0.18s ease;
}
.pagination__step { display: inline-flex; gap: 5px; }
.pagination__step:hover,
.pagination__pages a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.pagination__pages { display: flex; gap: 5px; flex-wrap: wrap; }
.pagination__pages a.is-active { background: var(--gradient); border-color: transparent; color: #fff; }
.pagination__step.is-disabled { opacity: 0.35; pointer-events: none; }

/* Article */
.blog-post__hero { position: relative; padding: 0 0 6px; }
.blog-post__cover {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}
.blog-post__cover img {
    width: 100%;
    aspect-ratio: 16 / 8.4;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.blog-post__cover::after {
    content: "";
    position: absolute;
    inset: 0 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, transparent 55%, rgba(7, 7, 11, 0.55));
    pointer-events: none;
}
.blog-post__intro { max-width: 860px; padding-top: 22px; }
.blog-post__intro h1 { margin: 12px 0 10px; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.12; }
.blog-post__standfirst { margin: 0 0 14px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.blog-post__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    font-size: 11.5px;
    color: var(--muted-2);
}
.blog-post__meta span { display: inline-flex; align-items: center; gap: 5px; }
.blog-post__updated { color: #d8b4fe; }

.blog-post__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 34px;
    align-items: start;
    padding-top: 24px;
    padding-bottom: 46px;
}
.blog-post__content { min-width: 0; }
.blog-prose { font-size: 15px; line-height: 1.78; color: var(--text-soft); }
.blog-prose > *:first-child { margin-top: 0; }
.blog-prose h2, .blog-prose h3, .blog-prose h4 { color: #fff; line-height: 1.28; margin: 1.7em 0 0.6em; }
.blog-prose h2 { font-size: 1.5rem; }
.blog-prose h3 { font-size: 1.2rem; }
.blog-prose p { margin: 0 0 1.15em; }
.blog-prose a { color: #fda4af; text-decoration: underline; text-decoration-color: rgba(253, 164, 175, 0.35); text-underline-offset: 2px; }
.blog-prose a:hover { text-decoration-color: currentColor; }
.blog-prose ul, .blog-prose ol { margin: 0 0 1.2em; padding-left: 1.35em; }
.blog-prose li { margin-bottom: 0.45em; }
.blog-prose blockquote {
    margin: 1.4em 0;
    padding: 12px 18px;
    border-left: 3px solid rgba(255, 61, 90, 0.55);
    border-radius: 0 10px 10px 0;
    background: rgba(255, 61, 90, 0.06);
    color: #fecdd3;
    font-style: italic;
}
.blog-prose img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); }
.blog-prose figure { margin: 1.5em 0; }
.blog-prose figcaption { margin-top: 7px; font-size: 11.5px; color: var(--muted-2); text-align: center; }
.blog-prose code { padding: 1px 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.07); font-size: 0.9em; }
.blog-prose pre { overflow-x: auto; padding: 14px 16px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); }
.blog-prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.blog-prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 13px; }
.blog-prose th, .blog-prose td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; }

.blog-tags {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 11.5px;
    color: var(--muted-2);
}
.blog-tags > span:first-child { display: inline-flex; align-items: center; gap: 5px; margin-right: 3px; }
.blog-tag {
    padding: 3px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
}
.blog-post__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.link-muted { font-size: 12.5px; color: var(--muted); }
.link-muted:hover { color: #fff; }

.blog-post__aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }
.blog-about h2 { margin: 2px 0 8px; font-size: 1.1rem; }
.blog-about p { margin: 0 0 12px; font-size: 12.5px; line-height: 1.65; color: var(--muted); }
.blog-cat-list { display: flex; flex-direction: column; gap: 2px; }
.blog-cat-list h2 { margin: 0 0 8px; font-size: 0.95rem; }
.blog-cat-list a {
    padding: 7px 9px;
    border-radius: 7px;
    font-size: 12.5px;
    color: var(--muted);
}
.blog-cat-list a:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.blog-cat-list a.is-active { background: rgba(255, 61, 90, 0.12); color: #fecdd3; }

.blog-related { padding-bottom: 56px; }

/* ------------------------------------------------------------------
 |  Admin — SEO dashboard
 * ----------------------------------------------------------------- */

.audit-meter { margin-bottom: 14px; }
.audit-meter__bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.audit-meter__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff3d5a, #fb7185);
}
.audit-meter__legend {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 10.5px;
    color: var(--muted-2);
}
.is-number { text-align: right; white-space: nowrap; }
.audit-url { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--muted); }
.audit-excerpt { max-width: 340px; font-size: 11.5px; color: var(--muted); }
.audit-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.audit-links a { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: #fda4af; }
.audit-subtitle { margin: 16px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); }
.audit-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 9px; }
.audit-category {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    transition: 0.18s ease;
}
.audit-category:hover { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.045); }
.audit-category strong { font-size: 12.5px; color: var(--text); }
.audit-category span { font-size: 11px; line-height: 1.5; color: var(--muted-2); }
.stat-card strong.is-small { font-size: 1.05rem; }
.table-scroll { width: 100%; overflow-x: auto; }
.is-inline { display: inline-flex; }
.admin-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 20px 16px;
}
.field--inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}
.field--inline svg { color: var(--muted-2); }
.field--inline input,
.field--inline select {
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 12px;
    outline: none;
}
.field--inline input { width: 190px; }
.blog-admin-title { display: flex; flex-direction: column; gap: 2px; }
.blog-admin-title strong { font-size: 12.5px; color: var(--text); }
.blog-admin-title code { font-size: 10px; color: var(--muted-2); }

.suggestion-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 11px; }
.suggestion-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 14px 15px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
}
.suggestion-card__head { display: flex; align-items: center; justify-content: space-between; }
.suggestion-card__link { color: var(--muted-2); }
.suggestion-card__link:hover { color: #fff; }
.suggestion-card strong { font-size: 12.5px; line-height: 1.45; }
.suggestion-card p { margin: 0; font-size: 11px; line-height: 1.55; color: var(--muted-2); }
.suggestion-card__actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 5px; }

/* Blog editor */
.blog-editor__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}
.blog-editor__main,
.blog-editor__aside { display: flex; flex-direction: column; gap: 16px; }
.blog-editor__body {
    min-height: 420px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.65;
}
.blog-editor__cover-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 9px;
    border: 1px solid var(--border);
    margin-top: 4px;
}
.serp-preview {
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}
.serp-preview__url { display: block; font-size: 11px; color: #93c5fd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-preview__title { display: block; margin-top: 3px; font-size: 16px; font-weight: 500; color: #93c5fd; line-height: 1.35; }
.serp-preview__desc { margin: 4px 0 0; font-size: 12px; line-height: 1.55; color: var(--muted); }
.serp-counters { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 9px; font-size: 10.5px; color: var(--muted-2); }
.serp-counters strong { color: var(--text-soft); }
.serp-counters .is-over { color: #fda4af; }

.panel-subhead {
    margin: 22px 0 11px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted-2);
}
.admin-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ------------------------------------------------------------------
 |  Responsive
 * ----------------------------------------------------------------- */

@media (max-width: 1024px) {
    .blog-post__layout { grid-template-columns: minmax(0, 1fr); }
    .blog-post__aside { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .blog-editor__layout { grid-template-columns: minmax(0, 1fr); }
    .admin-grid--3,
    .form-grid--3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
    .blog-search input { width: 130px; }
    .blog-grid { grid-template-columns: minmax(0, 1fr); }
    .blog-post__cover { padding: 0 16px; }
    .blog-post__cover::after { inset: 0 16px; }
    .blog-post__intro h1 { font-size: 1.8rem; }
    .blog-post__aside { grid-template-columns: minmax(0, 1fr); }
    .blog-filter-note { flex-direction: column; align-items: flex-start; }
    .audit-categories { grid-template-columns: minmax(0, 1fr); }
    .admin-filters { padding: 0 14px 14px; }
    .field--inline input { width: 100%; }
    .field--inline { flex: 1 1 100%; }
    .serp-counters { flex-direction: column; gap: 5px; }
}
