/*
Theme Name: Axion Framework
Theme URI: https://axioncompany.com.br
Author: Axion Company
Author URI: https://axioncompany.com.br
Description: Axion Framework — Tema WordPress premium modular, multiuso e otimizado para performance, SEO e monetização. Motor de vibes com 7 presets visuais, Ads Manager com 14 posições, SEO avançado e admin dashboard com 20 abas.
Version: 3.0.0
License: GNU General Public License v2 or later
Tags: news, portal, responsive, seo, ads, modular, vibes, monetization, performance
Text Domain: axion-framework
Requires at least: 6.0
Requires PHP: 8.0
*/

/* ============================================================
   AXION FRAMEWORK v3 — DESIGN SYSTEM
   ============================================================ */

/* --- CSS Variables (Base) --- */
:root {
    --ax-primary: #0d1b2a;
    --ax-secondary: #1b263b;
    --ax-accent: #3b82f6;
    --ax-accent-hover: #2563eb;
    --ax-success: #10b981;
    --ax-warning: #f59e0b;
    --ax-danger: #ef4444;
    --ax-text: #1f2937;
    --ax-text-muted: #6b7280;
    --ax-bg: #f9fafb;
    --ax-bg-card: #ffffff;
    --ax-border: #e5e7eb;
    --ax-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --ax-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --ax-shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --ax-shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --ax-shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
    --ax-radius-sm: 6px;
    --ax-radius: 8px;
    --ax-radius-lg: 12px;
    --ax-radius-xl: 16px;
    --ax-radius-full: 9999px;
    --ax-transition: 0.2s ease;
    --ax-transition-slow: 0.3s ease;
    --ax-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ax-font-serif: 'Playfair Display', Georgia, serif;
    --ax-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --ax-container: 1200px;
    --ax-content: 720px;
    --ax-sidebar: 300px;
    --ax-gap: 20px;
    --ax-header-height: 60px;
    --ax-nav-height: 48px;
    --ax-topbar-height: 36px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--ax-font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ax-text);
    background-color: var(--ax-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color var(--ax-transition); }
a:hover { color: var(--ax-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--ax-primary); }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* --- Container --- */
.ax-container {
    max-width: var(--ax-container);
    margin: 0 auto;
    padding: 0 var(--ax-gap);
}
.ax-container--narrow { max-width: var(--ax-content); }
.ax-container--wide { max-width: 1400px; }

/* --- Grid System --- */
.ax-grid {
    display: grid;
    gap: var(--ax-gap);
}
.ax-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ax-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ax-grid--4 { grid-template-columns: repeat(4, 1fr); }
.ax-grid--sidebar { grid-template-columns: 1fr var(--ax-sidebar); }
.ax-grid--sidebar-left { grid-template-columns: var(--ax-sidebar) 1fr; }

@media (max-width: 1024px) {
    .ax-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .ax-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .ax-grid--sidebar { grid-template-columns: 1fr; }
    .ax-grid--sidebar-left { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .ax-grid--4, .ax-grid--3, .ax-grid--2 { grid-template-columns: 1fr; }
    :root { --ax-gap: 16px; }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* ============================================================
   COMPONENTS
   ============================================================ */

/* --- Buttons --- */
.ax-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--ax-radius);
    cursor: pointer;
    transition: all var(--ax-transition);
    white-space: nowrap;
    text-decoration: none;
}
.ax-btn:hover { transform: translateY(-1px); box-shadow: var(--ax-shadow-md); }
.ax-btn:active { transform: translateY(0); }
.ax-btn--primary { background: var(--ax-accent); color: #fff; }
.ax-btn--primary:hover { background: var(--ax-accent-hover); color: #fff; }
.ax-btn--secondary { background: var(--ax-primary); color: #fff; }
.ax-btn--outline { background: transparent; border: 2px solid var(--ax-border); color: var(--ax-text); }
.ax-btn--outline:hover { border-color: var(--ax-accent); color: var(--ax-accent); }
.ax-btn--ghost { background: transparent; color: var(--ax-accent); }
.ax-btn--ghost:hover { background: rgba(59,130,246,0.1); }
.ax-btn--sm { padding: 6px 16px; font-size: 13px; }
.ax-btn--lg { padding: 14px 32px; font-size: 16px; }
.ax-btn--round { border-radius: var(--ax-radius-full); }
.ax-btn--block { width: 100%; }

/* --- Cards --- */
.ax-card {
    background: var(--ax-bg-card);
    border-radius: var(--ax-radius-lg);
    overflow: hidden;
    box-shadow: var(--ax-shadow);
    transition: all var(--ax-transition-slow);
}
.ax-card:hover {
    box-shadow: var(--ax-shadow-lg);
    transform: translateY(-2px);
}
.ax-card__image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.ax-card__body { padding: 20px; }
.ax-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}
.ax-card__title a { color: var(--ax-text); }
.ax-card__title a:hover { color: var(--ax-accent); }
.ax-card__excerpt {
    font-size: 14px;
    color: var(--ax-text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}
.ax-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--ax-text-muted);
}
.ax-card__meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- Tags & Badges --- */
.ax-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--ax-radius-sm);
    background: var(--ax-accent);
    color: #fff;
}
.ax-tag--success { background: var(--ax-success); }
.ax-tag--warning { background: var(--ax-warning); color: #000; }
.ax-tag--danger { background: var(--ax-danger); }
.ax-tag--outline { background: transparent; border: 1px solid currentColor; }
.ax-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--ax-radius-full);
    background: var(--ax-danger);
    color: #fff;
}

