/* =========================================================
   Buttons – Alles over Oostenrijk
   Component styles
   ========================================================= */

/* ---------------------------------------------------------
   1. Base button
--------------------------------------------------------- */

.btn,
button,
input[type="submit"],
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;

    padding: 0.65em 1.3em;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;

    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;

    text-decoration: none;
    white-space: nowrap;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

/* hover micro-interaction */
.btn:hover,
.wp-block-button__link:hover {
    transform: translateY(-1px);
}

/* ---------------------------------------------------------
   2. Primary
--------------------------------------------------------- */

.btn--primary,
.wp-block-button.is-style-fill .wp-block-button__link {
    background-color: var(--brand);
    color: #ffffff;
    box-shadow: var(--shadow-xs);
}

.btn--primary:hover,
.wp-block-button.is-style-fill .wp-block-button__link:hover {
    background-color: var(--brand-strong);
    box-shadow: var(--shadow-sm);
}

/* ---------------------------------------------------------
   3. Outline
--------------------------------------------------------- */

.btn--outline {
    background-color: transparent;
    color: var(--brand);
    border-color: var(--brand);
}

.btn--outline:hover {
    background-color: var(--brand);
    color: #ffffff;
}

/* ---------------------------------------------------------
   4. Soft / subtle
--------------------------------------------------------- */

.btn--soft {
    background-color: var(--brand-soft);
    color: var(--brand-strong);
    border-color: rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
    .btn--soft {
        background-color: rgba(237, 28, 36, 0.18);
        border-color: rgba(255, 255, 255, 0.08);
    }
}

/* ---------------------------------------------------------
   5. Ghost (links met knopgevoel)
--------------------------------------------------------- */

.btn--ghost {
    background: transparent;
    color: var(--brand);
    padding-left: 0;
    padding-right: 0;
}

.btn--ghost:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------
   6. Pills (tags, kleine CTA’s)
--------------------------------------------------------- */

.pill,
.btn--pill {
    padding: 0.25em 0.75em;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    border-radius: 999px;
    background-color: var(--brand-soft);
    color: var(--brand-strong);
}

@media (prefers-color-scheme: dark) {

    .pill,
    .btn--pill {
        background-color: rgba(237, 28, 36, 0.2);
        color: #ffd6d6;
    }
}

/* ---------------------------------------------------------
   7. CTA emphasis
--------------------------------------------------------- */

.btn--cta {
    font-size: 1rem;
    padding: 0.75em 1.6em;
    border-radius: var(--radius);
}

/* ---------------------------------------------------------
   8. Disabled / inactive
--------------------------------------------------------- */

.btn[disabled],
button[disabled],
input[type="submit"][disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ---------------------------------------------------------
   9. Gutenberg button block spacing
--------------------------------------------------------- */

.wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* =========================================================
   AOO CTA buttons (filled + outline)
   Supports:
   1) <a class="aoo-cta">...</a>
   2) <div class="aoo-cta"><a>...</a></div>

   Icon support: Iconify span (.iconify) + SVG + img
   ========================================================= */

/* Tokens / fallbacks */
:root {
    --aoo-cta-brand: var(--brand, #d6001c);
    --aoo-cta-brand-hover: var(--brand-strong, #c8001d);

    --aoo-cta-radius: 18px;
    --aoo-cta-border: 2px;

    --aoo-cta-pad-y: 0.85em;
    --aoo-cta-pad-x: 1.55em;
    --aoo-cta-gap: 0.65em;

    --aoo-cta-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
    --aoo-cta-shadow-hover: 0 14px 28px rgba(0, 0, 0, 0.14);

    --aoo-cta-focus: rgba(214, 0, 28, 0.30);

    /* outline hover style (subtle red wash) */
    --aoo-cta-outline-hover-bg: rgba(214, 0, 28, 0.06);
    --aoo-cta-outline-hover-text: var(--aoo-cta-brand);
}

/* ---------------------------------------------------------
   Base (targets both patterns)
--------------------------------------------------------- */
a.aoo-cta,
.aoo-cta a,
a.aoo-cta-outline,
.aoo-cta-outline a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--aoo-cta-gap);

    padding: var(--aoo-cta-pad-y) var(--aoo-cta-pad-x);
    border-radius: var(--aoo-cta-radius);
    border: var(--aoo-cta-border) solid transparent;

    font-family: inherit;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.1;

    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;

    -webkit-tap-highlight-color: transparent;
}

