/*
Theme Name: Mundo Arneses
Theme URI: https://mundoarneses.com/
Author: Mundo Arneses
Author URI: https://mundoarneses.com/
Description: Tema oscuro y elegante para blog de lifestyle y moda alternativa, con acentos en morado y azul, diseño moderno con gradientes y efectos glassmorphism. Diseño original generado en Figma.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mundo-arneses
Tags: blog, one-column, custom-menu, featured-images, translation-ready, threaded-comments, dark-mode, custom-colors
*/

/* =========================================================
   VARIABLES Y RESET
   ========================================================= */
:root {
    --ma-bg: #000000;
    --ma-bg-2: #0b0b12;
    --ma-bg-3: #111827; /* gray-900 */
    --ma-text: #ffffff;
    --ma-text-muted: #9ca3af;     /* gray-400 */
    --ma-text-muted-2: #6b7280;   /* gray-500 */
    --ma-text-muted-3: #d1d5db;   /* gray-300 */
    --ma-border: rgba(255, 255, 255, 0.1);
    --ma-border-strong: rgba(255, 255, 255, 0.3);
    --ma-surface: rgba(255, 255, 255, 0.05);
    --ma-surface-hover: rgba(255, 255, 255, 0.1);
    --ma-purple: #a855f7;         /* purple-500 */
    --ma-purple-light: #c084fc;   /* purple-400 */
    --ma-purple-dark: #7e22ce;    /* purple-700 */
    --ma-purple-600: #9333ea;
    --ma-blue: #3b82f6;
    --ma-blue-light: #60a5fa;     /* blue-400 */
    --ma-blue-600: #2563eb;
    --ma-pink-600: #db2777;
    --ma-radius-sm: 0.5rem;
    --ma-radius-md: 0.75rem;
    --ma-radius-lg: 1rem;
    --ma-radius-xl: 1.5rem;
    --ma-radius-2xl: 2rem;
    --ma-max-width: 80rem; /* ~1280px */
    --ma-header-height: 4rem;
    --ma-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --ma-transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--ma-font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ma-text);
    background-color: var(--ma-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--ma-header-height);
}

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

a {
    color: var(--ma-text-muted-3);
    text-decoration: none;
    transition: var(--ma-transition);
}

a:hover,
a:focus {
    color: var(--ma-text);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ma-text);
}

p {
    margin: 0 0 1rem;
}

ul, ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.ma-container {
    max-width: var(--ma-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .ma-container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .ma-container { padding: 0 2rem; }
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* =========================================================
   HEADER
   ========================================================= */
.ma-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ma-border);
}

.ma-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--ma-header-height);
}

.ma-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ma-text);
    font-weight: 600;
    font-size: 1.25rem;
}

.ma-logo:hover {
    color: var(--ma-text);
}

.ma-logo__mark {
    width: 2rem;
    height: 2rem;
    background: var(--ma-text);
    color: #000;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.ma-logo__mark img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0.375rem;
}

.ma-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .ma-nav { display: flex; }
}

.ma-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.ma-nav a {
    color: var(--ma-text-muted-3);
    font-size: 0.95rem;
}

.ma-nav a:hover,
.ma-nav .current-menu-item > a,
.ma-nav .current_page_item > a {
    color: var(--ma-text);
}

.ma-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--ma-text);
    border-radius: 0.375rem;
    background: transparent;
}

.ma-menu-toggle:hover {
    background: var(--ma-surface);
}

@media (min-width: 768px) {
    .ma-menu-toggle { display: none; }
}

.ma-menu-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Mobile nav overlay */
.ma-nav--mobile {
    display: none;
    position: fixed;
    top: var(--ma-header-height);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ma-border);
    padding: 1.5rem 1rem;
    z-index: 49;
}

.ma-nav--mobile.is-open {
    display: block;
}

.ma-nav--mobile ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ma-nav--mobile a {
    color: var(--ma-text-muted-3);
    font-size: 1.125rem;
    display: block;
    padding: 0.5rem 0;
}

/* =========================================================
   HERO
   ========================================================= */
