/*
Theme Name: Zellae Editorial
Theme URI: https://zellae.com
Author: Zellae Editorial Studio
Author URI: https://zellae.com/about/
Description: Ultra-fast, luxury women's beauty, fashion, and self-care WordPress Block Theme modeled on Tier-1 editorial publications (Allure, Vogue, Who What Wear, NewBeauty). Built for Nails, Makeup, Hair, Fashion, and Hygiene with crisp magazine typography, rich category hubs, high-contrast affiliate styling, Rank Math FAQ/TOC support, and Core Web Vitals speed.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zellae-editorial
Tags: editorial, magazine, beauty, fashion, block-themes, full-site-editing, clean, fast
*/

:root {
  --zellae-white: #ffffff;
  --zellae-surface: #faf4f1;
  --zellae-surface-alt: #f3eae5;
  --zellae-border: #e7ddd8;
  --zellae-ink: #1c1619;
  --zellae-muted: #5e5459;
  --zellae-accent: #9e3b5a;
  --zellae-accent-dark: #7a2943;
  --zellae-gold: #c79f4b;
  --zellae-noir: #1c1419;
  --zellae-radius: 10px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--zellae-white);
  color: var(--zellae-ink);
  overflow-x: hidden;
}

/* --- Sticky Editorial Masthead --- */
.zellae-site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--zellae-border);
}

.zellae-topbar {
  background: var(--zellae-noir);
  color: #f6ede9;
  font-family: var(--wp--preset--font-family--ui);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.45rem 1rem;
}

.zellae-main-nav .wp-block-navigation-item__content {
  font-family: var(--wp--preset--font-family--ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--zellae-ink);
  padding: 0.35rem 0.15rem;
  position: relative;
  text-decoration: none;
  transition: color 0.18s ease;
}

.zellae-main-nav .wp-block-navigation-item__content:hover,
.zellae-main-nav .current-menu-item > .wp-block-navigation-item__content {
  color: var(--zellae-accent);
}

.zellae-main-nav .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--zellae-accent);
  transition: width 0.2s ease;
}

.zellae-main-nav .wp-block-navigation-item__content:hover::after {
  width: 100%;
}

/* --- Pillar Quick-Bar Pills --- */
.zellae-pillar-bar {
  background: var(--zellae-surface);
  border-top: 1px solid var(--zellae-border);
  border-bottom: 1px solid var(--zellae-border);
}

.zellae-pillar-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 0;
}

.zellae-pillar-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--zellae-border);
  background: var(--zellae-white);
  color: var(--zellae-ink);
  font-family: var(--wp--preset--font-family--ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.18s ease;
}

.zellae-pillar-links a:hover {
  background: var(--zellae-accent);
  border-color: var(--zellae-accent);
  color: var(--zellae-white);
  transform: translateY(-1px);
}

/* --- Editorial Section Headers --- */
.zellae-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 2px solid var(--zellae-ink);
  padding-top: 0.9rem;
  margin-bottom: 1.5rem;
}

.zellae-section-kicker {
  font-family: var(--wp--preset--font-family--ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zellae-accent);
  margin: 0 0 0.25rem;
}

.zellae-view-all {
  font-family: var(--wp--preset--font-family--ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zellae-accent);
  text-decoration: none;
  white-space: nowrap;
}

.zellae-view-all:hover {
  color: var(--zellae-ink);
  text-decoration: underline;
}

/* --- Editorial Cards & Image Ratios --- */
.zellae-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.zellae-card .wp-block-post-featured-image {
  overflow: hidden;
  border-radius: var(--zellae-radius);
  background: var(--zellae-surface);
  margin-bottom: 0.85rem;
}

.zellae-card .wp-block-post-featured-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.zellae-hero-lead .wp-block-post-featured-image img {
  aspect-ratio: 16 / 9;
}

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

.zellae-card .wp-block-post-title {
  margin-top: 0.3rem;
  margin-bottom: 0.45rem;
}

.zellae-card .wp-block-post-title a {
  color: var(--zellae-ink);
  text-decoration: none;
  transition: color 0.16s ease;
}

.zellae-card .wp-block-post-title a:hover {
  color: var(--zellae-accent);
}

.zellae-card .wp-block-post-excerpt__excerpt {
  color: var(--zellae-muted);
  font-size: 0.96rem;
  line-height: 1.55;
  margin: 0.25rem 0 0;
}

/* --- Single Article Polish (Allure / Harper's Bazaar 700px Focus) --- */
.zellae-article-header {
  border-bottom: 1px solid var(--zellae-border);
  padding-bottom: 1.35rem;
  margin-bottom: 1.5rem;
}

.zellae-breadcrumbs {
  font-family: var(--wp--preset--font-family--ui);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zellae-muted);
  margin-bottom: 0.85rem;
}

.zellae-breadcrumbs a {
  color: var(--zellae-accent);
  text-decoration: none;
}

.zellae-breadcrumbs a:hover {
  text-decoration: underline;
}

.zellae-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.76rem;
  color: var(--zellae-muted);
  margin-top: 0.9rem;
}

.zellae-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--zellae-surface);
  border: 1px solid var(--zellae-border);
  color: var(--zellae-ink);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-family: var(--wp--preset--font-family--ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.zellae-disclosure-bar {
  margin-top: 0.95rem;
  padding: 0.6rem 0.9rem;
  background: var(--zellae-surface);
  border-radius: 6px;
  font-family: var(--wp--preset--font-family--ui);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--zellae-muted);
  font-style: italic;
}

.zellae-disclosure-bar a {
  color: var(--zellae-accent);
}

