/*
Theme Name: Arte Mística Editorial
Theme URI: https://artemistica.net/
Author: SofIA Labs
Author URI: https://artemistica.net/
Description: Tema editorial premium para blogs de espiritualidade moderna, esoterismo, simbolismo e autoconhecimento. Leve, responsivo, otimizado para SEO e preparado para AdSense.
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: artemistica-editorial
Tags: blog, custom-logo, custom-menu, featured-images, one-column, two-columns, threaded-comments, translation-ready
*/

:root {
  --am-night: #0d0a16;
  --am-abyss: #171126;
  --am-card: #211936;
  --am-card-soft: #2b2144;
  --am-ivory: #f7efe2;
  --am-lavender: #bdb2d0;
  --am-muted: #8f86a6;
  --am-gold: #d8a84f;
  --am-violet: #8b5cf6;
  --am-sage: #8fb996;
  --am-rose: #c46a7a;
  --am-border: rgba(216, 168, 79, 0.2);
  --am-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  --am-radius-lg: 28px;
  --am-radius-md: 18px;
  --am-radius-sm: 12px;
  --am-max: 1180px;
  --am-reading: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(139, 92, 246, 0.24), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(216, 168, 79, 0.14), transparent 24%),
    linear-gradient(180deg, var(--am-night), #120d1f 40%, #0d0a16);
  color: var(--am-ivory);
  line-height: 1.68;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(247, 239, 226, 0.17) 1px, transparent 1px),
    linear-gradient(115deg, transparent 0 48%, rgba(216, 168, 79, 0.04) 49%, transparent 50% 100%);
  background-size: 56px 56px, 100% 100%;
  opacity: 0.28;
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--am-gold); }

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

button, input, textarea, select { font: inherit; }

.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;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  left: 16px;
  top: 16px;
  width: auto;
  background: var(--am-gold);
  color: #171126;
  padding: 10px 14px;
  z-index: 9999;
  border-radius: 10px;
}

.am-container {
  width: min(var(--am-max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(13, 10, 22, 0.84);
  border-bottom: 1px solid var(--am-border);
}

.admin-bar .site-header { top: 32px; }

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.custom-logo-link img {
  max-height: 52px;
  width: auto;
}

.logo-orb {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ffe6a1, var(--am-gold) 44%, #7c4a15 100%);
  color: #171126;
  box-shadow: 0 0 30px rgba(216, 168, 79, 0.34);
  font-size: 1.35rem;
}

.site-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.55rem, 2.4vw, 2.3rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.site-title a { color: var(--am-ivory); }

.site-description {
  margin: 3px 0 0;
  color: var(--am-lavender);
  font-size: 0.78rem;
}

.primary-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

.primary-menu, .primary-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-menu a {
  display: block;
  color: var(--am-lavender);
  font-weight: 700;
  font-size: 0.94rem;
  padding: 10px 12px;
  border-radius: 999px;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  color: var(--am-ivory);
  background: rgba(216, 168, 79, 0.11);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.am-icon-button,
.menu-toggle {
  border: 1px solid var(--am-border);
  background: rgba(247, 239, 226, 0.05);
  color: var(--am-ivory);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle { display: none; }

.am-button,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--am-gold), #f4d38a);
  color: #171126;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(216, 168, 79, 0.2);
}

.am-button:hover,
.wp-block-button__link:hover { color: #171126; transform: translateY(-1px); }

.am-button.is-secondary {
  color: var(--am-ivory);
  background: rgba(247, 239, 226, 0.06);
  border-color: var(--am-border);
  box-shadow: none;
}

.am-search-panel {
  display: none;
  border-top: 1px solid var(--am-border);
  padding: 14px 0 18px;
}

.am-search-panel.is-open { display: block; }

.search-form {
  display: flex;
  gap: 10px;
}

.search-field,
input[type="text"], input[type="search"], input[type="email"], textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(247, 239, 226, 0.13);
  border-radius: 999px;
  color: var(--am-ivory);
  background: rgba(247, 239, 226, 0.06);
  padding: 0 16px;
  outline: none;
}

textarea { border-radius: 18px; padding: 14px 16px; }

.search-field:focus,
input:focus,
textarea:focus {
  border-color: rgba(216, 168, 79, 0.66);
  box-shadow: 0 0 0 4px rgba(216, 168, 79, 0.08);
}

.site-main { padding-block: 34px 70px; }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 8vw, 96px) 0 42px;
}

.hero::before {
  content: "☾";
  position: absolute;
  right: 9%;
  top: 14%;
  font-size: clamp(8rem, 16vw, 18rem);
  line-height: 1;
  color: rgba(216, 168, 79, 0.06);
  transform: rotate(-18deg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  position: relative;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-lg);
  background:
    linear-gradient(135deg, rgba(33, 25, 54, 0.82), rgba(23, 17, 38, 0.78)),
    radial-gradient(circle at 84% 16%, rgba(216, 168, 79, 0.18), transparent 30%);
  box-shadow: var(--am-shadow);
}

