/*
Theme Name:  Pulzus
Theme URI:   https://example.com/pulzus
Author:      Pulzus Szerkesztőség
Author URI:  https://example.com
Description: Független kulturális online magazin. Full Site Editing téma, WordPress 6.6+ / 7.x kompatibilis. Rovatok: Kultúra, Zene, Film, Vélemény.
Version:     1.0.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.1
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pulzus
Tags:        blog, news, magazine, full-site-editing, block-themes, wide-blocks, grid-layout
*/

/*
 * A stílusszabályok többségét a theme.json kezeli preset-ek és block styles formájában.
 * Ez a fájl kizárólag olyan block-specifikus CSS-t tartalmaz, amit a theme.json nem tud kifejezni.
 */


/* ============================================
   ALAP
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }


/* ============================================
   HEADER — parts/header.html
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--wp--preset--color--border);
}

.wp-block-navigation a {
    color: var(--wp--preset--color--muted);
    transition: color 0.2s;
}
.wp-block-navigation a:hover {
    color: var(--wp--preset--color--primary);
}
.wp-block-navigation .current-menu-item > a {
    color: var(--wp--preset--color--primary);
}

/* Nav CTA gomb */
.nav-cta.wp-block-button__link {
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--white);
    padding: 8px 20px;
    border-radius: 6px;
    font-family: var(--wp--preset--font-family--ui);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 500;
}
.nav-cta.wp-block-button__link:hover { opacity: 0.9; }


/* ============================================
   GOMBOK
   ============================================ */

.wp-block-button.is-style-primary .wp-block-button__link,
.wp-block-button__link {
    font-family: var(--wp--preset--font-family--ui);
    font-weight: 500;
    border-radius: 6px;
    transition: opacity 0.2s;
}

/* Pill / tag stílus */
.wp-block-button.is-style-pill .wp-block-button__link {
    background: transparent;
    color: var(--wp--preset--color--muted);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 999px;
    padding: 4px 12px;
    font-family: var(--wp--preset--font-family--ui);
    font-size: var(--wp--preset--font-size--sm);
}
.wp-block-button.is-style-pill .wp-block-button__link:hover {
    background: var(--wp--preset--color--surface);
}

/* Text / ghost gomb */
.wp-block-button.is-style-text .wp-block-button__link {
    background: transparent;
    color: var(--wp--preset--color--accent);
    padding: 0;
    font-family: var(--wp--preset--font-family--ui);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 500;
}
.wp-block-button.is-style-text .wp-block-button__link:hover { text-decoration: underline; }


/* ============================================
   HERO — patterns/hero-featured.php
   wp:cover (full-width, useFeaturedImage, dimRatio:60)
   ============================================ */

.hero-featured.wp-block-cover {
    min-height: 70vh;
    max-height: 700px;
    margin-bottom: var(--wp--preset--spacing--2xl);
}

.hero-category.wp-block-post-terms a {
    display: inline-block;
    font-family: var(--wp--preset--font-family--ui);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--white) !important;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: var(--wp--preset--spacing--sm);
    text-decoration: none;
}

.hero-title.wp-block-post-title {
    font-size: var(--wp--preset--font-size--4xl);
    line-height: 1.1;
    color: var(--wp--preset--color--white);
    max-width: 800px;
}

.hero-excerpt.wp-block-post-excerpt {
    font-size: var(--wp--preset--font-size--lg);
    opacity: 0.85;
    max-width: 600px;
    color: var(--wp--preset--color--white);
}

.hero-meta {
    font-family: var(--wp--preset--font-family--ui);
    font-size: var(--wp--preset--font-size--sm);
    opacity: 0.7;
    color: var(--wp--preset--color--white);
}


/* ============================================
   CIKK KÁRTYA
   wp:post-template belső tartalom
   ============================================ */

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

/* Kiemelt kép hover zoom */
.post-card .wp-block-post-featured-image {
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 16 / 10;
    margin-bottom: var(--wp--preset--spacing--sm);
}
.post-card .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.post-card:hover .wp-block-post-featured-image img { transform: scale(1.03); }

/* Meta sor (kategória + dátum) */
.post-card-meta {
    display: flex;
    align-items: center;
    gap: var(--wp--preset--spacing--xs);
}

.post-card .wp-block-post-terms a {
    color: var(--wp--preset--color--accent);
    font-family: var(--wp--preset--font-family--ui);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
}

.post-card .wp-block-post-date {
    color: var(--wp--preset--color--muted);
    font-family: var(--wp--preset--font-family--ui);
    font-size: var(--wp--preset--font-size--sm);
}
.post-card .wp-block-post-date::before { content: "· "; }