.ma-hero {
    position: relative;
    min-height: calc(100vh - var(--ma-header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ma-bg);
    color: var(--ma-text);
    overflow: hidden;
}

.ma-hero__blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.ma-hero__blob {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 9999px;
    filter: blur(60px);
    opacity: 0.2;
}

.ma-hero__blob--purple {
    top: 5rem;
    right: 5rem;
    background: var(--ma-purple-600);
}

.ma-hero__blob--blue {
    bottom: 5rem;
    left: 5rem;
    background: var(--ma-blue-600);
}

.ma-hero__inner {
    position: relative;
    padding: 5rem 0;
}

.ma-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .ma-hero__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.ma-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--ma-surface-hover);
    border-radius: 9999px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--ma-text);
}

.ma-hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .ma-hero h1 {
        font-size: 4.5rem;
    }
}

.ma-gradient-text {
    background: linear-gradient(to right, var(--ma-purple-light), var(--ma-blue-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.ma-hero__subtitle {
    font-size: 1.25rem;
    color: var(--ma-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.ma-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.ma-hero__visual {
    position: relative;
}

.ma-hero__visual-inner {
    aspect-ratio: 1 / 1;
    border-radius: var(--ma-radius-xl);
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(37, 99, 235, 0.2));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--ma-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ma-hero__visual-inner svg {
    width: 12rem;
    height: 12rem;
    color: rgba(255, 255, 255, 0.4);
}

.ma-hero__visual-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--ma-radius-xl);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.ma-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: var(--ma-radius-md);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--ma-transition);
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
}

.ma-btn--primary {
    background: var(--ma-text);
    color: #000;
}

.ma-btn--primary:hover {
    background: #e5e7eb;
    color: #000;
}

.ma-btn--ghost {
    background: var(--ma-surface-hover);
    color: var(--ma-text);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ma-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--ma-text);
}

.ma-btn--purple {
    background: var(--ma-purple-600);
    color: #fff;
}

.ma-btn--purple:hover {
    background: var(--ma-purple-dark);
    color: #fff;
}

.ma-btn--outline {
    background: var(--ma-surface);
    color: var(--ma-text);
    border-color: var(--ma-border);
}

.ma-btn--outline:hover {
    background: var(--ma-surface-hover);
    color: var(--ma-text);
}

/* =========================================================
   SECTION HEADERS
   ========================================================= */
.ma-section {
    padding: 5rem 0;
}

.ma-section--black {
    background: var(--ma-bg);
    color: var(--ma-text);
}

.ma-section--gradient {
    background: linear-gradient(to bottom, var(--ma-bg), var(--ma-bg-3));
    color: var(--ma-text);
}

.ma-section--gray {
    background: var(--ma-bg-3);
    color: var(--ma-text);
}

.ma-section__header {
    margin-bottom: 3rem;
}

.ma-section__header--center {
    text-align: center;
}

.ma-section h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .ma-section h2 {
        font-size: 3rem;
    }
}

.ma-section__subtitle {
    color: var(--ma-text-muted);
    font-size: 1.125rem;
}

/* =========================================================
   BLOG GRID / POSTS
   ========================================================= */
.ma-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .ma-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ma-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ma-post-card {
    background: var(--ma-surface);
    border-radius: var(--ma-radius-xl);
    overflow: hidden;
    border: 1px solid var(--ma-border);
    transition: var(--ma-transition);
    display: flex;
    flex-direction: column;
}

.ma-post-card:hover {
    border-color: var(--ma-border-strong);
    transform: scale(1.03);
}

.ma-post-card__thumb {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(37, 99, 235, 0.2));
    position: relative;
    overflow: hidden;
}

.ma-post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ma-post-card:hover .ma-post-card__thumb img {
    transform: scale(1.05);
}

.ma-post-card__thumb-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ma-post-card__thumb-placeholder svg {
    width: 4rem;
    height: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.ma-post-card__category-pill {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    font-size: 0.875rem;
    border-radius: 9999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-decoration: none;
}

.ma-post-card__category-pill:hover {
    background: #fff;
    color: #000;
}

.ma-post-card__body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ma-post-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--ma-text);
    transition: var(--ma-transition);
}

.ma-post-card__title a {
    color: inherit;
    text-decoration: none;
}

.ma-post-card:hover .ma-post-card__title,
.ma-post-card:hover .ma-post-card__title a {
    color: var(--ma-purple-light);
}

.ma-post-card__excerpt {
    color: var(--ma-text-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.ma-post-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--ma-text-muted-2);
}

