/**
 * Section Contacts Info Styles
 *
 * Styles für den Info-Button und das Modal zur Anzeige
 * von Einsatzkontakten in Abschnitts-Karten.
 *
 * @version 1.0.0
 */

/* ========================================
   INFO BUTTON
   ======================================== */

.section-contacts-info-btn {
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.section-contacts-info-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    color: #2563eb;
    transform: scale(1.1);
}

.section-contacts-info-btn:active {
    transform: scale(0.95);
}

/* Variante für dunklen Hintergrund (z.B. in Card-Header) */
.section-contacts-info-btn.light {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.section-contacts-info-btn.light:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
}

/* ========================================
   MODAL
   ======================================== */

.section-contacts-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
}

.section-contacts-modal-content {
    background: var(--bg-secondary, #1e293b);
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: section-contacts-modal-in 0.2s ease-out;
}

@keyframes section-contacts-modal-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.section-contacts-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color, #334155);
}

.section-contacts-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-contacts-modal-header h3 i {
    color: #3b82f6;
}

.section-contacts-modal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.section-contacts-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color, #334155);
}

/* ========================================
   CONTENT STATES
   ======================================== */

.section-contacts-loading,
.section-contacts-error,
.section-contacts-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary, #94a3b8);
}

.section-contacts-loading i,
.section-contacts-error i,
.section-contacts-empty i {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.section-contacts-error i {
    color: #ef4444;
}

.section-contacts-empty p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: var(--text-primary, #f1f5f9);
}

.section-contacts-empty small {
    font-size: 12px;
    opacity: 0.7;
}

/* ========================================
   CONTACTS LIST
   ======================================== */

.section-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-contacts-group {
    background: var(--bg-tertiary, #0f172a);
    border-radius: 8px;
    overflow: hidden;
}

.section-contacts-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary, #94a3b8);
    background: rgba(59, 130, 246, 0.1);
    border-bottom: 1px solid var(--border-color, #334155);
}

.section-contacts-group-header i {
    color: #3b82f6;
    font-size: 11px;
}

.section-contacts-group-items {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ========================================
   CONTACT ITEM
   ======================================== */

.section-contact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    background: var(--bg-secondary, #1e293b);
    border-radius: 6px;
    border: 1px solid var(--border-color, #334155);
    transition: border-color 0.2s;
}

.section-contact-item:hover {
    border-color: #3b82f6;
}

.section-contact-item-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-contact-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-secondary, #94a3b8);
}

.section-contact-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

.section-contact-value:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.section-contact-value i {
    font-size: 12px;
    opacity: 0.7;
}

.section-contact-notes {
    font-size: 12px;
    color: var(--text-secondary, #94a3b8);
    font-style: italic;
    padding-left: 2px;
}

.section-contact-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    width: fit-content;
}

.section-contact-badge.global {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.section-contact-badge.local {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 480px) {
    .section-contacts-modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 10px;
    }

    .section-contacts-modal-header,
    .section-contacts-modal-body,
    .section-contacts-modal-footer {
        padding: 12px 16px;
    }

    .section-contacts-modal-footer {
        flex-direction: column-reverse;
    }

    .section-contacts-modal-footer .btn {
        width: 100%;
    }
}