/* Cím hover */
.post-card .wp-block-post-title a { transition: color 0.2s; }
.post-card:hover .wp-block-post-title a { color: var(--wp--preset--color--accent); }

/* Excerpt csonkítás */
.post-card .wp-block-post-excerpt p {
    color: var(--wp--preset--color--muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ============================================
   SZEKCIÓ FEJLÉC (cím + "Összes →" link)
   ============================================ */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--wp--preset--spacing--lg);
}

.section-header .wp-block-heading {
    font-size: var(--wp--preset--font-size--2xl);
}


/* ============================================
   VÉLEMÉNY KÁRTYA — patterns/opinion-section.php
   Kép nélküli, bal accent csík
   ============================================ */

.opinion-card {
    padding-left: var(--wp--preset--spacing--md);
    border-left: 3px solid var(--wp--preset--color--accent);
}

.opinion-card .opinion-author {
    font-family: var(--wp--preset--font-family--ui);
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--accent);
    margin-bottom: var(--wp--preset--spacing--xs);
}

.opinion-card .wp-block-post-title {
    font-size: var(--wp--preset--font-size--xl);
    margin-bottom: 6px;
}

.opinion-card .wp-block-post-excerpt p {
    color: var(--wp--preset--color--muted);
    line-height: 1.6;
}


/* ============================================
   ARCHÍVUM — templates/archive.html
   ============================================ */

.archive-header {
    padding: var(--wp--preset--spacing--xl) 0 var(--wp--preset--spacing--lg);
    text-align: center;
}

/* Kategória szűrő (navigation pills) */
.category-filter .wp-block-navigation__container {
    display: flex;
    gap: var(--wp--preset--spacing--xs);
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 0 var(--wp--preset--spacing--xl);
    padding: 0;
}

.category-filter .wp-block-navigation-item__content {
    display: inline-block;
    font-family: var(--wp--preset--font-family--ui);
    font-size: var(--wp--preset--font-size--sm);
    padding: 4px 12px;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 999px;
    color: var(--wp--preset--color--muted);
    transition: all 0.2s;
    text-decoration: none;
}
.category-filter .wp-block-navigation-item__content:hover {
    background: var(--wp--preset--color--surface);
}
.category-filter .current-menu-item .wp-block-navigation-item__content {
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--white);
    border-color: var(--wp--preset--color--accent);
}

/* Lapozó */
.wp-block-query-pagination {
    display: flex;
    justify-content: center;
    gap: var(--wp--preset--spacing--xs);
    padding: var(--wp--preset--spacing--xl) 0;
    font-family: var(--wp--preset--font-family--ui);
    font-size: var(--wp--preset--font-size--sm);
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
}

.wp-block-query-pagination .page-numbers.current {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
}

.wp-block-query-pagination a {
    color: var(--wp--preset--color--muted);
    border: 1px solid var(--wp--preset--color--border);
    transition: all 0.2s;
}
.wp-block-query-pagination a:hover {
    border-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--primary);
}


/* ============================================
   EGYEDI CIKK — templates/single.html
   ============================================ */

.post-header {
    text-align: center;
    padding: var(--wp--preset--spacing--xl) 0 var(--wp--preset--spacing--lg);
}

.post-header .wp-block-post-title {
    font-size: var(--wp--preset--font-size--3xl);
    line-height: 1.15;
    margin: var(--wp--preset--spacing--sm) 0;
}

.post-excerpt-lead {
    font-size: var(--wp--preset--font-size--lg);
    color: var(--wp--preset--color--muted);
    font-style: italic;
    line-height: 1.5;
}

.post-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--wp--preset--spacing--sm);
    font-family: var(--wp--preset--font-family--ui);
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--muted);
    margin-top: var(--wp--preset--spacing--md);
}

/* Kiemelt kép */
.post-featured-image-wide {
    max-width: 1200px;
    margin: 0 auto var(--wp--preset--spacing--xl);
}

.post-featured-image-wide .wp-block-post-featured-image img {
    border-radius: 8px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
}

/* Cikk tartalom tipográfia */
.entry-content p {
    margin-bottom: var(--wp--preset--spacing--md);
    line-height: 1.8;
}

.entry-content h2 { margin-top: var(--wp--preset--spacing--xl); }
.entry-content h3 { margin-top: var(--wp--preset--spacing--lg); }

/* Címkék */
.post-tags {
    display: flex;
    gap: var(--wp--preset--spacing--xs);
    flex-wrap: wrap;
    padding: var(--wp--preset--spacing--lg) 0;
    border-top: 1px solid var(--wp--preset--color--border);
    margin-top: var(--wp--preset--spacing--xl);
}