.ma-posts-more {
    margin-top: 3rem;
    text-align: center;
}

/* =========================================================
   CATEGORIES SECTION
   ========================================================= */
.ma-categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .ma-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ma-categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ma-category-card {
    padding: 2rem;
    background: var(--ma-surface);
    border-radius: var(--ma-radius-xl);
    border: 1px solid var(--ma-border);
    transition: var(--ma-transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.ma-category-card:hover {
    border-color: var(--ma-border-strong);
    background: var(--ma-surface-hover);
    color: inherit;
}

.ma-category-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.ma-category-card__name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--ma-text);
    transition: var(--ma-transition);
}

.ma-category-card:hover .ma-category-card__name {
    color: var(--ma-purple-light);
}

.ma-category-card__count {
    color: var(--ma-text-muted);
    margin: 0;
}

/* =========================================================
   NEWSLETTER
   ========================================================= */
.ma-newsletter {
    background: var(--ma-bg-3);
    padding: 5rem 0;
}

.ma-newsletter__inner {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.ma-newsletter__card {
    background: linear-gradient(to right, rgba(147, 51, 234, 0.2), rgba(37, 99, 235, 0.2));
    border-radius: var(--ma-radius-2xl);
    padding: 3rem 1.5rem;
    border: 1px solid var(--ma-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
}

@media (min-width: 768px) {
    .ma-newsletter__card {
        padding: 3rem;
    }
}

.ma-newsletter__card h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .ma-newsletter__card h2 {
        font-size: 3rem;
    }
}

.ma-newsletter__text {
    color: var(--ma-text-muted-3);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.ma-newsletter__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 28rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .ma-newsletter__form {
        flex-direction: row;
    }
}

.ma-newsletter__input {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: var(--ma-surface-hover);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--ma-radius-md);
    color: var(--ma-text);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--ma-transition);
}

.ma-newsletter__input::placeholder {
    color: var(--ma-text-muted);
}

.ma-newsletter__input:focus {
    outline: none;
    border-color: var(--ma-purple-light);
}

.ma-newsletter__notice {
    color: var(--ma-text-muted-2);
    font-size: 0.875rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

.ma-newsletter__feedback {
    margin-top: 1rem;
    min-height: 1.5rem;
    font-size: 0.95rem;
    text-align: center;
}

.ma-newsletter__feedback:empty {
    display: none;
}

/* =========================================================
   FOOTER
   ========================================================= */
.ma-footer {
    background: var(--ma-bg);
    color: var(--ma-text);
    border-top: 1px solid var(--ma-border);
    padding: 3rem 0;
}

.ma-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .ma-footer__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ma-footer__brand-text {
    color: var(--ma-text-muted);
    margin-top: 1rem;
}

.ma-footer h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--ma-text);
    font-weight: 600;
}

.ma-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ma-footer a {
    color: var(--ma-text-muted);
}

.ma-footer a:hover {
    color: var(--ma-text);
}

.ma-footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--ma-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: var(--ma-text-muted);
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .ma-footer__bottom {
        flex-direction: row;
    }
}

.ma-footer__bottom-links {
    display: flex;
    gap: 1.5rem;
}

.ma-footer__credit {
    display: block;
    margin-top: 0.5rem;
    color: var(--ma-text-muted-2);
    font-size: 0.8125rem;
}

.ma-footer__credit a {
    color: var(--ma-purple-light);
    text-decoration: none;
    transition: var(--ma-transition);
}

.ma-footer__credit a:hover {
    color: #e9d5ff;
    text-decoration: underline;
}

/* =========================================================
   SINGLE POST / ARTICLE
   ========================================================= */
.ma-article-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.4), rgba(30, 58, 138, 0.4));
    overflow: hidden;
}

.ma-article-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.ma-article-hero__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ma-article-hero__placeholder svg {
    width: 8rem;
    height: 8rem;
    color: rgba(255, 255, 255, 0.2);
}

.ma-article-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #000, rgba(0, 0, 0, 0.5), transparent);
}

.ma-article {
    position: relative;
    margin-top: -8rem;
    z-index: 10;
}

.ma-article__container {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .ma-article__container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .ma-article__container { padding: 0 2rem; }
}

