/* assets/css/modal.css */

/* --- MODAL OVERLAY (Hintergrund) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dunkler, transparenter Hintergrund */
    backdrop-filter: blur(5px);    /* Moderner Unschärfe-Effekt */
    display: none;                  /* Wird via JS auf 'flex' gesetzt */
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

/* Klasse für die Einblend-Animation via JS */
.modal-overlay.active {
    opacity: 1;
}

/* --- MODAL CONTENT BOX --- */
.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 550px;
    border-radius: 15px;
    position: relative;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* --- SCHLIESSEN BUTTON --- */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--danger);
}

/* --- INHALT IM MODAL (Wiederverwendbare Terpen-Card) --- */
.modal-terpene-card {
    border-top: 5px solid var(--primary-color);
    padding-top: 10px;
}

.modal-terpene-card .card-head h4 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--primary-dark);
}

.modal-terpene-card .tag {
    display: inline-block;
    margin-top: 10px;
}

.modal-terpene-card .profile {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

.modal-terpene-card .synergy-box {
    background: #fff9f0;
    border: 1px solid #f1dfa9;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Scrollbar für lange Inhalte im Modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}