/* Szerző blokk */
.author-block {
    display: flex;
    gap: var(--wp--preset--spacing--md);
    align-items: flex-start;
    background: var(--wp--preset--color--surface);
    padding: var(--wp--preset--spacing--lg);
    border-radius: 8px;
    max-width: 720px;
    margin: var(--wp--preset--spacing--xl) auto;
}

.author-block .wp-block-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-block .wp-block-post-author__name {
    font-family: var(--wp--preset--font-family--heading);
    font-size: var(--wp--preset--font-size--lg);
    font-weight: 700;
    margin-bottom: 4px;
}

.author-block .wp-block-post-author__bio {
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--muted);
    line-height: 1.5;
}


/* ============================================
   STATIKUS OLDAL — templates/page.html
   ============================================ */

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--wp--preset--spacing--md) var(--wp--preset--spacing--2xl);
}

.page-content p { margin-bottom: var(--wp--preset--spacing--md); line-height: 1.8; }
.page-content h2 { margin-top: var(--wp--preset--spacing--xl); }

/* Kétoszlopos képblokk */
.page-columns .wp-block-image img {
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}


/* ============================================
   CTA BLOKK — patterns/cta-block.php
   ============================================ */

.cta-block {
    text-align: center;
    padding: var(--wp--preset--spacing--2xl) var(--wp--preset--spacing--md);
    border-radius: 8px;
    margin: var(--wp--preset--spacing--xl) 0;
}

.cta-block .wp-block-heading {
    color: var(--wp--preset--color--white);
    font-size: var(--wp--preset--font-size--2xl);
    margin-bottom: var(--wp--preset--spacing--xs);
}

.cta-block p {
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--wp--preset--spacing--md);
}


/* ============================================
   NEWSLETTER — patterns/newsletter.php
   ============================================ */

.newsletter-section {
    background: var(--wp--preset--color--surface);
    padding: var(--wp--preset--spacing--2xl) 0;
    margin-top: var(--wp--preset--spacing--xl);
}

.newsletter-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-form-row {
    display: flex;
    gap: var(--wp--preset--spacing--xs);
    max-width: 460px;
    margin: var(--wp--preset--spacing--md) auto var(--wp--preset--spacing--sm);
}

.newsletter-form-row input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 6px;
    font-family: var(--wp--preset--font-family--ui);
    font-size: var(--wp--preset--font-size--base);
    background: var(--wp--preset--color--white);
}
.newsletter-form-row input[type="email"]:focus {
    outline: none;
    border-color: var(--wp--preset--color--accent);
}

.newsletter-note {
    font-family: var(--wp--preset--font-family--ui);
    font-size: var(--wp--preset--font-size--xs);
    color: var(--wp--preset--color--muted);
}


/* ============================================
   FOOTER — parts/footer.html
   ============================================ */

.site-footer {
    border-top: 1px solid var(--wp--preset--color--border);
    padding: var(--wp--preset--spacing--xl) 0 var(--wp--preset--spacing--lg);
    margin-top: var(--wp--preset--spacing--xl);
}

.footer-brand {
    max-width: 280px;
}

.footer-col h4 {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--wp--preset--spacing--sm);
}

.footer-col .wp-block-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col .wp-block-list li { margin-bottom: var(--wp--preset--spacing--xs); }
.footer-col .wp-block-list a {
    color: var(--wp--preset--color--muted);
    font-family: var(--wp--preset--font-family--ui);
    font-size: var(--wp--preset--font-size--sm);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col .wp-block-list a:hover { color: var(--wp--preset--color--primary); }

.footer-bottom {
    padding-top: var(--wp--preset--spacing--md);
    border-top: 1px solid var(--wp--preset--color--border);
}

.wp-block-social-links.footer-social .wp-block-social-link a {
    color: var(--wp--preset--color--muted);
    transition: color 0.2s;
}
.wp-block-social-links.footer-social .wp-block-social-link a:hover {
    color: var(--wp--preset--color--primary);
}


/* ============================================
   RESZPONZÍV
   ============================================ */

@media (max-width: 1024px) {
    .hero-title.wp-block-post-title { font-size: var(--wp--preset--font-size--3xl); }
}

@media (max-width: 768px) {
    .hero-featured.wp-block-cover {
        min-height: auto;
        max-height: none;
    }
    .hero-title.wp-block-post-title { font-size: var(--wp--preset--font-size--2xl); }
    .post-header .wp-block-post-title { font-size: var(--wp--preset--font-size--2xl); }
    .newsletter-form-row { flex-direction: column; }
    .author-block { flex-direction: column; }
    .nav-cta { display: none; }
}