/* --- Forms --- */
.ax-input, .ax-textarea, .ax-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius);
    background: #fff;
    color: var(--ax-text);
    transition: border-color var(--ax-transition), box-shadow var(--ax-transition);
}
.ax-input:focus, .ax-textarea:focus, .ax-select:focus {
    outline: none;
    border-color: var(--ax-accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.ax-textarea { resize: vertical; min-height: 100px; }
.ax-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ax-text);
    margin-bottom: 6px;
}
.ax-form-group { margin-bottom: 16px; }

/* --- Toggle Switch --- */
.ax-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.ax-toggle input { opacity: 0; width: 0; height: 0; }
.ax-toggle__slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--ax-border);
    border-radius: 24px;
    transition: var(--ax-transition);
}
.ax-toggle__slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: var(--ax-transition);
}
.ax-toggle input:checked + .ax-toggle__slider { background: var(--ax-accent); }
.ax-toggle input:checked + .ax-toggle__slider::before { transform: translateX(20px); }

/* --- Section Header --- */
.ax-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.ax-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ax-primary);
}
.ax-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--ax-accent);
    border-radius: 2px;
}

/* --- Post List Item --- */
.ax-post-list {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--ax-border);
    transition: background var(--ax-transition);
}
.ax-post-list:hover { background: rgba(59,130,246,0.02); }
.ax-post-list__image {
    width: 200px;
    flex-shrink: 0;
    border-radius: var(--ax-radius);
    overflow: hidden;
}
.ax-post-list__image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}
.ax-post-list__content { flex: 1; }
.ax-post-list__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* --- Sidebar Widget --- */
.ax-widget {
    background: var(--ax-bg-card);
    padding: 20px;
    border-radius: var(--ax-radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--ax-shadow-sm);
}
.ax-widget__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ax-accent);
}

/* --- Most Read --- */
.ax-most-read__item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ax-border);
}
.ax-most-read__item:last-child { border-bottom: none; }
.ax-most-read__number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ax-accent);
    line-height: 1;
    min-width: 30px;
}

/* --- Breadcrumbs --- */
.ax-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ax-text-muted);
    padding: 12px 0;
}
.ax-breadcrumbs__separator { color: var(--ax-border); }

/* --- Pagination --- */
.ax-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}
.ax-pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--ax-transition);
}
.ax-pagination__link:hover,
.ax-pagination__link--active {
    background: var(--ax-accent);
    color: #fff;
    border-color: var(--ax-accent);
}

/* --- Newsletter --- */
.ax-newsletter {
    background: linear-gradient(135deg, var(--ax-primary), var(--ax-secondary));
    border-radius: var(--ax-radius-xl);
    padding: 48px;
    text-align: center;
    color: #fff;
}
.ax-newsletter__form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 24px auto 0;
}
.ax-newsletter__input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--ax-radius-full);
    font-size: 15px;
}
.ax-newsletter__btn {
    padding: 14px 28px;
    background: var(--ax-accent);
    color: #fff;
    border: none;
    border-radius: var(--ax-radius-full);
    font-weight: 700;
    cursor: pointer;
    transition: background var(--ax-transition);
}
.ax-newsletter__btn:hover { background: var(--ax-accent-hover); }

/* --- Loading Spinner --- */
.ax-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--ax-border);
    border-top-color: var(--ax-accent);
    border-radius: 50%;
    animation: ax-spin 0.8s linear infinite;
}
@keyframes ax-spin { to { transform: rotate(360deg); } }

