/* ================================================================
   BuRF Notiser – Frontend-stilar v1.2.1
   
   Pluginet sätter INGA typografiska stilar alls – allt ärvs från
   temat. Vi äger bara: layout-struktur, color:inherit på element
   som annars skulle ta temats länk-/rubrikfärg, och stäng-knappen.
================================================================ */

/* --- Notis-container ------------------------------------------ */
.burf-notice {
    position: relative;
    display: block;
    padding: 0.75em 3em 0.75em 1em;
    margin-bottom: 1em;
    box-sizing: border-box;
}

/* --- h3-rubrik: låt temat styra allt utom färgen -------------- */
.burf-notice h3 {
    color: inherit;
    text-shadow: none;
}

/* --- Länk: ta notisens textfärg, inte temats länkfärg --------- */
.burf-notice a {
    color: inherit;
    text-decoration: underline;
}

/* --- Klippt meddelande ---------------------------------------- */
.burf-notice-body[data-truncate] {
    max-height: 5.5em;     /* ~4 rader beroende på temats line-height */
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.burf-notice-body[data-truncate].burf-expanded {
    max-height: 1000px;    /* stort nog för vilket meddelande som helst */
}

/* Visa mer / Visa mindre-knapp */
.burf-notice-expand {
    display: inline-block;
    margin-top: 0.3em;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: inherit;
    text-decoration: underline;
    font-size: inherit;
    opacity: 0.75;
}
.burf-notice-expand:hover { opacity: 1; }


.burf-notice .burf-notice-close {
    position: absolute;
    top: 0.5em;
    right: 0.6em;
    background: transparent;
    border: none;
    font-size: 1.4em;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    padding: 0;
    opacity: 0.6;
}
.burf-notice .burf-notice-close:hover { opacity: 1; }

/* --- Dölj-animation ------------------------------------------- */
@keyframes burfFadeOut {
    to { opacity: 0; max-height: 0; padding: 0; margin: 0; overflow: hidden; }
}
.burf-notice.burf-hiding {
    animation: burfFadeOut 0.3s ease forwards;
}
