/* ============================================
   PULZUS — Custom CSS
   Hover, transition, overlay és egyéb effektek,
   amelyek theme.json-ból nem állíthatók be
   ============================================ */


/* --- GLOBÁLIS ALAP --- */

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    transition: color 0.2s ease;
}


/* --- POST KÁRTYA — hover effektek --- */

/* Kép zoom hover */
.pulzus-post-card .wp-block-post-featured-image {
    overflow: hidden;
    border-radius: 4px;
}

.pulzus-post-card .wp-block-post-featured-image img {
    transition: transform 0.3s ease;
}

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

/* Cím hover szín */
.pulzus-post-card .wp-block-post-title a {
    transition: color 0.2s ease;
}

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

/* Excerpt levágás */
.pulzus-post-card .wp-block-post-excerpt__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* --- HERO FEATURED — wp:cover overlay finomítás --- */

.wp-block-cover.pulzus-hero {
    min-height: 70vh !important;
}

.wp-block-cover.pulzus-hero .wp-block-cover__image-background {
    object-fit: cover;
}

/* Hero overlay gradiens (theme.json dimRatio-t felülírva) */
.wp-block-cover.pulzus-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 13, 13, 0.7) 30%, transparent 100%);
    pointer-events: none;
}


/* --- GOMBOK — hover & transition --- */

.wp-element-button,
.wp-block-button__link {
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
    opacity: 0.9;
}

.wp-element-button:active,
.wp-block-button__link:active {
    transform: scale(0.98);
}


/* --- PILL CÍMKÉK (kategória) --- */

.wp-block-post-terms a {
    display: inline-block;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}


/* --- PILL STYLE (tag-ekhez) --- */

.pulzus-pill {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 999px;
    font-family: var(--wp--preset--font-family--ui);
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--muted);
    transition: all 0.2s ease;
}

.pulzus-pill:hover {
    background: var(--wp--preset--color--surface);
}

.pulzus-pill--accent {
    background: var(--wp--preset--color--accent);
    color: #fff;
    border-color: var(--wp--preset--color--accent);
}


/* --- VÉLEMÉNY ROVAT — bal accent border --- */

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


/* --- NEWSLETTER FORM STÍLUSOK --- */

.pulzus-newsletter-form input[type="email"] {
    transition: border-color 0.2s ease;
}

.pulzus-newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--wp--preset--color--accent);
    box-shadow: 0 0 0 3px rgba(232, 73, 29, 0.1);
}

.pulzus-newsletter-form button {
    transition: opacity 0.2s ease;
}

.pulzus-newsletter-form button:hover {
    opacity: 0.9;
}


/* --- SZERZŐ BLOKK --- */

.pulzus-author-block .wp-block-post-author__avatar img {
    border-radius: 50%;
}


/* --- NAVIGÁCIÓ --- */

.wp-block-navigation a {
    transition: color 0.2s ease;
}

.wp-block-navigation a:hover {
    color: var(--wp--preset--color--primary);
}


/* --- SZEKCIÓ ELVÁLASZTÓ --- */

.pulzus-divider {
    border: none;
    border-top: 1px solid var(--wp--preset--color--border);
}


/* --- PAGINATION STÍLUS (archívum) --- */

.wp-block-query-pagination {
    gap: 0.5rem;
}

.wp-block-query-pagination-numbers .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    font-family: var(--wp--preset--font-family--ui);
    font-size: var(--wp--preset--font-size--small);
    font-weight: 500;
    color: var(--wp--preset--color--muted);
    border: 1px solid var(--wp--preset--color--border);
    transition: all 0.2s ease;
}

.wp-block-query-pagination-numbers .page-numbers:hover {
    border-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--primary);
}

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

.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
    font-family: var(--wp--preset--font-family--ui);
    font-size: var(--wp--preset--font-size--small);
    font-weight: 500;
    transition: color 0.2s ease;
}


/* --- FEATURED IMAGE ASPECT RATIO --- */

.wp-block-post-featured-image img {
    object-fit: cover;
}


/* --- CIKK TARTALOM TIPOGRÁFIA --- */

.entry-content p {
    line-height: 1.8;
}

.entry-content blockquote {
    border-left: 3px solid var(--wp--preset--color--accent);
    padding-left: 1.5rem;
    font-style: italic;
}


/* --- FOOTER --- */

.site-footer a {
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--wp--preset--color--primary);
}


/* --- CTA BLOKK GOMB --- */

.wp-block-group.has-primary-background-color .wp-block-button__link:hover {
    opacity: 0.9;
}


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

@media (max-width: 1024px) {
    .wp-block-cover.pulzus-hero {
        min-height: 50vh !important;
    }

    .wp-block-cover.pulzus-hero h1 {
        font-size: var(--wp--preset--font-size--xxx-large) !important;
    }
}

@media (max-width: 768px) {
    .wp-block-cover.pulzus-hero {
        min-height: auto !important;
    }

    .wp-block-cover.pulzus-hero h1 {
        font-size: var(--wp--preset--font-size--xx-large) !important;
    }

    .pulzus-newsletter-form {
        flex-direction: column;
    }

    .pulzus-newsletter-form input[type="email"],
    .pulzus-newsletter-form button {
        width: 100%;
    }

    /* Pagination mobilon */
    .wp-block-query-pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}
