/**
 * Frontend Styles
 * Lodur User Manager
 */

/* === Allgemein === */
.lodur-section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1e293b;
    border-bottom: 3px solid #dc2626;
    padding-bottom: 15px;
}

/* === Member Grid === */
.lodur-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .lodur-member-grid {
        grid-template-columns: 1fr;
    }
}

/* === Member Card === */
.lodur-member-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.lodur-member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

/* Neueintritte Badge */
.lodur-member-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* Avatar */
.lodur-member-avatar {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lodur-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lodur-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.lodur-avatar-small {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

/* Member Info */
.lodur-member-info {
    padding: 20px;
}

.lodur-member-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1e293b;
}

.lodur-member-rang {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 8px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lodur-member-funktion {
    font-size: 14px;
    color: #dc2626;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.lodur-member-eintritt {
    font-size: 13px;
    color: #64748b;
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lodur-member-eintritt .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

/* Tags */
.lodur-member-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.lodur-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.lodur-tag-more {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

/* === Neueintritte === */
.lodur-neueintritte {
    margin: 40px 0;
}

.lodur-neueintritte-card {
    border-top: 4px solid #dc2626;
}

.lodur-keine-neueintritte {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    font-size: 16px;
}

/* === Mitglieder-Liste === */
.lodur-mitglieder-liste {
    margin: 40px 0;
}

.lodur-keine-mitglieder {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    font-size: 16px;
}

/* === Organigramm === */
.lodur-organigramm {
    margin: 40px 0;
}

.lodur-organigramm-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 8px;
    color: #64748b;
}

.lodur-org-ebene {
    margin-bottom: 50px;
}

.lodur-org-ebene-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    padding-left: 16px;
    border-left: 4px solid #dc2626;
}

.lodur-org-members-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    justify-items: center;
}

@media (max-width: 768px) {
    .lodur-org-members-row {
        grid-template-columns: 1fr;
    }
}

.lodur-org-member {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 220px;
}

.lodur-org-member:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    border-color: #dc2626;
}

.lodur-org-member-avatar {
    margin-bottom: 16px;
}

.lodur-org-member-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
}

.lodur-org-member-info {
    min-width: 0;
}

.lodur-org-member-funktion {
    font-size: 11px;
    color: #dc2626;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
}

.lodur-org-member-name {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.lodur-org-member-rang {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    text-transform: uppercase;
    font-weight: 500;
}

/* === Responsive === */
@media (max-width: 480px) {
    .lodur-member-avatar {
        height: 200px;
    }
    
    .lodur-section-title {
        font-size: 22px;
    }
    
    .lodur-member-name {
        font-size: 18px;
    }
}