.ma-article__header,
.ma-article__body,
.ma-article__author-box,
.ma-article__comments {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--ma-radius-2xl);
    padding: 2rem 1.5rem;
    border: 1px solid var(--ma-border);
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .ma-article__header,
    .ma-article__body,
    .ma-article__author-box,
    .ma-article__comments {
        padding: 3rem;
    }
}

.ma-article__body {
    background: rgba(0, 0, 0, 0.6);
}

.ma-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--ma-text-muted);
}

.ma-article__category {
    padding: 0.5rem 1rem;
    background: rgba(147, 51, 234, 0.2);
    color: #d8b4fe;
    border-radius: 9999px;
    font-size: 0.875rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
    text-decoration: none;
}

.ma-article__category:hover {
    color: #e9d5ff;
}

.ma-article__title {
    font-size: 2.25rem;
    line-height: 1.1;
    color: var(--ma-text);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .ma-article__title {
        font-size: 3.75rem;
    }
}

.ma-article__author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--ma-border);
}

.ma-article__avatar {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--ma-purple-600), var(--ma-blue-600));
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

.ma-article__avatar img {
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    object-fit: cover;
}

.ma-article__author-name {
    color: var(--ma-text);
    margin: 0;
}

.ma-article__author-bio {
    color: var(--ma-text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.ma-article__share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.ma-article__share-label {
    color: var(--ma-text-muted);
    font-size: 0.875rem;
}

.ma-article__share-btn {
    padding: 0.5rem;
    background: var(--ma-surface);
    border-radius: var(--ma-radius-sm);
    transition: var(--ma-transition);
    color: var(--ma-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ma-article__share-btn:hover {
    background: var(--ma-surface-hover);
    color: var(--ma-text);
}

.ma-article__share-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Article body content */
.ma-article__body p,
.ma-article__body li {
    color: var(--ma-text-muted-3);
    font-size: 1.125rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.ma-article__body h2 {
    font-size: 1.875rem;
    color: var(--ma-text);
    margin: 3rem 0 1.5rem;
    font-weight: 700;
}

.ma-article__body h3 {
    font-size: 1.5rem;
    color: var(--ma-text);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.ma-article__body h4 {
    font-size: 1.25rem;
    color: var(--ma-text);
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
}

.ma-article__body a {
    color: var(--ma-purple-light);
    text-decoration: underline;
}

.ma-article__body a:hover {
    color: #e9d5ff;
}

.ma-article__body blockquote {
    background: rgba(88, 28, 135, 0.2);
    border-left: 4px solid var(--ma-purple);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--ma-radius-md) var(--ma-radius-md) 0;
    font-style: italic;
    color: #e9d5ff;
}

.ma-article__body blockquote p {
    margin-bottom: 0;
    color: #e9d5ff;
}

.ma-article__body img {
    border-radius: var(--ma-radius-md);
    margin: 1.5rem 0;
}

.ma-article__body pre,
.ma-article__body code {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--ma-radius-sm);
    padding: 0.125rem 0.375rem;
    font-size: 0.9em;
    color: #e9d5ff;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.ma-article__body pre {
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.ma-article__body pre code {
    padding: 0;
    background: transparent;
}

.ma-article__body ul,
.ma-article__body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.ma-article__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.ma-article__body th,
.ma-article__body td {
    padding: 0.75rem;
    border: 1px solid var(--ma-border);
    text-align: left;
    color: var(--ma-text-muted-3);
}

.ma-article__body th {
    background: var(--ma-surface);
    color: var(--ma-text);
}

/* Tags */
.ma-article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ma-border);
}

.ma-tag {
    padding: 0.5rem 1rem;
    background: var(--ma-surface);
    border-radius: 9999px;
    color: var(--ma-text-muted-3);
    font-size: 0.875rem;
    transition: var(--ma-transition);
    text-decoration: none;
}

.ma-tag:hover {
    background: var(--ma-surface-hover);
    color: var(--ma-text);
}

/* Author box */
.ma-article__author-box {
    background: linear-gradient(to right, rgba(88, 28, 135, 0.2), rgba(30, 58, 138, 0.2));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ma-article__author-box-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .ma-article__author-box-inner {
        flex-direction: row;
    }
}

.ma-article__author-box-avatar {
    width: 6rem;
    height: 6rem;
    background: linear-gradient(135deg, var(--ma-purple-600), var(--ma-blue-600));
    border-radius: var(--ma-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.ma-article__author-box-avatar img {
    width: 100%;
    height: 100%;
    border-radius: var(--ma-radius-xl);
    object-fit: cover;
}

.ma-article__author-box-content {
    flex: 1;
}

.ma-article__author-box-content h3 {
    font-size: 1.5rem;
    color: var(--ma-text);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.ma-article__author-box-content p {
    color: var(--ma-text-muted-3);
    margin-bottom: 1rem;
}

.ma-article__author-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.ma-article__author-links a {
    color: var(--ma-purple-light);
}

.ma-article__author-links a:hover {
    color: #e9d5ff;
}

/* Related posts */
.ma-related {
    margin-bottom: 3rem;
}

.ma-related__title {
    font-size: 1.875rem;
    color: var(--ma-text);
    margin-bottom: 2rem;
    font-weight: 700;
}

.ma-related__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .ma-related__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Post navigation */
.ma-post-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

@media (min-width: 640px) {
    .ma-post-nav {
        grid-template-columns: 1fr 1fr;
    }
}

.ma-post-nav__link {
    padding: 1.5rem;
    background: var(--ma-surface);
    border-radius: var(--ma-radius-md);
    border: 1px solid var(--ma-border);
    transition: var(--ma-transition);
    text-decoration: none;
    color: var(--ma-text-muted-3);
}

.ma-post-nav__link:hover {
    background: var(--ma-surface-hover);
    border-color: var(--ma-border-strong);
}

.ma-post-nav__link--next {
    text-align: right;
}

.ma-post-nav__label {
    font-size: 0.875rem;
    color: var(--ma-text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.ma-post-nav__title {
    color: var(--ma-text);
    font-weight: 500;
}

/* =========================================================
   COMMENTS
   ========================================================= */
.ma-comments__title {
    font-size: 1.875rem;
    color: var(--ma-text);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.ma-comments .comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ma-comments .comment-list .children {
    list-style: none;
    padding-left: 2rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ma-comments .comment-body {
    background: var(--ma-surface);
    border-radius: var(--ma-radius-md);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
}

.ma-comments .comment-author {
    flex-shrink: 0;
}

.ma-comments .comment-author .avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
}

.ma-comments .comment-meta {
    flex: 1;
}

.ma-comments .fn {
    color: var(--ma-text);
    font-weight: 500;
    font-style: normal;
    margin-right: 0.75rem;
}

.ma-comments .comment-metadata {
    color: var(--ma-text-muted-2);
    font-size: 0.875rem;
}

.ma-comments .comment-metadata a {
    color: var(--ma-text-muted-2);
}

.ma-comments .comment-content {
    color: var(--ma-text-muted-3);
    margin: 0.75rem 0;
}

.ma-comments .comment-content p {
    margin: 0 0 0.5rem;
    color: var(--ma-text-muted-3);
}

.ma-comments .reply a {
    color: var(--ma-purple-light);
    font-size: 0.875rem;
}

.ma-comments .reply a:hover {
    color: #e9d5ff;
}

/* Comment form */
.ma-comments .comment-respond {
    margin-bottom: 2rem;
}

.ma-comments .comment-reply-title {
    font-size: 1.25rem;
    color: var(--ma-text);
    margin-bottom: 1rem;
}

.ma-comments .comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ma-comments .comment-form label {
    display: block;
    color: var(--ma-text-muted-3);
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

.ma-comments .comment-form input[type="text"],
.ma-comments .comment-form input[type="email"],
.ma-comments .comment-form input[type="url"],
.ma-comments .comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--ma-surface);
    border: 1px solid var(--ma-border);
    border-radius: var(--ma-radius-md);
    color: var(--ma-text);
    transition: var(--ma-transition);
}

.ma-comments .comment-form textarea {
    resize: vertical;
    min-height: 8rem;
}

.ma-comments .comment-form input:focus,
.ma-comments .comment-form textarea:focus {
    outline: none;
    border-color: var(--ma-purple-light);
}

.ma-comments .comment-form input::placeholder,
.ma-comments .comment-form textarea::placeholder {
    color: var(--ma-text-muted);
}

.ma-comments .form-submit {
    display: flex;
    justify-content: flex-end;
}

.ma-comments .form-submit .submit {
    padding: 0.75rem 1.5rem;
    background: var(--ma-purple-600);
    color: #fff;
    border-radius: var(--ma-radius-md);
    transition: var(--ma-transition);
    border: none;
    font-weight: 500;
    cursor: pointer;
}

.ma-comments .form-submit .submit:hover {
    background: var(--ma-purple-dark);
}

.ma-comments .logged-in-as,
.ma-comments .comment-notes,
.ma-comments .comment-form-cookies-consent {
    color: var(--ma-text-muted);
    font-size: 0.875rem;
}

/* =========================================================
   PAGINATION
   ========================================================= */
.ma-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.ma-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.875rem;
    background: var(--ma-surface);
    border: 1px solid var(--ma-border);
    border-radius: var(--ma-radius-md);
    color: var(--ma-text-muted-3);
    text-decoration: none;
    transition: var(--ma-transition);
}

.ma-pagination .page-numbers:hover,
.ma-pagination .page-numbers.current {
    background: var(--ma-surface-hover);
    border-color: var(--ma-border-strong);
    color: var(--ma-text);
}

.ma-pagination .page-numbers.current {
    background: var(--ma-purple-600);
    border-color: var(--ma-purple-600);
    color: #fff;
}

/* =========================================================
   PAGE / SEARCH / 404
   ========================================================= */
.ma-page-header {
    padding: 8rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ma-page-header__blob {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 9999px;
    filter: blur(60px);
    opacity: 0.15;
    top: -5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ma-purple-600);
    pointer-events: none;
}

.ma-page-header__title {
    position: relative;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .ma-page-header__title {
        font-size: 3.5rem;
    }
}

.ma-page-header__subtitle {
    position: relative;
    color: var(--ma-text-muted);
    font-size: 1.125rem;
    max-width: 42rem;
    margin: 0 auto;
}

.ma-page-content {
    padding: 3rem 0 5rem;
}

.ma-page-content__inner {
    max-width: 56rem;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--ma-radius-2xl);
    padding: 2rem 1.5rem;
    border: 1px solid var(--ma-border);
    color: var(--ma-text-muted-3);
}

@media (min-width: 768px) {
    .ma-page-content__inner {
        padding: 3rem;
    }
}

.ma-page-content__inner h1,
.ma-page-content__inner h2,
.ma-page-content__inner h3,
.ma-page-content__inner h4 {
    color: var(--ma-text);
    margin: 2rem 0 1rem;
}

.ma-page-content__inner p,
.ma-page-content__inner li {
    color: var(--ma-text-muted-3);
    line-height: 1.75;
}

.ma-page-content__inner a {
    color: var(--ma-purple-light);
    text-decoration: underline;
}

/* Search form */
.ma-search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 32rem;
    margin: 2rem auto 0;
}

.ma-search-form input[type="search"] {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--ma-surface);
    border: 1px solid var(--ma-border);
    border-radius: var(--ma-radius-md);
    color: var(--ma-text);
}

.ma-search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--ma-purple-light);
}

.ma-search-form input[type="search"]::placeholder {
    color: var(--ma-text-muted);
}

/* 404 */
.ma-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem;
}

.ma-404__code {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(to right, var(--ma-purple-light), var(--ma-blue-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 1.5rem;
}

/* =========================================================
   WORDPRESS ALIGNMENT / CORE CLASSES
   ========================================================= */
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--ma-text-muted); font-size: 0.875rem; text-align: center; margin-top: 0.5rem; }
.gallery { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 1.5rem 0; }
.gallery-item { margin: 0; }
.gallery-item img { border-radius: var(--ma-radius-sm); }

/* Sticky post */
.sticky .ma-post-card {
    border-color: var(--ma-purple);
}

/* Editor styles for Gutenberg */
.wp-block-quote {
    background: rgba(88, 28, 135, 0.2);
    border-left: 4px solid var(--ma-purple);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--ma-radius-md) var(--ma-radius-md) 0;
    color: #e9d5ff;
}

.wp-block-image img {
    border-radius: var(--ma-radius-md);
}

/* =========================================================
   UTILITY
   ========================================================= */
.ma-text-center { text-align: center; }
.ma-mt-0 { margin-top: 0; }
.ma-mb-0 { margin-bottom: 0; }

/* Smooth fade for featured images */
.ma-has-featured img {
    transition: transform 0.3s ease;
}