.hero-kicker,
.section-kicker,
.entry-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--am-gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.hero-title,
.page-title,
.entry-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  margin: 0;
  color: var(--am-ivory);
  line-height: 0.97;
  font-weight: 700;
}

.hero-title { font-size: clamp(3.3rem, 8vw, 6.8rem); max-width: 760px; }
.page-title { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.entry-title { font-size: clamp(2.35rem, 5vw, 4.8rem); }

.hero-subtitle,
.archive-description,
.entry-subtitle {
  color: var(--am-lavender);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 740px;
  margin: 20px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-symbol-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 420px;
  padding: 30px;
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-lg);
  background:
    linear-gradient(180deg, rgba(13, 10, 22, 0.18), rgba(13, 10, 22, 0.92)),
    radial-gradient(circle at 50% 38%, rgba(139, 92, 246, 0.32), transparent 25%),
    linear-gradient(135deg, rgba(33, 25, 54, 0.96), rgba(13, 10, 22, 0.96));
  overflow: hidden;
  box-shadow: var(--am-shadow);
}

.hero-symbol-card::before {
  content: "✦";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(216, 168, 79, 0.74);
  font-size: 9rem;
  text-shadow: 0 0 80px rgba(216, 168, 79, 0.4);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(247, 239, 226, 0.14);
  border-radius: 50%;
  inset: 16%;
  transform: rotate(-18deg);
}

.orbit:nth-child(2) { inset: 26%; transform: rotate(25deg); }

.hero-symbol-content {
  position: relative;
  z-index: 2;
}

.hero-symbol-content h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.1rem;
  line-height: 1;
  margin: 0 0 10px;
}

.hero-symbol-content p { color: var(--am-lavender); margin: 0; }

.category-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.category-card,
.post-card,
.widget,
.am-panel,
.entry-card {
  border: 1px solid var(--am-border);
  background: linear-gradient(180deg, rgba(33, 25, 54, 0.9), rgba(23, 17, 38, 0.88));
  border-radius: var(--am-radius-md);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.19);
}

.category-card {
  padding: 22px;
  min-height: 190px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover,
.post-card:hover { transform: translateY(-3px); border-color: rgba(216, 168, 79, 0.42); }

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(216, 168, 79, 0.12);
  color: var(--am-gold);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.category-card h3,
.post-card h3,
.widget-title,
.am-panel h3 {
  margin: 0 0 8px;
  color: var(--am-ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.07;
  font-size: 1.7rem;
}

.category-card p,
.post-card p,
.widget p,
.am-panel p { color: var(--am-lavender); }

.section {
  margin-top: 56px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  margin: 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.post-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.post-card .post-thumbnail {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.38), rgba(216, 168, 79, 0.2));
  overflow: hidden;
}

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

.post-card:hover .post-thumbnail img { transform: scale(1.04); }

.post-card-content { padding: 20px; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--am-muted);
  font-size: 0.86rem;
  margin-bottom: 10px;
}

.post-category {
  color: var(--am-gold);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--am-gold);
  font-weight: 900;
  margin-top: 10px;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 92px;
  margin: 28px 0;
  border: 1px dashed rgba(247, 239, 226, 0.22);
  border-radius: var(--am-radius-md);
  background: rgba(247, 239, 226, 0.035);
  color: rgba(247, 239, 226, 0.48);
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ad-slot.sidebar-ad { min-height: 600px; margin: 0; }
.ad-slot.square-ad { min-height: 250px; }

