/*
Theme Name: A ao Cubo Design Blog
Theme URI: https://www.aaocubodesign.com.br/
Author: A ao Cubo Design
Author URI: https://www.aaocubodesign.com.br/
Description: Tema WordPress moderno do blog A ao Cubo Design - identidade visual teal/turquesa, tipografia Space Grotesk + DM Sans, design clean e responsivo para conteúdo de Design, Branding e UI/UX.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aaocubo
Tags: blog, one-column, two-columns, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

:root {
  --background: #ffffff;
  --foreground: #181f25;
  --muted: #f4f6f8;
  --muted-foreground: #6b7785;
  --border: #e6eaef;
  --primary: #00bd96;       /* hsl(168 100% 37%) */
  --primary-glow: #18d3b0;  /* hsl(175 85% 45%) */
  --primary-foreground: #ffffff;
  --secondary: #e6f7f2;
  --secondary-foreground: #006b54;
  --accent: #e63b7a;
  --radius: 0.75rem;
  --gradient-brand: linear-gradient(135deg, #00bd96, #18d3b0);
  --gradient-subtle: linear-gradient(135deg, #e6f7f2, #f4f6f8);
  --shadow-card: 0 4px 24px -4px rgba(0,189,150,0.08);
  --shadow-card-hover: 0 12px 32px -8px rgba(0,189,150,0.18);
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-glow); }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); color: var(--foreground); line-height: 1.2; margin: 0 0 .5em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
}
.site-branding { display: flex; align-items: center; gap: .75rem; }
.site-logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--gradient-brand);
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-heading); font-weight: 700;
  box-shadow: var(--shadow-card);
}
.site-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; margin: 0; }
.site-title a { color: var(--foreground); }
.site-tagline { font-size: .8rem; color: var(--muted-foreground); margin: 0; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.main-nav a { color: var(--foreground); font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: var(--primary); }
.btn-cta {
  display: inline-block; padding: .65rem 1.2rem; border-radius: 999px;
  background: var(--gradient-brand); color: #fff !important; font-weight: 600; font-size: .9rem;
  box-shadow: var(--shadow-card);
}
.btn-cta:hover { box-shadow: var(--shadow-card-hover); }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--foreground); margin: 5px 0; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 1rem 1.25rem; gap: 1rem; }
}

/* Hero */
.blog-hero {
  background: var(--gradient-subtle);
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.blog-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(0,189,150,.12), transparent 70%);
  pointer-events: none;
}
.blog-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -.02em; }
.blog-hero h1 .gradient {
  background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.blog-hero p { color: var(--muted-foreground); max-width: 640px; margin: 1rem auto 0; font-size: 1.1rem; }

/* Category filter */
.category-filter {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
  padding: 2rem 0;
}
.category-filter a {
  padding: .5rem 1rem; border-radius: 999px; font-size: .875rem; font-weight: 500;
  background: var(--secondary); color: var(--secondary-foreground);
  transition: all .2s;
}
.category-filter a.active, .category-filter a:hover {
  background: var(--gradient-brand); color: #fff;
  box-shadow: var(--shadow-card);
}

/* Posts grid */
.posts-section { padding: 1rem 0 4rem; }
.posts-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.post-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-card); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.post-card-image { aspect-ratio: 16/10; background: var(--gradient-subtle); overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card-image img { transform: scale(1.04); }
.post-card-body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.post-meta { display: flex; align-items: center; gap: .75rem; font-size: .8rem; color: var(--muted-foreground); }
.post-category {
  display: inline-block; padding: .25rem .65rem; border-radius: 999px;
  background: var(--secondary); color: var(--secondary-foreground); font-weight: 600; font-size: .75rem;
}
.post-card h2 { font-size: 1.2rem; line-height: 1.3; margin: 0; }
.post-card h2 a { color: var(--foreground); }
.post-card h2 a:hover { color: var(--primary); }
.post-card .excerpt { color: var(--muted-foreground); font-size: .95rem; margin: 0; flex: 1; }
.read-more { font-weight: 600; color: var(--primary); font-size: .9rem; margin-top: auto; display: inline-flex; align-items: center; gap: .35rem; }
.read-more::after { content: "→"; transition: transform .2s; }
.read-more:hover::after { transform: translateX(4px); }

/* Featured post */
.featured-post { padding: 3rem 0 1rem; }
.featured-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-card);
}
.featured-card .post-card-image { aspect-ratio: auto; height: 100%; min-height: 320px; }
.featured-card .post-card-body { padding: 2.5rem; gap: 1rem; }
.featured-badge {
  display: inline-block; padding: .3rem .75rem; border-radius: 999px;
  background: var(--gradient-brand); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  width: fit-content;
}
.featured-card h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
@media (max-width: 800px) { .featured-card { grid-template-columns: 1fr; } .featured-card .post-card-body { padding: 1.5rem; } }

