/*
Theme Name: Cubexa Blog
Theme URI: https://cubexa.online/
Author: Cubexa
Author URI: https://cubexa.online/
Description: Tema WordPress para o blog do Cubexa, sincronizado com a identidade visual da landing page (purple theme, Arc-style header, 12px radius).
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
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: cubexa-blog
Tags: blog, dark, modern, glassmorphism, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ============================================
   DESIGN TOKENS (Sincronizado com Landing Page)
   ============================================ */
:root {
    /* Colors - Purple Theme */
    --bg: #0e0c1e;
    --bg2: #1a152e;
    --panel: #1e1833;
    --panel2: #251f44;
    --text: #e7e5f0;
    --muted: #a093b8;
    --purple: #a78bfa;
    --purple2: #e9d8fd;
    --accent: #eab308;
    --line: rgba(255,255,255,0.08);
    --success: #22c55e;
    --shadow: 0 10px 20px rgba(0,0,0,0.3);
    --r: 12px;

    /* Typography - System UI Stack */
    --font-main: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-heading: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

    /* Spacing */
    --container: 1320px;
    --section-padding: 120px;
    --header-height: 60px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, var(--bg2), var(--bg)),
        radial-gradient(ellipse 60% 40% at 80% 30%, rgba(167, 139, 250, 0.08), transparent);
    color: var(--text);
    font-family: var(--font-main);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--purple);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 0.5em;
    color: var(--text);
}

h1 { font-size: clamp(42px, 6vw, 72px); }
h2 { font-size: 38px; }
h3 { font-size: 22px; }
h4 { font-size: 17px; }
h5 { font-size: 14px; }
h6 { font-size: 13px; }

p {
    margin: 0 0 1em;
    color: var(--muted);
    line-height: 1.7;
}

strong, b {
    color: var(--text);
    font-weight: 700;
}

em, i {
    font-style: italic;
}

ul, ol {
    margin: 0 0 1em;
    padding-left: 1.5em;
    color: var(--muted);
}

li {
    margin-bottom: 0.5em;
}

blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    border-left: 3px solid var(--purple);
    background: var(--panel);
    border-radius: var(--r);
    font-size: 1.1em;
    font-style: italic;
    color: var(--text);
}

blockquote p:last-child {
    margin-bottom: 0;
}

code, pre {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9em;
    background: var(--panel2);
    border-radius: 8px;
}

code {
    padding: 0.2em 0.5em;
    color: var(--purple2);
}

pre {
    padding: 1.25em 1.5em;
    overflow-x: auto;
    margin: 1.5em 0;
    border: 1px solid var(--line);
}

pre code {
    padding: 0;
    background: none;
    color: var(--text);
}

hr {
    border: 0;
    height: 1px;
    background: var(--line);
    margin: 3em 0;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: var(--section-padding) 20px;
    max-width: var(--container);
    margin: 0 auto;
}

/* ============================================
   HEADER - Arc Style Floating Capsule
   ============================================ */