/* --- Skeleton Loading --- */
.ax-skeleton {
    background: linear-gradient(90deg, var(--ax-border) 25%, #f3f4f6 50%, var(--ax-border) 75%);
    background-size: 200% 100%;
    animation: ax-shimmer 1.5s infinite;
    border-radius: var(--ax-radius);
}
@keyframes ax-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================================
   HEADER
   ============================================================ */
.ax-topbar {
    background: var(--ax-primary);
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ax-topbar .ax-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ax-topbar__socials {
    display: flex;
    gap: 12px;
}
.ax-topbar__socials a {
    color: rgba(255,255,255,0.7);
    transition: color var(--ax-transition);
}
.ax-topbar__socials a:hover { color: #fff; }

.ax-header {
    background: var(--ax-primary);
    color: #fff;
    padding: 16px 0;
    position: relative;
}
.ax-header .ax-container {
    display: flex;
    align-items: center;
    justify-content: center;
}
.ax-header__logo img { max-width: 280px; height: auto; }
.ax-header__title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.ax-nav {
    background: var(--ax-secondary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--ax-shadow);
}
.ax-nav .ax-container {
    display: flex;
    align-items: stretch;
}
.ax-nav__menu {
    display: flex;
    flex-wrap: nowrap;
}
.ax-nav__link {
    display: flex;
    align-items: center;
    padding: 0 18px;
    height: var(--ax-nav-height);
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: background var(--ax-transition);
    white-space: nowrap;
}
.ax-nav__link:hover,
.ax-nav__link--active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* Hamburger */
.ax-hamburger {
    display: none;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: var(--ax-radius-sm);
    padding: 8px 12px;
    cursor: pointer;
    color: #fff;
}
.ax-hamburger__lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}
.ax-hamburger__lines span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.ax-hamburger.is-open .ax-hamburger__lines span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ax-hamburger.is-open .ax-hamburger__lines span:nth-child(2) { opacity: 0; }
.ax-hamburger.is-open .ax-hamburger__lines span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .ax-hamburger { display: flex; align-items: center; justify-content: center; margin: 10px 15px; }
    .ax-nav__menu { display: none; flex-direction: column; width: 100%; }
    .ax-nav__menu.is-open { display: flex; animation: ax-slideDown 0.3s ease-out; }
    .ax-nav__link { padding: 14px 20px; font-size: 15px; height: auto; }
    .ax-header__logo img { max-width: 180px; }
}
@keyframes ax-slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   HOME PAGE — HERO
   ============================================================ */
.ax-hero {
    padding: 24px 0;
}
.ax-hero__grid {
    display: grid;
    gap: var(--ax-gap);
}
.ax-hero__grid--style1 { grid-template-columns: 2fr 1fr; }
.ax-hero__grid--style2 { grid-template-columns: 1fr 2fr; }
.ax-hero__grid--style3 { grid-template-columns: repeat(3, 1fr); }

.ax-hero__main {
    position: relative;
    border-radius: var(--ax-radius-lg);
    overflow: hidden;
}
.ax-hero__main img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.ax-hero__main:hover img { transform: scale(1.03); }
.ax-hero__main-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
}
.ax-hero__main-content h2 {
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 8px;
}
.ax-hero__main-content p {
    font-size: 14px;
    opacity: 0.9;
}

