/*
Theme Name: UHK – Udruga hrvatskih kontrolera
Theme URI: https://uhk.hr/
Author: Udruga hrvatskih kontrolera
Description: Moderna blok tema (Site Editor) za web stranicu Udruge hrvatskih kontrolera. Uredive boje, tipografija i rasporedi putem Izgled → Uređivač.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uhk
*/

/* ---------- opće ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
a { text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.wp-block-group a:not(.wp-block-button__link):hover { text-decoration-thickness: 2px; }

/* ---------- zaglavlje ---------- */
.uhk-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--wp--preset--color--line); backdrop-filter: saturate(1.4) blur(10px); background: rgba(255,255,255,.92) !important; }
.admin-bar .uhk-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .uhk-header { top: 46px; } }
.uhk-logo { margin: 0; }
.uhk-logo img { height: auto; display: block; }
.uhk-header .wp-block-navigation a { color: var(--wp--preset--color--navy); font-size: .95rem; letter-spacing: .01em; text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; }
.uhk-header .wp-block-navigation a:hover,
.uhk-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--brand-dark); border-bottom-color: var(--wp--preset--color--brand); }
.uhk-header-cta .wp-block-button__link { font-size: .9rem; padding: .6rem 1.1rem; }
@media (max-width: 599px) { .uhk-header-cta { display: none; } }

/* ---------- gumbi ---------- */
.wp-block-button__link { transition: background-color .15s ease, color .15s ease, transform .15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.is-style-outline .wp-block-button__link { border: 2px solid currentColor; background: transparent; }
.is-style-outline .wp-block-button__link:hover { background: rgba(26,143,216,.08); transform: translateY(-1px); }
.has-navy-background-color .is-style-outline .wp-block-button__link:hover,
.has-overlay-background-color .is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,.14); }

/* ---------- kartice i mreže ---------- */
.uhk-card, .is-style-uhk-card { border: 1px solid var(--wp--preset--color--line); border-radius: 14px; overflow: hidden; background: var(--wp--preset--color--base); box-shadow: 0 1px 2px rgba(11,37,69,.04); transition: box-shadow .2s ease, transform .2s ease; height: 100%; }
.uhk-card:hover { box-shadow: 0 12px 30px rgba(11,37,69,.10); transform: translateY(-2px); }
.uhk-card .wp-block-post-featured-image img { border-radius: 0; }
.uhk-card h3 a { text-decoration: none; color: var(--wp--preset--color--navy); }
.uhk-card h3 a:hover { color: var(--wp--preset--color--brand-dark); }
.uhk-card .wp-block-post-date { font-size: .9rem; }
.uhk-card .uhk-cover img { border-radius: 8px; border: 1px solid var(--wp--preset--color--line); box-shadow: 0 6px 18px rgba(11,37,69,.12); }
.uhk-kicker, .uhk-kicker a, .uhk-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-size: .78rem; text-decoration: none; }
.uhk-kicker a { color: var(--wp--preset--color--brand-dark); }
.uhk-broj { font-weight: 700; letter-spacing: .1em; }
.uhk-timeline > .wp-block-group { border-left: 3px solid var(--wp--preset--color--brand-light); }
.uhk-ciljevi li { margin-bottom: .5rem; }
.wp-block-image.is-style-rounded img { border-radius: 14px; }
.wp-block-post-featured-image img { border-radius: 14px; }
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 10px; }

/* ---------- hero ---------- */
.uhk-hero { background-attachment: scroll; }
.uhk-hero h1 { color: #fff; }
.uhk-hero p { color: rgba(255,255,255,.92); }

/* ---------- navigacija između objava, podnožje ---------- */
.wp-block-post-navigation-link a { text-decoration: none; font-weight: 600; }
.uhk-footer a { color: var(--wp--preset--color--navy); text-decoration: none; }
.uhk-footer a:hover { color: var(--wp--preset--color--brand-dark); text-decoration: underline; }
.uhk-footer-bar a { color: #fff; }
.uhk-footer ul { list-style: none; padding-left: 0; }
.uhk-footer li { margin-bottom: .4rem; }

/* ---------- sadržaj ---------- */
.entry-content > * + h2, .entry-content > * + h3 { margin-top: 2.2rem; }
.wp-block-list li { margin-bottom: .35rem; }
.wp-block-table table { border-collapse: collapse; }
.wp-block-table td, .wp-block-table th { border: 1px solid var(--wp--preset--color--line); padding: .5rem .75rem; }