/* Single post */
.single-post-header {
  background: var(--gradient-subtle);
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}
.single-post-header h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); max-width: 820px; }
.single-post-header .post-meta { margin-top: 1rem; }
.single-thumb {
  max-width: 1000px; margin: -1rem auto 2rem;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card);
}
.single-content {
  max-width: 760px; margin: 2rem auto; padding: 0 1.25rem; font-size: 1.05rem;
}
.single-content h2 { font-size: 1.75rem; margin-top: 2.25rem; }
.single-content h3 { font-size: 1.35rem; margin-top: 2rem; }
.single-content p { margin: 0 0 1.25rem; }
.single-content ul, .single-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.single-content blockquote {
  border-left: 4px solid var(--primary);
  padding: .5rem 1rem; margin: 1.5rem 0; background: var(--secondary);
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--secondary-foreground);
}
.single-content code { background: var(--muted); padding: .15rem .4rem; border-radius: 4px; font-size: .9em; }
.single-content pre { background: #181f25; color: #f4f6f8; padding: 1rem; border-radius: var(--radius); overflow-x: auto; }
.single-content img { border-radius: var(--radius); margin: 1.5rem 0; }

.cta-box {
  margin: 3rem auto; max-width: 760px; text-align: center;
  background: var(--gradient-brand); color: #fff; border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
}
.cta-box h3 { color: #fff; font-size: 1.5rem; }
.cta-box p { opacity: .92; margin: .5rem 0 1.25rem; }
.cta-box a {
  display: inline-block; padding: .8rem 1.5rem; border-radius: 999px;
  background: #fff; color: var(--primary) !important; font-weight: 700;
}

/* Pagination */
.pagination { display: flex; justify-content: center; gap: .5rem; padding: 2rem 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: .5rem .9rem; border-radius: .5rem; border: 1px solid var(--border);
  color: var(--foreground); font-weight: 500;
}
.pagination .current { background: var(--gradient-brand); color: #fff; border-color: transparent; }

/* Footer */
.site-footer {
  background: #0f1418; color: #cfd6dd; padding: 3rem 0 1.5rem; margin-top: 3rem;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: #cfd6dd; }
.site-footer a:hover { color: var(--primary-glow); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom {
  border-top: 1px solid #1f262c; margin-top: 2rem; padding-top: 1.25rem;
  text-align: center; font-size: .85rem; color: #8a96a3;
}

/* Comments */
.comments-area { max-width: 760px; margin: 3rem auto; padding: 0 1.25rem; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1rem; }

/* Search */
.search-form { display: flex; gap: .5rem; }
.search-form input[type="search"] {
  flex: 1; padding: .6rem .9rem; border: 1px solid var(--border); border-radius: .5rem;
  font-family: inherit; font-size: .95rem;
}
.search-form button {
  padding: .6rem 1.1rem; background: var(--gradient-brand); color: #fff;
  border: 0; border-radius: .5rem; font-weight: 600; cursor: pointer;
}

.no-results { text-align: center; padding: 3rem 1rem; color: var(--muted-foreground); }

.screen-reader-text {
  position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden;
}