.zellae-hero-figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* --- Article Body Readability & Media --- */
.entry-content p {
  margin-bottom: 1.3rem;
}

.entry-content h2 {
  margin-top: 2.6rem;
  margin-bottom: 0.95rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--zellae-border);
}

.entry-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--zellae-ink);
}

.entry-content a {
  color: var(--zellae-accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  color: var(--zellae-accent-dark);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4rem;
  margin-bottom: 1.4rem;
}

.entry-content li {
  margin-bottom: 0.65rem;
}

.entry-content .wp-block-image {
  margin: 1.75rem auto;
}

.entry-content .wp-block-image img {
  border-radius: 10px;
  max-height: 760px;
  width: auto;
  max-width: 100%;
  height: auto;
  box-shadow: 0 10px 30px rgba(28, 22, 25, 0.06);
}

/* --- Editorial Quick-Compare Tables --- */
.entry-content .wp-block-table {
  margin: 1.85rem 0;
  overflow-x: auto;
  border: 1px solid var(--zellae-border);
  border-radius: 10px;
}

.entry-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--wp--preset--font-family--ui);
  font-size: 0.92rem;
  line-height: 1.5;
}

.entry-content .wp-block-table thead {
  background: var(--zellae-surface);
}

.entry-content .wp-block-table th {
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--zellae-ink);
  padding: 0.9rem 1rem;
  border-bottom: 2px solid var(--zellae-ink);
}

.entry-content .wp-block-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--zellae-border);
  vertical-align: top;
}

.entry-content .wp-block-table tbody tr:nth-child(even) {
  background: #fdfbf9;
}

/* --- Quick Verdict / Blockquote --- */
.entry-content .wp-block-quote {
  margin: 1.75rem 0;
  font-size: 1.04rem;
  line-height: 1.6;
}

.entry-content .wp-block-quote p:last-child {
  margin-bottom: 0;
}

/* --- High-Contrast Commerce CTA Buttons --- */
.zellae-shop-btn a,
a.zellae-shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.5rem;
  background: var(--zellae-ink);
  color: var(--zellae-white) !important;
  border-radius: 999px;
  font-family: var(--wp--preset--font-family--ui);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.18s ease, transform 0.15s ease;
}

.zellae-shop-btn a:hover,
a.zellae-shop-btn:hover {
  background: var(--zellae-accent);
  transform: translateY(-1px);
}

/* --- Rank Math Native FAQ Block Styling --- */
.wp-block-rank-math-faq-block {
  margin: 1.5rem 0 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.wp-block-rank-math-faq-block .rank-math-faq-item {
  background: var(--zellae-surface);
  border: 1px solid var(--zellae-border);
  border-radius: 10px;
  padding: 1.15rem 1.35rem;
}

.wp-block-rank-math-faq-block .rank-math-question {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.18rem;
  font-weight: 600;
  margin: 0 0 0.45rem !important;
  padding-top: 0 !important;
  border-top: 0 !important;
  color: var(--zellae-ink);
}

.wp-block-rank-math-faq-block .rank-math-answer {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--zellae-muted);
}

/* --- Rank Math Mandatory Bottom Table of Contents Styling --- */
.wp-block-rank-math-toc-block {
  margin: 2.5rem 0 1.5rem;
  padding: 1.5rem 1.65rem;
  background: var(--zellae-surface);
  border: 1px solid var(--zellae-border);
  border-top: 3px solid var(--zellae-accent);
  border-radius: 10px;
}

.wp-block-rank-math-toc-block::before {
  content: "IN THIS GUIDE";
  display: block;
  font-family: var(--wp--preset--font-family--ui);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--zellae-accent);
  margin-bottom: 0.75rem;
}

.wp-block-rank-math-toc-block nav ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.wp-block-rank-math-toc-block nav > ul > li {
  margin-bottom: 0.45rem;
  font-family: var(--wp--preset--font-family--ui);
  font-size: 0.92rem;
  font-weight: 500;
}

.wp-block-rank-math-toc-block nav ul ul {
  padding-left: 1.15rem;
  margin-top: 0.3rem;
}

.wp-block-rank-math-toc-block nav ul ul li {
  font-size: 0.86rem;
  font-weight: 400;
  margin-bottom: 0.28rem;
}

.wp-block-rank-math-toc-block a {
  color: var(--zellae-ink);
  text-decoration: none;
}

.wp-block-rank-math-toc-block a:hover {
  color: var(--zellae-accent);
  text-decoration: underline;
}

/* --- Why Trust Zellae Authority Card --- */
.zellae-trust-card {
  background: var(--zellae-surface);
  border: 1px solid var(--zellae-border);
  border-radius: 12px;
  padding: 1.75rem;
  margin-top: 2.5rem;
}

/* --- Archive Category Hub Banner --- */
.zellae-archive-banner {
  background: var(--zellae-surface);
  border-bottom: 1px solid var(--zellae-border);
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.zellae-archive-banner .wp-block-term-description {
  max-width: 720px;
  color: var(--zellae-muted);
  font-size: 1.06rem;
  line-height: 1.62;
}

/* --- Editorial Noir Footer --- */
.zellae-site-footer {
  background: var(--zellae-noir);
  color: #e8deda;
  margin-top: 4rem;
}

.zellae-site-footer a {
  color: #f6ede9;
  text-decoration: none;
}

.zellae-site-footer a:hover {
  color: #e7a0b6;
  text-decoration: underline;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 781px) {
  .zellae-section-head {
    flex-direction: column;
    gap: 0.35rem;
  }

  .entry-content .wp-block-image img {
    max-height: 540px;
  }
}
