/* ethics-rating.css - Community Ethics Rating Styles */

/* Modal */
.ethics-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.ethics-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ethics-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.ethics-modal-content {
    position: relative;
    background: var(--card);
    color: var(--text);
    border-radius: 12px;
    max-width: 800px;
    max-height: 90vh;
    max-height: 90dvh;
    width: 90%;
    padding: 2rem;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.ethics-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

/* Rating Container */

/* Hover-Effekte nur für echte Zeigegeräte: auf Touch bleibt der
   Hover-Zustand nach dem Tap kleben, bis woanders hingetippt wird. */
@media (hover: hover) and (pointer: fine) {
    .ethics-modal-close:hover {
        color: var(--text);
    }
}
