/*
Theme Name: Tökéletes Igen
Theme URI: https://tokeletesigen.hu
Author: Bettina
Description: Romantic rose gold block theme for The Perfect Yes — an English-language wedding blog. Built for readability, Core Web Vitals and Mediavine-ready ad placements.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tokeletesigen
Tags: blog, one-column, custom-colors, custom-menu, editor-style, featured-images, full-site-editing, block-patterns
*/

/* ===================================================================
   Tökéletes Igen — theme CSS on top of theme.json tokens
   =================================================================== */

/* ----- header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--wp--preset--color--base) 90%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wp--preset--color--line);
}
.site-header .wp-block-site-title a {
  background: var(--wp--preset--gradient--rose-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}
.wp-block-site-tagline {
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
}
.main-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.main-nav a:hover {
  color: var(--wp--preset--color--rose-deep);
}

/* ----- chips (post terms, category labels) ----- */
.chip-terms a,
.chip {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--wp--preset--color--rose-deep);
  border: 1px solid var(--wp--preset--color--rose);
  border-radius: 999px;
  padding: 4px 13px;
  text-decoration: none;
}
.chip-terms a:hover {
  background: var(--wp--preset--color--blush);
}

/* ----- hero ----- */
.hero-query .wp-block-post-title {
  font-size: var(--wp--preset--font-size--xx-large);
  line-height: 1.12;
  margin-top: 14px;
}
.hero-query .wp-block-post-title a {
  color: var(--wp--preset--color--contrast);
}
.hero-query .wp-block-post-excerpt {
  color: var(--wp--preset--color--muted);
}
.hero-query .wp-block-post-featured-image img {
  border-radius: 3px;
}

/* ----- post card grid (Query Loop with .post-grid) ----- */
.post-grid .wp-block-post {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-grid .wp-block-post-featured-image {
  margin: 0;
}
.post-grid .wp-block-post-featured-image img {
  border-radius: 0;
  display: block;
}
.post-grid .wp-block-post-terms,
.post-grid .wp-block-post-title,
.post-grid .wp-block-post-excerpt,
.post-grid .wp-block-post-date {
  padding-left: 20px;
  padding-right: 20px;
}
.post-grid .wp-block-post-terms {
  padding-top: 18px;
}
.post-grid .wp-block-post-title {
  font-size: 1.22rem;
  line-height: 1.3;
  margin: 10px 0 0;
}
.post-grid .wp-block-post-title a {
  color: var(--wp--preset--color--contrast);
}
.post-grid .wp-block-post-title a:hover {
  color: var(--wp--preset--color--rose-deep);
}
.post-grid .wp-block-post-excerpt {
  font-size: 0.9rem;
  color: var(--wp--preset--color--muted);
  margin: 8px 0 0;
}
.post-grid .wp-block-post-date {
  font-size: 0.69rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
  margin-top: auto;
  padding-top: 12px;
  padding-bottom: 22px;
}
@media (prefers-reduced-motion: no-preference) {
  .post-grid .wp-block-post {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .post-grid .wp-block-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(120, 70, 78, 0.1);
  }
}

/* ----- section heading ----- */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.sec-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--wp--preset--color--line);
}

/* ----- ad slots (Mediavine) -----
   Fixed min-height so the loading ad never shifts content (CLS-safe). */
.ad-slot {
  border: 1px dashed var(--wp--preset--color--line);
  background: var(--wp--preset--color--surface);
  border-radius: 3px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-slot.ad-slot-leader {
  min-height: 100px;
}
.ad-slot.ad-slot-side {
  min-height: 600px;
  position: sticky;
  top: 86px;
}
.ad-slot p {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
  margin: 0;
}

/* ----- newsletter band ----- */
.newsletter {
  background: var(--wp--preset--color--blush);
  border-radius: 3px;
  text-align: center;
}
.kicker {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--wp--preset--color--rose-deep);
}

