/*
Theme Name: A ao Cubo Design
Theme URI: https://aocubo-creative-hub.lovable.app
Author: A ao Cubo Design
Author URI: https://aocubo-creative-hub.lovable.app
Description: Tema moderno, profissional e visualmente impactante para a marca "A ao Cubo Design". Conteúdos sobre Design, Branding, Marketing Digital e Inteligência Artificial. Inclui modo escuro, tipografia editorial (Space Grotesk + Inter) e paleta extraída do logotipo (Lima, Preto, Creme).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: aocubo
Tags: blog, two-columns, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready, dark-mode
*/

/* ============= TOKENS ============= */
:root {
  --radius: 0.875rem;
  --background: oklch(0.98 0.01 95);
  --foreground: oklch(0.16 0.01 95);
  --ink: oklch(0.12 0.01 95);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.16 0.01 95);
  --primary: oklch(0.86 0.21 125);
  --primary-foreground: oklch(0.16 0.01 95);
  --secondary: oklch(0.94 0.015 95);
  --muted: oklch(0.95 0.01 95);
  --muted-foreground: oklch(0.45 0.01 95);
  --accent: oklch(0.86 0.21 125);
  --border: oklch(0.9 0.01 95);
  --input: oklch(0.92 0.01 95);
  --ring: oklch(0.86 0.21 125);
  --gradient-hero: radial-gradient(ellipse at top right, oklch(0.86 0.21 125 / 0.25), transparent 60%), linear-gradient(180deg, oklch(0.16 0.01 95), oklch(0.12 0.01 95));
  --gradient-lime: linear-gradient(135deg, oklch(0.9 0.21 125), oklch(0.78 0.2 135));
  --shadow-glow: 0 20px 60px -20px oklch(0.86 0.21 125 / 0.5);
  --shadow-card: 0 1px 2px oklch(0 0 0 / 0.04), 0 12px 40px -16px oklch(0 0 0 / 0.12);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
}
.dark {
  --background: oklch(0.13 0.005 95);
  --foreground: oklch(0.96 0.01 95);
  --ink: oklch(0.96 0.01 95);
  --card: oklch(0.17 0.005 95);
  --card-foreground: oklch(0.96 0.01 95);
  --primary: oklch(0.88 0.22 125);
  --primary-foreground: oklch(0.12 0.01 95);
  --secondary: oklch(0.22 0.005 95);
  --muted: oklch(0.2 0.005 95);
  --muted-foreground: oklch(0.65 0.01 95);
  --accent: oklch(0.88 0.22 125);
  --border: oklch(1 0 0 / 0.08);
  --input: oklch(1 0 0 / 0.1);
  --ring: oklch(0.88 0.22 125);
  --shadow-card: 0 1px 2px oklch(0 0 0 / 0.3), 0 20px 50px -20px oklch(0 0 0 / 0.5);
}

