/* MaHe Link Checker – Frontend Styles */

.mahe-lc-wrapper {
    display: inline;
    position: relative;
}

/* Toter Link: durchgestrichen, grau */
a.mahe-lc-dead {
    text-decoration: line-through !important;
    color: #999 !important;
    cursor: default;
}

/* Roter Kreis mit ⚠ direkt hinter dem Link */
.mahe-lc-report-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 0 0 4px !important;
    background: #c0392b !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 10px !important;
    line-height: 1 !important;
    vertical-align: middle;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: bold !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, background 0.15s;
}

.mahe-lc-report-btn.mahe-lc-visible {
    opacity: 1;
    pointer-events: auto;
}

.mahe-lc-report-btn:hover {
    background: #922b21 !important;
}

/* ---- Popup ---- */
.mahe-lc-popup {
    position: absolute;
    z-index: 99999;
    top: calc(100% + 6px);
    left: 0;
    width: 210px;
    background: #fff;
    border: 1px solid #ddd;
    border-top: 3px solid #c0392b;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,.15);
    padding: 9px 11px 10px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 12px !important;
    font-weight: normal !important;
    line-height: 1.4 !important;
    color: #333 !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Pfeil oben */
.mahe-lc-popup::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 10px;
    width: 9px;
    height: 9px;
    background: #c0392b;
    transform: rotate(45deg);
}
.mahe-lc-popup::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 11px;
    width: 7px;
    height: 7px;
    background: #fff;
    transform: rotate(45deg);
}

.mahe-lc-popup-title {
    display: block !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #c0392b !important;
    margin: 0 0 7px !important;
    padding: 0 !important;
    line-height: 1.35 !important;
    text-transform: none !important;
}

.mahe-lc-popup-actions {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
}

.mahe-lc-popup-report-btn {
    display: inline-block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 4px 9px !important;
    background: #c0392b !important;
    color: #fff !important;
    border: none !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    font-size: 11px !important;
    font-weight: normal !important;
    line-height: 1.5 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    white-space: nowrap;
    transition: background 0.15s !important;
}

.mahe-lc-popup-report-btn:hover:not(:disabled) {
    background: #922b21 !important;
}

.mahe-lc-popup-report-btn:disabled {
    background: #bbb !important;
    cursor: default !important;
}

.mahe-lc-popup-close-btn {
    display: inline-block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 4px 8px !important;
    background: transparent !important;
    color: #888 !important;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
}

.mahe-lc-popup-close-btn:hover {
    background: #f0f0f0 !important;
}

.mahe-lc-popup-msg {
    display: block;
    font-size: 11px !important;
    margin-top: 6px !important;
    line-height: 1.3 !important;
}

/* Honeypot */
.mahe-lc-hp {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
}

/* ================================================================
   DISMISSED LINKS – dauerhaft ungültig, kein Melde-Button
   ================================================================ */

a.mahe-lc-dismissed {
    text-decoration: line-through !important;
    color: #aaa !important;
    background: #f5f5f5 !important;
    padding: 1px 3px !important;
    border-radius: 2px !important;
    cursor: default !important;
    pointer-events: none !important;
}

/* Kleines blaues ℹ-Icon */
.mahe-lc-dismissed-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 15px !important;
    height: 15px !important;
    min-width: 0 !important;
    margin-left: 3px !important;
    background: #6c757d !important;
    color: #fff !important;
    border-radius: 50% !important;
    font-size: 10px !important;
    font-style: normal !important;
    line-height: 1 !important;
    vertical-align: middle;
    cursor: help !important;
    font-family: serif !important;
    font-weight: bold !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    /* Tooltip via title-Attribut */
    position: relative;
}

/* Hover-Tooltip für dismissed */
.mahe-lc-dismissed-icon:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 11px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: normal;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 3px;
    pointer-events: none;
    z-index: 99999;
}