.study-paths {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.study-path {
  min-height: 120px;
  padding: 16px;
  border: 1px solid rgba(247, 239, 226, 0.11);
  border-radius: 18px;
  background: rgba(247, 239, 226, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--am-ivory);
  font-weight: 800;
}

.study-path span:first-child {
  color: var(--am-gold);
  font-size: 1.3rem;
}

.home-layout,
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.sidebar {
  display: grid;
  gap: 20px;
}

.widget {
  padding: 22px;
}

.widget ul {
  padding-left: 18px;
  margin: 12px 0 0;
}

.widget li { margin: 8px 0; color: var(--am-lavender); }

.newsletter-card {
  background:
    radial-gradient(circle at top right, rgba(216, 168, 79, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(33, 25, 54, 0.98), rgba(23, 17, 38, 0.96));
}

.newsletter-card form { display: grid; gap: 10px; margin-top: 14px; }

.reflection-card {
  padding: clamp(24px, 5vw, 44px);
  border-radius: var(--am-radius-lg);
  border: 1px solid rgba(216, 168, 79, 0.26);
  background:
    linear-gradient(135deg, rgba(216, 168, 79, 0.13), rgba(139, 92, 246, 0.13)),
    rgba(33, 25, 54, 0.92);
}

.reflection-card blockquote {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.18;
}

.reflection-card cite {
  display: block;
  margin-top: 16px;
  color: var(--am-gold);
  font-style: normal;
  font-weight: 800;
}

.entry-header {
  padding: clamp(34px, 7vw, 72px) 0 32px;
}

.breadcrumbs {
  color: var(--am-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.breadcrumbs a { color: var(--am-lavender); }

.entry-meta {
  color: var(--am-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 20px;
}

.featured-image {
  margin: 10px auto 30px;
  border-radius: var(--am-radius-lg);
  overflow: hidden;
  border: 1px solid var(--am-border);
  box-shadow: var(--am-shadow);
}

.article-shell {
  max-width: var(--am-reading);
}

.entry-content {
  color: #f2e8da;
  font-size: 1.075rem;
}

.entry-content p { margin: 0 0 1.25em; }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--am-ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.1;
  margin: 1.7em 0 0.55em;
}

.entry-content h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.entry-content h3 { font-size: clamp(1.5rem, 3vw, 2.05rem); }

.entry-content a { color: var(--am-gold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.entry-content ul,
.entry-content ol { padding-left: 1.3em; margin-bottom: 1.35em; }

.entry-content li { margin: 0.48em 0; }

.entry-content blockquote {
  margin: 1.8em 0;
  padding: 22px 24px;
  border-left: 4px solid var(--am-gold);
  background: rgba(216, 168, 79, 0.08);
  border-radius: 0 18px 18px 0;
  color: var(--am-ivory);
}

.article-essence,
.am-special-block {
  margin: 28px 0;
  padding: 22px;
  border-radius: var(--am-radius-md);
  border: 1px solid rgba(216, 168, 79, 0.3);
  background:
    radial-gradient(circle at 90% 0%, rgba(216, 168, 79, 0.16), transparent 28%),
    rgba(33, 25, 54, 0.94);
}

.article-essence h2,
.am-special-block h2,
.am-special-block h3 {
  margin-top: 0;
  font-size: 1.65rem;
}

.toc-box {
  margin: 28px 0;
  padding: 20px;
  border-radius: var(--am-radius-md);
  border: 1px solid rgba(247, 239, 226, 0.12);
  background: rgba(247, 239, 226, 0.04);
}

.toc-box summary {
  color: var(--am-gold);
  cursor: pointer;
  font-weight: 900;
}

.post-navigation,
.comments-area,
.related-posts {
  margin-top: 42px;
}

.related-posts .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 32px;
}

.page-numbers,
.nav-links a,
.nav-links span {
  display: inline-grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  padding: 8px 12px;
  border: 1px solid var(--am-border);
  border-radius: 999px;
  background: rgba(247, 239, 226, 0.04);
}

.page-numbers.current,
.nav-links .current { background: var(--am-gold); color: var(--am-abyss); }

.site-footer {
  border-top: 1px solid var(--am-border);
  background: rgba(13, 10, 22, 0.92);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 28px;
}

.footer-title {
  margin: 0 0 12px;
  color: var(--am-gold);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 8px 0; }
.footer-links a { color: var(--am-lavender); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--am-muted);
  border-top: 1px solid rgba(247, 239, 226, 0.08);
  margin-top: 34px;
  padding-top: 20px;
  font-size: 0.9rem;
}

.not-found-card,
.page-header-card {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-lg);
  background: rgba(33, 25, 54, 0.88);
  margin-bottom: 32px;
}

.comment-form input:not([type="submit"]),
.comment-form textarea { width: 100%; }

@media (max-width: 1040px) {
  .hero-grid,
  .home-layout,
  .content-layout { grid-template-columns: 1fr; }
  .hero-symbol-card { min-height: 320px; }
  .study-paths { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-slot.sidebar-ad { min-height: 250px; }
}

@media (max-width: 860px) {
  .admin-bar .site-header { top: 0; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .primary-navigation {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    border: 1px solid var(--am-border);
    border-radius: 22px;
    background: rgba(23, 17, 38, 0.98);
    box-shadow: var(--am-shadow);
    padding: 12px;
  }
  .primary-navigation.is-open { display: block; }
  .primary-menu { display: grid; gap: 4px; }
  .header-cta { display: none; }
  .posts-grid,
  .category-cards,
  .related-posts .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .am-container { width: min(100% - 22px, var(--am-max)); }
  .site-description { display: none; }
  .hero-copy { padding: 26px; }
  .hero-title { font-size: clamp(2.8rem, 17vw, 4.2rem); }
  .search-form { flex-direction: column; }
  .category-cards,
  .study-paths,
  .sidebar,
  .footer-grid { grid-template-columns: 1fr; }
  .section-header { display: block; }
  .footer-bottom { display: block; }
  .entry-content { font-size: 1.02rem; }
}