.site-header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(14, 12, 30, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 100px;
    padding: 8px 20px;
    border: 1px solid var(--line);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.site-header.hidden {
    transform: translateX(-50%) translateY(-120%);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: var(--container);
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

.brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.brand span {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    gap: 4px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav ul {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    transition: 0.2s;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
    text-decoration: none;
}

.nav a:hover {
    color: var(--text);
    background: rgba(255,255,255,0.05);
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    text-decoration: none;
}

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

.btn-primary:hover { 
    background: #9f7aea; 
    transform: translateY(-1px); 
    color: #000;
}

.btn-secondary {
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
}

.btn-secondary:hover { 
    border-color: var(--purple); 
    color: var(--purple); 
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}

.btn-ghost:hover {
    border-color: var(--purple);
    color: var(--purple);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 14px;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: 0.3s;
}

/* ============================================
   EYEBROW & BADGES
   ============================================ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--purple);
    margin-bottom: 16px;
}

.eyebrow span {
    width: 32px;
    height: 2px;
    background: var(--purple);
    display: inline-block;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(167, 139, 250, 0.15);
    color: var(--purple);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pill {
    display: inline-block;
    padding: 4px 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

/* ============================================
   POST CARDS (Blog Grid)
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-top: 70px;
}

.post-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover { 
    transform: translateY(-4px); 
    box-shadow: var(--shadow);
    border-color: var(--purple);
}

.post-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--panel2);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.03);
}

.post-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
}

.post-card-meta .category {
    color: var(--purple);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.post-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.post-card h3 a:hover { 
    color: var(--purple); 
}

.post-card p {
    font-size: 14px;
    flex: 1;
    margin: 0;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}

.read-more {
    color: var(--purple);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.read-more:hover { 
    gap: 10px; 
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-post-header {
    padding: 200px 20px 60px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.single-post-header .post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.single-post-header .post-meta .category {
    color: var(--purple);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.single-post-header h1 {
    max-width: 800px;
    margin: 0 auto 24px;
    line-height: 1.15;
}

.single-post-featured-image {
    max-width: 100%;
    margin: 0 auto 40px;
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 16 / 9;
}

.single-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.single-post-content p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 1.5em;
    color: var(--muted);
}

.single-post-content h2 {
    margin-top: 2.5em;
    margin-bottom: 1em;
}

.single-post-content h3 {
    margin-top: 2em;
    margin-bottom: 0.8em;
}

.single-post-content ul,
.single-post-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}

.single-post-content li {
    margin-bottom: 0.5em;
    color: var(--muted);
}

.single-post-content blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    border-left: 3px solid var(--purple);
    background: var(--panel);
    border-radius: var(--r);
    font-style: italic;
}

.single-post-content code {
    background: var(--panel2);
    padding: 0.2em 0.5em;
    border-radius: 4px;
    color: var(--purple2);
    font-size: 0.95em;
}

.single-post-content pre {
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 1.5em;
    overflow-x: auto;
    margin: 1.5em 0;
}

.single-post-content pre code {
    background: none;
    padding: 0;
    color: var(--text);
    font-size: 0.9em;
}

.single-post-content img {
    border-radius: var(--r);
    border: 1px solid var(--line);
    margin: 1.5em auto;
}

.single-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.single-post-tags a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    transition: 0.2s;
}

.single-post-tags a:hover {
    border-color: var(--purple);
    color: var(--purple);
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    margin-top: 40px;
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.author-bio {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

/* ============================================
   SINGLE POST LAYOUT (Content + Sidebar)
   ============================================ */
.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
    padding: 0 20px 80px;
    max-width: var(--container);
    margin: 0 auto;
}

.single-post-main {
    min-width: 0;
}

/* Sidebar positioned as a sticky column */
.single-post-layout .sidebar {
    padding-left: 0;
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-area {
    max-width: 820px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.comments-title {
    font-size: 24px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

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

.comment-body {
    display: flex;
    gap: 16px;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 700;
    color: var(--text);
}

.comment-content p {
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--purple);
    transition: 0.2s;
}

.comment-reply-link:hover {
    gap: 10px;
}

.comment-form {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.comment-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.comment-form textarea,
.comment-form input {
    width: 100%;
    padding: 12px 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    margin-bottom: 16px;
    transition: 0.2s;
}

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

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

.form-submit {
    margin-top: 8px;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    padding-left: 40px;
}

.widget {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    margin-bottom: 10px;
    padding: 0;
}

.widget li:last-child {
    margin-bottom: 0;
}

.widget a {
    display: block;
    padding: 8px 0;
    color: var(--muted);
    font-size: 14px;
    transition: 0.2s;
    border-radius: 6px;
    padding-left: 8px;
    padding-right: 8px;
}

.widget a:hover {
    color: var(--purple);
    background: rgba(167, 139, 250, 0.08);
}

.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget_tag_cloud a {
    display: inline-flex;
    padding: 6px 14px;
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    transition: 0.2s;
    margin: 0;
}

.widget_tag_cloud a:hover {
    border-color: var(--purple);
    color: var(--purple);
    background: rgba(167, 139, 250, 0.1);
}

/* Search Widget */
.widget_search .search-form {
    display: flex;
    gap: 8px;
}

.widget_search .search-field {
    flex: 1;
    padding: 10px 14px;
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: 100px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
}

.widget_search .search-field:focus {
    outline: none;
    border-color: var(--purple);
}

.widget_search .search-submit {
    background: var(--purple);
    color: #000;
    border: none;
    border-radius: 100px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.widget_search .search-submit:hover {
    background: #9f7aea;
}

/* ============================================
   SOCIAL WIDGET
   ============================================ */
.social-widget {
    text-align: center;
}

.social-widget .widget-title {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: var(--r);
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

.social-link:hover {
    border-color: var(--purple);
    color: var(--purple);
    background: rgba(167, 139, 250, 0.08);
    transform: translateX(4px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.social-cta {
    margin-top: 8px;
}

.social-cta .btn {
    width: 100%;
    justify-content: center;
}

/* ============================================
   FOOTER - 4 Colunas com Dropdown Soluções
   ============================================ */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 70px 20px 32px;
    background: var(--bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    max-width: var(--container);
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand .brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.footer-brand h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.footer-brand p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.footer-brand small {
    color: var(--muted);
    opacity: 0.7;
    font-size: 12px;
}

.footer-col {
    position: relative;
}

.footer-col h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--muted);
    font-size: 14px;
    transition: 0.2s;
}

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

/* Footer Dropdown */
.footer-dropdown {
    margin-top: 16px;
}

.footer-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    transition: 0.2s;
}

.footer-dropdown-trigger:hover {
    color: var(--text);
}

.footer-dropdown-trigger svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.footer-dropdown:hover .footer-dropdown-trigger svg,
.footer-dropdown:focus-within .footer-dropdown-trigger svg {
    transform: rotate(180deg);
}

.footer-dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 280px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 24px 28px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 100;
}

.footer-dropdown:hover .footer-dropdown-panel,
.footer-dropdown:focus-within .footer-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-section {
    margin-bottom: 20px;
    padding: 0 4px;
}

.dropdown-section:last-child {
    margin-bottom: 0;
}

.dropdown-section h5 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--purple);
    font-weight: 700;
    margin: 0 0 12px;
}

.dropdown-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 4px;
}

.dropdown-section a {
    color: var(--muted);
    font-size: 13px;
    padding: 4px 0;
    transition: 0.2s;
}

.dropdown-section a:hover {
    color: var(--purple);
}

.footer-bottom {
    grid-column: 1 / -1;
    padding-top: 28px;
    margin-top: 28px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
    opacity: 60%;
    max-width: var(--container);
    width: min(var(--container), calc(100% - 40px));
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.2s, background 0.2s;
    color: #fff;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #9f7aea;
    color: #fff;
}

.whatsapp-float svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.whatsapp-float svg path {
    fill: currentColor;
    stroke: none;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--purple);
    border-color: var(--purple);
    color: #000;
}

.page-numbers.dots {
    cursor: default;
    background: transparent;
    border-color: transparent;
}

.page-numbers.dots:hover {
    background: transparent;
    color: var(--muted);
}

/* ============================================
   ARCHIVE / SEARCH HEADERS
   ============================================ */
.archive-header {
    padding: 200px 20px 60px;
    text-align: center;
}

.archive-header .archive-title {
    font-size: clamp(42px, 6vw, 64px);
    margin-bottom: 16px;
}

.archive-header .archive-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
    padding: 200px 20px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.error-404 .error-code {
    font-size: clamp(120px, 20vw, 200px);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--purple), var(--purple2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.error-404 h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.error-404 p {
    margin-bottom: 32px;
}

.error-404 .btn {
    margin: 0 auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .single-post-layout {
        grid-template-columns: 1fr 280px;
        gap: 32px;
    }
}

@media (max-width: 900px) {
    .site-header {
        top: 8px;
        padding: 8px 12px;
        border-radius: 16px;
    }
    
    .brand span {
        display: none;
    }
    
    .nav {
        display: none;
    }
    
    .header-actions .btn-secondary {
        display: none;
    }
    
    .header-actions .btn-primary {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .section {
        padding: 80px 16px;
    }
    
    h2 { font-size: 30px; }
    h3 { font-size: 20px; }
    
    .single-post-header {
        padding: 140px 16px 40px;
    }
    
    /* Stack sidebar below content on mobile */
    .single-post-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .single-post-layout .sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        margin-top: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .footer-dropdown-panel {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 12px 0 0;
    }
    
    .dropdown-section {
        margin-bottom: 16px;
    }
    
    .footer-dropdown-trigger {
        display: none;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .site-header {
        top: 8px;
        padding: 8px 12px;
        border-radius: 16px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 10px 16px;
    background: var(--purple);
    color: white;
    border-radius: 8px;
    z-index: 1000;
    clip: auto;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 10px;
    padding: 10px 16px;
    background: var(--purple);
    color: white;
    border-radius: 8px;
    z-index: 1000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 10px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
}

/* ============================================
   BLOCK EDITOR STYLES
   ============================================ */
.wp-block-image img {
    border-radius: var(--r);
}

.wp-block-quote {
    border-left: 3px solid var(--purple);
    padding-left: 1.5em;
    font-style: italic;
}

.wp-block-quote cite {
    display: block;
    margin-top: 0.75em;
    font-size: 0.85em;
    color: var(--muted);
    font-style: normal;
}

.wp-block-button__link {
    border-radius: 100px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
}

.wp-block-button.is-style-fill .wp-block-button__link {
    background: var(--purple) !important;
    color: #000 !important;
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent !important;
    border: 1px solid var(--purple) !important;
    color: var(--purple) !important;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    max-width: 100%;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
}

.wp-block-cover {
    border-radius: var(--r);
}

.wp-block-group {
    border-radius: var(--r);
}

/* ============================================
   REVEAL ANIMATION
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}