.ax-hero__side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: var(--ax-gap);
}
.ax-hero__side-item {
    position: relative;
    border-radius: var(--ax-radius-lg);
    overflow: hidden;
}
.ax-hero__side-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.ax-hero__side-item:hover img { transform: scale(1.03); }
.ax-hero__side-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
}
.ax-hero__side-content h3 {
    color: #fff;
    font-size: 1rem;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .ax-hero__grid--style1,
    .ax-hero__grid--style2,
    .ax-hero__grid--style3 { grid-template-columns: 1fr; }
    .ax-hero__side { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.ax-footer {
    background: var(--ax-primary);
    color: rgba(255,255,255,0.8);
    padding: 48px 0 24px;
}
.ax-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}
.ax-footer__title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.ax-footer__link {
    display: block;
    padding: 4px 0;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: color var(--ax-transition);
}
.ax-footer__link:hover { color: #fff; }
.ax-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.ax-footer__socials { display: flex; gap: 16px; }
.ax-footer__socials a { color: rgba(255,255,255,0.6); }
.ax-footer__socials a:hover { color: #fff; }

@media (max-width: 768px) {
    .ax-footer__grid { grid-template-columns: 1fr; }
    .ax-footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.ax-post-header { margin-bottom: 24px; }
.ax-post-header h1 { font-size: 2rem; margin-bottom: 12px; }
.ax-post__excerpt {
    font-size: 1.1rem;
    color: var(--ax-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}
.ax-post__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--ax-text-muted);
    padding: 12px 0;
    border-top: 1px solid var(--ax-border);
    border-bottom: 1px solid var(--ax-border);
    margin-bottom: 24px;
}
.ax-post__author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.ax-post__content { font-size: 16px; line-height: 1.8; }
.ax-post__content p { margin-bottom: 20px; }
.ax-post__content h2 {
    font-size: 1.5rem;
    margin: 40px 0 16px;
    padding-left: 16px;
    border-left: 4px solid var(--ax-accent);
}
.ax-post__content h3 {
    font-size: 1.25rem;
    margin: 32px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ax-border);
}
.ax-post__content blockquote {
    border-left: 4px solid var(--ax-accent);
    padding: 20px 24px;
    margin: 24px 0;
    background: var(--ax-bg);
    border-radius: 0 var(--ax-radius) var(--ax-radius) 0;
    font-style: italic;
    color: var(--ax-text-muted);
}
.ax-post__featured-image {
    width: 100%;
    border-radius: var(--ax-radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
}
.ax-post__featured-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

/* --- Author Box --- */
.ax-author-box {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--ax-bg);
    border-radius: var(--ax-radius-lg);
    margin: 40px 0;
}
.ax-author-box__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.ax-author-box__name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.ax-author-box__bio {
    font-size: 14px;
    color: var(--ax-text-muted);
    line-height: 1.6;
}

/* --- Related Posts --- */
.ax-related {
    padding: 40px 0;
    border-top: 1px solid var(--ax-border);
}

/* ============================================================
   ADS
   ============================================================ */
.ax-ad {
    text-align: center;
    padding: 16px 0;
    opacity: 0.9;
}
.ax-ad--header { padding: 12px 0; }
.ax-ad--sidebar { margin-bottom: 24px; }
.ax-ad--content { margin: 32px 0; }
.ax-ad--footer { padding: 20px 0; }
.ax-ad__label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ax-text-muted);
    margin-bottom: 8px;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.ax-text-center { text-align: center; }
.ax-text-left { text-align: left; }
.ax-text-right { text-align: right; }
.ax-mt-0 { margin-top: 0; }
.ax-mt-1 { margin-top: 8px; }
.ax-mt-2 { margin-top: 16px; }
.ax-mt-3 { margin-top: 24px; }
.ax-mt-4 { margin-top: 32px; }
.ax-mb-0 { margin-bottom: 0; }
.ax-mb-1 { margin-bottom: 8px; }
.ax-mb-2 { margin-bottom: 16px; }
.ax-mb-3 { margin-bottom: 24px; }
.ax-mb-4 { margin-bottom: 32px; }
.ax-hidden { display: none !important; }
.ax-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.ax-fade-in {
    animation: ax-fadeIn 0.5s ease-out;
}
@keyframes ax-fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.ax-fade-in-left {
    animation: ax-fadeInLeft 0.5s ease-out;
}
@keyframes ax-fadeInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }

.ax-fade-in-right {
    animation: ax-fadeInRight 0.5s ease-out;
}
@keyframes ax-fadeInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

.ax-scale-in {
    animation: ax-scaleIn 0.3s ease-out;
}
@keyframes ax-scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* Scroll-triggered animation classes */
.ax-animate { opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; }
.ax-animate.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   DARK MODE
   ============================================================ */
@media (prefers-color-scheme: dark) {
    .ax-dark-mode-active {
        --ax-text: #f3f4f6;
        --ax-text-muted: #9ca3af;
        --ax-bg: #111827;
        --ax-bg-card: #1f2937;
        --ax-border: #374151;
        --ax-shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
        --ax-shadow: 0 1px 3px rgba(0,0,0,0.4);
        --ax-shadow-md: 0 4px 6px rgba(0,0,0,0.4);
        --ax-shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
    }
}

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 768px) {
    .ax-hide-mobile { display: none !important; }
    .ax-post__meta { flex-wrap: wrap; gap: 8px; }
    .ax-post__content { font-size: 15px; }
    .ax-post__content h2 { font-size: 1.3rem; }
    .ax-author-box { flex-direction: column; text-align: center; align-items: center; }
    .ax-newsletter { padding: 32px 20px; }
    .ax-newsletter__form { flex-direction: column; }
}
@media (min-width: 769px) {
    .ax-hide-desktop { display: none !important; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .ax-topbar, .ax-nav, .ax-footer, .ax-ad, .ax-sidebar { display: none !important; }
    body { background: #fff; color: #000; }
    .ax-post__content { max-width: 100%; }
}
