.taxonomy-category.wp-block-post-terms a, 
.taxonomy-post_tag.wp-block-post-terms a, .wp-block-tag-cloud a {
    border: none;
    color: var(--wp--preset--color--black);
    padding: 0 10px;
}

.wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:hover {
    border-color:  var(--wp--preset--color--primary);
    color: var(--wp--preset--color--black)!important;
}
	
.wp-block-navigation ul li.current-menu-item > a {
    color: var(--wp--preset--color--primary);
}

input[type="button"],
input[type="reset"],
input[type="submit"]{
	border: none;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    background: var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--white);
}

.wp-block-navigation-animation .wp-block-navigation-item a:hover:before, 
.wp-block-navigation-animation .wp-block-navigation-item .wp-block-navigation-item__content:hover:before {
    border-bottom-color: var(--wp--preset--color--primary);
    border-right-color: var(--wp--preset--color--primary);
}

.wp-block-navigation-animation .wp-block-navigation-item a:hover:after, .wp-block-navigation-animation .wp-block-navigation-item .wp-block-navigation-item__content:hover:after {
    border-top-color: var(--wp--preset--color--primary);
    border-left-color: var(--wp--preset--color--primary);
}

/* Anniversary Badge - 100 rokov STAMP */
.anniversary-badge {
    display: none;
}

.anniversary-badge.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 70px;
    height: 70px;
    transform: rotate(-12deg);
    background: transparent !important;
    border: 4px solid #c41e3a !important;
    border-radius: 50% !important;
    padding: 0 !important;
    animation: stamp-hit 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    box-shadow:
        inset 0 0 0 3px transparent,
        inset 0 0 0 4px #c41e3a;
}

.anniversary-badge.is-active::before {
    content: 'ROKOV';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #c41e3a;
    font-family: var(--wp--preset--font-family--srz-rada-roboto);
}

.anniversary-badge.is-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(196, 30, 58, 0.05) 0%, transparent 40%);
    pointer-events: none;
    opacity: 0;
    animation: stamp-texture 0.6s 0.3s forwards;
}