/* ----- category cards (cover blocks) ----- */
.cat-card {
  border-radius: 3px;
  overflow: hidden;
}
.cat-card h3 a {
  color: #fff;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) {
  .cat-card {
    transition: transform 0.3s ease;
  }
  .cat-card:hover {
    transform: scale(1.02);
  }
}

/* ----- single article ----- */
.art-meta,
.art-meta .wp-block-post-date,
.art-meta .wp-block-post-author-name {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
}
.art-meta .wp-block-post-author-name a {
  color: var(--wp--preset--color--rose-deep);
}
.art-meta .updated-date::before {
  content: "Frissítve: ";
}
.art-meta {
  border-bottom: 1px solid var(--wp--preset--color--line);
  padding-bottom: 22px;
}
.single-article .wp-block-post-featured-image img {
  border-radius: 3px;
}

/* ----- author bio box ----- */
.author-bio {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 3px;
}
.author-bio .wp-block-avatar img {
  border-radius: 50%;
}
.author-bio .wp-block-post-author-biography {
  font-size: 0.9rem;
  color: var(--wp--preset--color--muted);
}

/* ----- sidebar ----- */
.single-sidebar .widget {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 3px;
}
.single-sidebar .widget-title {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
  font-weight: 600;
}
.single-sidebar .wp-block-latest-posts li {
  border-bottom: 1px solid var(--wp--preset--color--line);
  padding: 10px 0;
  font-size: 0.9rem;
}
.single-sidebar .wp-block-latest-posts li:last-child {
  border-bottom: none;
}

/* ----- archive / category head ----- */
.cat-head {
  text-align: center;
}
.cat-head .wp-block-query-title {
  margin-bottom: 14px;
}
.cat-head .wp-block-term-description {
  color: var(--wp--preset--color--muted);
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

/* ----- pagination ----- */
.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
  border: 1px solid var(--wp--preset--color--line);
  padding: 9px 16px;
  border-radius: 2px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
  text-decoration: none;
}
.wp-block-query-pagination .page-numbers.current {
  background: var(--wp--preset--gradient--rose-gold);
  color: #fff;
  border-color: transparent;
}
.wp-block-query-pagination a:hover {
  border-color: var(--wp--preset--color--rose);
  color: var(--wp--preset--color--rose-deep);
}

/* ----- footer ----- */
.site-footer {
  background: var(--wp--preset--color--surface);
  border-top: 1px solid var(--wp--preset--color--line);
}
.site-footer .wp-block-site-title a {
  background: var(--wp--preset--gradient--rose-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}
.site-footer h4 {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
  font-weight: 600;
}
.site-footer p,
.site-footer li {
  font-size: 0.9rem;
  color: var(--wp--preset--color--muted);
}
.site-footer ul {
  list-style: none;
  padding-left: 0;
}
.site-footer li {
  margin-bottom: 9px;
}
.site-footer a {
  color: var(--wp--preset--color--muted);
}
.site-footer a:hover {
  color: var(--wp--preset--color--rose-deep);
}
.foot-bottom {
  border-top: 1px solid var(--wp--preset--color--line);
  font-size: 0.78rem;
  color: var(--wp--preset--color--muted);
}

/* ----- comments ----- */
.wp-block-comments {
  margin-top: 52px;
}
.wp-block-comment-author-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.wp-block-comment-date {
  font-size: 0.72rem;
  color: var(--wp--preset--color--muted);
  letter-spacing: 0.08em;
}
.wp-block-comment-content {
  font-size: 0.94rem;
  color: var(--wp--preset--color--muted);
}

/* ----- forms (search, comments) ----- */
.wp-block-search__input,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 2px;
  background: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--contrast);
  padding: 11px 15px;
  font-family: var(--wp--preset--font-family--body);
}
.wp-block-search__button {
  background: var(--wp--preset--gradient--rose-gold);
  border: none;
  color: #fff;
  border-radius: 2px;
}