/* ============= BASE ============= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--primary); color: var(--primary-foreground); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

.container-page { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 768px) { .container-page { padding-inline: 2rem; } }

/* ============= HEADER ============= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--background) 80%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.site-logo .mark { width: 32px; height: 32px; border-radius: 9px; background: var(--gradient-lime); display: inline-flex; align-items: center; justify-content: center; color: var(--primary-foreground); font-weight: 800; box-shadow: var(--shadow-glow); }
.main-nav { display: none; gap: 2rem; }
@media (min-width: 768px) { .main-nav { display: flex; } }
.main-nav a { font-size: .9rem; font-weight: 500; opacity: .8; position: relative; }
.main-nav a:hover, .main-nav a.current-menu-item { opacity: 1; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.22,1,.36,1); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 999px; background: var(--card); cursor: pointer; color: inherit; transition: all .25s; }
.icon-btn:hover { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.menu-toggle { display: inline-flex; }
@media (min-width: 768px) { .menu-toggle { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--background); }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; padding: .5rem 0; margin: 0; }
.mobile-nav a { display: block; padding: .9rem 1.25rem; }

/* ============= HERO ============= */
.hero { background: var(--gradient-hero); color: #fff; padding: 6rem 0 5rem; position: relative; overflow: hidden; }
.hero .eyebrow { display: inline-block; padding: .35rem .8rem; background: var(--primary); color: var(--primary-foreground); border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { color: #fff; margin-top: 1.2rem; max-width: 18ch; text-wrap: balance; }
.hero p { color: rgba(255,255,255,.75); max-width: 60ch; font-size: 1.15rem; }
.hero .cta { display: inline-flex; gap: .9rem; margin-top: 2rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: all .25s; cursor: pointer; border: 0; font-family: inherit; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }

/* ============= ARTICLE GRID ============= */
.section { padding: 5rem 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 2.5rem; gap: 2rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { color: var(--muted-foreground); margin: 0; max-width: 52ch; }

.articles-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .articles-grid { grid-template-columns: repeat(3, 1fr); } }

.article-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.article-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.article-card:hover .thumb img { transform: scale(1.04); }
.article-card .body { padding: 1.4rem; display: flex; flex-direction: column; gap: .65rem; flex: 1; }
.tag { display: inline-block; align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-foreground); background: var(--primary); padding: .3rem .65rem; border-radius: 999px; }
.article-card h3 { margin: 0; font-size: 1.25rem; }
.article-card .excerpt { color: var(--muted-foreground); font-size: .95rem; margin: 0; }
.article-meta { display: flex; gap: 1rem; color: var(--muted-foreground); font-size: .8rem; margin-top: auto; padding-top: .8rem; }

/* ============= SINGLE ============= */
.article-hero { padding: 4rem 0 2rem; text-align: center; }
.article-hero .tag { margin-bottom: 1.5rem; }
.article-hero h1 { max-width: 22ch; margin-inline: auto; text-wrap: balance; }
.article-hero .lead { color: var(--muted-foreground); font-size: 1.2rem; max-width: 60ch; margin: 1.4rem auto 0; text-wrap: pretty; }
.article-hero .meta { margin-top: 2rem; color: var(--muted-foreground); font-size: .9rem; display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.article-cover { border-radius: 1.5rem; overflow: hidden; margin: 2rem 0; }
.article-content { max-width: 720px; margin-inline: auto; font-size: 1.1rem; line-height: 1.8; }
.article-content p { margin-bottom: 1.4em; }
.article-content h2 { margin-top: 2.4em; }
.article-content blockquote { border-left: 3px solid var(--primary); padding: .5em 1.2em; font-style: italic; color: var(--muted-foreground); margin: 1.5em 0; }
.article-content img { border-radius: 1rem; margin: 2rem 0; }
.article-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.article-content code { background: var(--muted); padding: .15em .4em; border-radius: 4px; font-size: .9em; }
.article-content pre { background: var(--ink); color: #f8f8f8; padding: 1.2rem; border-radius: 12px; overflow-x: auto; }

.author-card { max-width: 720px; margin: 3rem auto 0; padding: 2rem; border: 1px solid var(--border); border-radius: 1.5rem; background: var(--card); display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.author-card img { width: 96px; height: 96px; border-radius: 1rem; object-fit: cover; }
.author-card small { color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 600; }
.author-card h4 { margin: .25rem 0 .5rem; font-family: var(--font-display); font-size: 1.2rem; }
.author-card p { color: var(--muted-foreground); margin: 0; font-size: .95rem; }

/* ============= NEWSLETTER ============= */
.newsletter { padding: 5rem 0; background: var(--secondary); }
.newsletter .box { background: var(--card); border: 1px solid var(--border); border-radius: 2rem; padding: 3rem; text-align: center; box-shadow: var(--shadow-card); position: relative; overflow: hidden; }
.newsletter .box::before { content: ""; position: absolute; inset: -50% -10% auto auto; width: 60%; height: 200%; background: var(--gradient-lime); opacity: .12; filter: blur(60px); pointer-events: none; }
.newsletter h2 { max-width: 22ch; margin: 0 auto .8rem; }
.newsletter p { color: var(--muted-foreground); max-width: 52ch; margin: 0 auto 2rem; }
.newsletter form { display: flex; gap: .6rem; max-width: 460px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter input[type="email"] { flex: 1; min-width: 220px; padding: .9rem 1.2rem; border-radius: 999px; border: 1px solid var(--border); background: var(--background); color: var(--foreground); font: inherit; }
.newsletter input[type="email"]:focus { outline: 2px solid var(--ring); outline-offset: 2px; }

/* ============= CATEGORIES ============= */
.cats-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cats-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-card { padding: 1.8rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); transition: all .3s; }
.cat-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.cat-card h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.cat-card p { color: var(--muted-foreground); font-size: .9rem; margin: 0; }
.cat-card .count { display: inline-block; margin-top: .8rem; font-size: .75rem; color: var(--primary); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* ============= ABOUT ============= */
.about-hero { padding: 6rem 0 3rem; }
.about-grid { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-grid img { border-radius: 1.5rem; box-shadow: var(--shadow-card); }

/* ============= FOOTER ============= */
.site-footer { border-top: 1px solid var(--border); background: var(--card); padding-top: 4rem; margin-top: 4rem; }
.footer-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; padding-bottom: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-grid a { color: var(--muted-foreground); font-size: .9rem; }
.footer-grid a:hover { color: var(--foreground); }
.footer-bar { border-top: 1px solid var(--border); padding: 1.5rem 0; font-size: .8rem; color: var(--muted-foreground); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.socials { display: flex; gap: .5rem; margin-top: 1.2rem; }

/* ============= PAGINATION ============= */
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 3rem; }
.pagination .page-numbers { padding: .55rem .9rem; border: 1px solid var(--border); border-radius: 10px; font-size: .9rem; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

/* ============= COMMENTS ============= */
.comments-area { max-width: 720px; margin: 3rem auto 0; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 1.2rem; border: 1px solid var(--border); border-radius: 1rem; margin-bottom: 1rem; background: var(--card); }
.comment-form input, .comment-form textarea { width: 100%; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--border); background: var(--background); color: var(--foreground); font: inherit; margin-bottom: .8rem; }
.comment-form textarea { min-height: 120px; }
.comment-form .submit { background: var(--primary); color: var(--primary-foreground); border: 0; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; cursor: pointer; }