.anniversary-badge.is-active p {
    font-size: 28px !important;
    font-weight: 900 !important;
    letter-spacing: -1px !important;
    color: #c41e3a !important;
    margin: 0;
    margin-top: -4px;
    position: relative;
    z-index: 1;
    font-family: var(--wp--preset--font-family--srz-rada-roboto);
    text-shadow: none;
    opacity: 0;
    transform: scale(3);
    animation: stamp-number 0.4s 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Ink splatter effect */
.anniversary-badge.is-active .stamp-splatter {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #c41e3a;
    border-radius: 50%;
    opacity: 0;
}

@keyframes stamp-hit {
    0% {
        transform: rotate(-12deg) scale(2.5);
        opacity: 0;
        border-color: transparent;
    }
    50% {
        transform: rotate(-12deg) scale(0.9);
    }
    70% {
        transform: rotate(-12deg) scale(1.05);
    }
    100% {
        transform: rotate(-12deg) scale(1);
        opacity: 1;
        border-color: #c41e3a;
    }
}

@keyframes stamp-number {
    0% {
        opacity: 0;
        transform: scale(3);
    }
    60% {
        opacity: 1;
        transform: scale(0.85);
    }
    80% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes stamp-texture {
    to {
        opacity: 1;
    }
}

/* Hover - mierne zatrasenie ako keby niekto udrel peciatku */
.anniversary-badge.is-active:hover {
    animation: stamp-shake 0.4s ease;
}

@keyframes stamp-shake {
    0%, 100% { transform: rotate(-12deg); }
    25% { transform: rotate(-15deg) scale(1.02); }
    75% { transform: rotate(-9deg) scale(1.02); }
}

/* ==========================================================================
   100 rokov SRZ - Nálepka na single postoch (len frontend, nie editor)
   ========================================================================== */

.single-post-page .wp-block-group[style*="border-left"] {
    position: relative !important;
    overflow: visible !important;
    /* Šírka je generovaná dynamicky cez PHP (srz_post_content_width option) */
}

/* Logo 100 rokov SRZ - ODSTRÁNENÉ
   Dokumentácia pre opätovné pridanie: docs/logo-100-rokov-v-clanku.md
*/

/* ==========================================================================
   Kategória ako tlačidlo s farbou podľa okruhu
   ========================================================================== */

/* Základné štýly pre kategóriu ako tlačidlo */
.single-post-page .wp-block-post-terms a {
    display: inline-block !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    margin: 2px !important;
}

/* Primárny okruh - zelená */
.okruh-primarny-post .wp-block-post-terms a {
    background-color: #018763 !important;
    color: #ffffff !important;
}
.okruh-primarny-post .wp-block-post-terms a:hover {
    background-color: #016b4f !important;
}

/* Odbory - tyrkysová */
.okruh-odbory-post .wp-block-post-terms a {
    background-color: #1EAACE !important;
    color: #ffffff !important;
}
.okruh-odbory-post .wp-block-post-terms a:hover {
    background-color: #178ca8 !important;
}

/* Detský - oranžová */
.okruh-detsky-post .wp-block-post-terms a {
    background-color: #e3651c !important;
    color: #ffffff !important;
}
.okruh-detsky-post .wp-block-post-terms a:hover {
    background-color: #c9561a !important;
}

/* Legislatíva - červená */
.okruh-legislativa-post .wp-block-post-terms a {
    background-color: #CF2E2E !important;
    color: #ffffff !important;
}
.okruh-legislativa-post .wp-block-post-terms a:hover {
    background-color: #b02828 !important;
}

/* SRZ v médiách - modrá */
.okruh-srz-v-mediach-post .wp-block-post-terms a {
    background-color: #0693E3 !important;
    color: #ffffff !important;
}
.okruh-srz-v-mediach-post .wp-block-post-terms a:hover {
    background-color: #057ec4 !important;
}

/* Ústredné orgány - oranžová/žltá */
.okruh-ustredne-organy-post .wp-block-post-terms a {
    background-color: #FF9800 !important;
    color: #ffffff !important;
}
.okruh-ustredne-organy-post .wp-block-post-terms a:hover {
    background-color: #e08600 !important;
}

/* Verejné obstarávanie - mentolová */
.okruh-verejne-obstaravanie-post .wp-block-post-terms a {
    background-color: #7BDCB5 !important;
    color: #1a1a1a !important;
}
.okruh-verejne-obstaravanie-post .wp-block-post-terms a:hover {
    background-color: #5fc9a0 !important;
}

/* ==========================================================================
   SRZ Kontaktný formulár
   ========================================================================== */

.srz-contact-form-wrapper {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.srz-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.srz-contact-form .srz-form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.srz-contact-form label {
    font-family: var(--wp--preset--font-family--srz-rada-roboto);
    font-weight: 600;
    font-size: 14px;
    color: var(--wp--preset--color--primary);
}

.srz-contact-form label .required {
    color: #c41e3a;
}

.srz-contact-form input[type="text"],
.srz-contact-form input[type="email"],
.srz-contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--wp--preset--font-family--srz-rada-roboto);
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.srz-contact-form input[type="text"]:focus,
.srz-contact-form input[type="email"]:focus,
.srz-contact-form textarea:focus {
    outline: none;
    border-color: var(--wp--preset--color--extra-primary);
    box-shadow: 0 0 0 3px rgba(1, 135, 99, 0.1);
}

.srz-contact-form input.has-error,
.srz-contact-form textarea.has-error {
    border-color: #c41e3a;
}

.srz-contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.srz-contact-form .field-error {
    display: block;
    font-size: 13px;
    color: #c41e3a;
    margin-top: 4px;
}

/* Submit button */
.srz-contact-form .srz-form-submit {
    margin-top: 10px;
}

.srz-contact-form .srz-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--wp--preset--font-family--srz-rada-roboto);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: var(--wp--preset--color--extra-primary);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.srz-contact-form .srz-submit-btn:hover {
    background: #016b4f;
    transform: translateY(-1px);
}

.srz-contact-form .srz-submit-btn:active {
    transform: translateY(0);
}

.srz-contact-form .srz-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.srz-contact-form .srz-submit-btn.is-loading {
    background: var(--wp--preset--color--extra-primary);
}

.srz-contact-form .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.srz-contact-form .btn-loading .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Message box */
.srz-contact-form .srz-form-message {
    padding: 16px 20px;
    border-radius: 8px;
    font-family: var(--wp--preset--font-family--srz-rada-roboto);
    font-size: 15px;
    font-weight: 500;
}

.srz-contact-form .srz-form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.srz-contact-form .srz-form-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Responsive */
@media (max-width: 600px) {
    .srz-contact-form-wrapper {
        padding: var(--wp--preset--spacing--40) !important;
    }

    .srz-contact-form .srz-submit-btn {
        width: 100%;
    }
}

/* ==========================================================================
   SRZ Kontaktný formulár - Modal
   ========================================================================== */

/* Body lock pri otvorenom modali */
body.srz-modal-open {
    overflow: hidden;
}

/* Modal container */
.srz-contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Overlay */
.srz-contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* Modal content */
.srz-contact-modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close button */
.srz-contact-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.srz-contact-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

/* Header */
.srz-contact-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.srz-contact-modal-title {
    font-family: var(--wp--preset--font-family--srz-rada-roboto);
    font-size: 28px;
    font-weight: 700;
    color: var(--wp--preset--color--extra-primary);
    margin: 0 0 10px 0;
}

.srz-contact-modal-subtitle {
    font-family: var(--wp--preset--font-family--srz-rada-roboto);
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* Form v modali */
.srz-contact-modal .srz-contact-form {
    padding: 0;
}

/* Responsive modal */
@media (max-width: 600px) {
    .srz-contact-modal {
        padding: 10px;
    }

    .srz-contact-modal-content {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .srz-contact-modal-title {
        font-size: 24px;
    }
}