/* Hover lift */
a.aoo-cta:hover,
.aoo-cta a:hover,
a.aoo-cta-outline:hover,
.aoo-cta-outline a:hover {
    transform: translateY(-1px);
}

/* Keyboard focus */
a.aoo-cta:focus-visible,
.aoo-cta a:focus-visible,
a.aoo-cta-outline:focus-visible,
.aoo-cta-outline a:focus-visible {
    outline: 3px solid var(--aoo-cta-focus);
    outline-offset: 3px;
}

/* ---------------------------------------------------------
   Filled CTA (like left button)
--------------------------------------------------------- */
a.aoo-cta,
.aoo-cta a {
    background-color: var(--aoo-cta-brand);
    border-color: var(--aoo-cta-brand);
    color: #ffffff !important;
    box-shadow: var(--aoo-cta-shadow);
}

a.aoo-cta:hover,
.aoo-cta a:hover {
    background-color: var(--aoo-cta-brand-hover);
    border-color: var(--aoo-cta-brand-hover);
    color: #ffffff !important;
    box-shadow: var(--aoo-cta-shadow-hover);
}

/* ---------------------------------------------------------
   Outline CTA (like right button)
--------------------------------------------------------- */
a.aoo-cta-outline,
.aoo-cta-outline a {
    background-color: #ffffff;
    border-color: var(--aoo-cta-brand);
    color: var(--aoo-cta-brand) !important;
    box-shadow: none;
}

/* FIX: force outline hover to stay readable (prevents other hovers winning) */
a.aoo-cta-outline:hover,
.aoo-cta-outline a:hover {
    background-color: var(--aoo-cta-outline-hover-bg) !important;
    border-color: var(--aoo-cta-brand) !important;
    color: var(--aoo-cta-outline-hover-text) !important;
    box-shadow: none !important;
}

/* ---------------------------------------------------------
   Icon support (Iconify, SVG, IMG)
   Makes the icon inherit button color (currentColor)
--------------------------------------------------------- */

/* Iconify */
a.aoo-cta .iconify,
.aoo-cta a .iconify,
a.aoo-cta-outline .iconify,
.aoo-cta-outline a .iconify {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    flex: 0 0 auto;
    line-height: 1;
    margin-top: -0.05em;
    /* optical alignment */
    color: currentColor;
    fill: currentColor;
    stroke: currentColor;
}

/* SVG inside */
a.aoo-cta svg,
.aoo-cta a svg,
a.aoo-cta-outline svg,
.aoo-cta-outline a svg {
    width: 1.1em;
    height: 1.1em;
    flex: 0 0 auto;
    margin-top: -0.05em;
    fill: currentColor;
    stroke: currentColor;
}

/* IMG icons (if ever used) */
a.aoo-cta img,
.aoo-cta a img,
a.aoo-cta-outline img,
.aoo-cta-outline a img {
    width: 1.1em;
    height: 1.1em;
    flex: 0 0 auto;
    margin-top: -0.05em;
}

/* ---------------------------------------------------------
   Mobile: slightly tighter
--------------------------------------------------------- */
@media (max-width: 520px) {

    a.aoo-cta,
    .aoo-cta a,
    a.aoo-cta-outline,
    .aoo-cta-outline a {
        font-size: 1rem;
        padding: 0.8em 1.25em;
    }
}