/**
 * SOS-Notfallseite Styles
 * 
 * Professionell & DSGVO-konform
 */

/* === HERO CARD === */
.hero.card {
    position: relative;
    margin-top: 20px !important;
}

/* Login-Button auf dem Rand der Hero-Card */
.card-btn--login {
    position: absolute;
    top: -15px;
    right: 16px;
    z-index: 10;
}

/* === SCHWANGERSCHAFTS-BANNER === */
.pregnancy-banner {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 15px 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* === PROFIL DISPLAY (wie edit_details.php) === */
.profile-display {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.profile-avatar {
    flex-shrink: 0;
}

.profile-avatar img {
    width: 222px;
    height: 336px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid var(--border);
}

.profile-details {
    flex: 1;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
}

.profile-age {
    font-size: 16px;
    color: var(--muted);
    margin: 0 0 8px;
}

.profile-languages {
    font-size: 14px;
    color: var(--text);
    margin: 0 0 15px;
}

.profile-languages strong {
    color: var(--primary);
}

/* Schwangerschafts-Alert */
.pregnancy-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 16px;
    margin: 0 0 15px 0;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.pregnancy-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.pregnancy-text {
    flex: 1;
}

.pregnancy-text strong {
    display: block;
    font-size: 16px;
    color: #f57c00;
    margin-bottom: 4px;
}

.pregnancy-text p {
    margin: 0;
    font-size: 15px;
    color: #f57c00;
    font-weight: 600;
}

.btn-medical {
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-medical:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* === KONTAKTE === */
.contact-section {
    margin-bottom: 12px;
}

.contact-card {
    padding: 18px;
}

/* Primärkontakt hervorheben */
.contact-card--primary {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border: 2px solid #ffc107;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.contact-card--primary .contact-relation {
    color: #f57c00;
}

.contact-relation {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 12px;
}

.contact-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-contact {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-contact:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.btn-call {
    background: #3498db;
    color: white;
    flex: 1;
    min-width: 120px;
}

.btn-call:hover {
    background: #2980b9;
}

/* Theme-basierte Farben für Anrufen-Button */
.theme-man .btn-call {
    background: #3498db;
}

.theme-man .btn-call:hover {
    background: #2980b9;
}

.theme-woman .btn-call {
    background: #e91e63;
}

.theme-woman .btn-call:hover {
    background: #c2185b;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    flex: 1;
    min-width: 120px;
}

.btn-whatsapp:hover {
    background: #1da851;
}

.btn-messenger {
    background: #7f8c8d;
    color: white;
    flex: 1;
    min-width: 140px;
}

.btn-messenger:hover {
    background: #6c7a89;
}

/* === OVERLAY === */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#overlay.visible {
    display: flex;
}

.overlay-box {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

/* Overlay Header (fixiert) */
.overlay-header {
    padding: 30px 30px 20px 30px;
    flex-shrink: 0;
    position: relative;
}

/* Overlay Content (scrollbar) */
.overlay-content {
    padding: 0 30px 30px 30px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
}

/* Custom Scrollbar */
.overlay-content::-webkit-scrollbar {
    width: 8px;
}

.overlay-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.overlay-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.overlay-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.overlay-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.overlay-close:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #999;
    transform: rotate(90deg);
}

.overlay-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 50px 24px 0;
    color: var(--text);
}

/* === MEDICAL OVERLAY === */
.medical-section {
    margin-bottom: 24px;
}

.medical-section:last-child {
    margin-bottom: 0;
}

.medical-heading {
    font-size: 15px;
    color: var(--text);
    margin: 0 0 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.medical-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.medical-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.medical-item {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.medical-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* BLUTGRUPPEN-BADGE - Groß und aufmerksamkeitsstark */
.blood-type-badge {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.blood-icon {
    font-size: 48px;
    line-height: 1;
    flex-shrink: 0;
}

.blood-info {
    flex: 1;
}

.blood-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 4px;
    font-weight: 600;
}

.blood-value {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* KRITISCH - Allergien (Rot) */
.medical-critical .medical-heading {
    color: #e74c3c;
}

.medical-item-critical {
    background: #fee;
    color: #c0392b;
    border-left: 4px solid #e74c3c;
}

/* WARNUNG - Krankheiten (Orange) */
.medical-warning .medical-heading {
    color: #e67e22;
}

.medical-item-warning {
    background: #fef5e7;
    color: #d68910;
    border-left: 4px solid #e67e22;
}

/* INFO - Medikamente (Blau) */
.medical-info .medical-heading {
    color: #3498db;
}

.medical-item-info {
    background: #eaf4fb;
    color: #2874a6;
    border-left: 4px solid #3498db;
}

/* NEUTRAL - Kommunikation (Grau) */
.medical-neutral .medical-heading {
    color: #7f8c8d;
}

.medical-item-neutral {
    background: #f4f6f7;
    color: #566573;
    border-left: 4px solid #95a5a6;
}

/* Keine Daten Nachricht */
.no-data-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
    font-size: 15px;
}

/* === MESSENGER OVERLAY === */
.messenger-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.messenger-svg-btn {
    display: block;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
}

.messenger-svg-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.messenger-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* === AVATAR BORDER COLORS (Theme-basiert) === */
.profile-avatar-img {
    border: 3px solid #ddd; /* Standard: Neutral */
}

.theme-man .profile-avatar-img {
    border-color: #3498db; /* Blau für männlich */
}

.theme-woman .profile-avatar-img {
    border-color: #e91e63; /* Pink für weiblich */
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .profile-display {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-avatar img {
        width: 200px;
        height: 300px;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .btn-contact {
        width: 100%;
        min-width: auto;
    }
    
    .overlay-box {
        padding: 24px;
    }
    
    .pregnancy-banner {
        font-size: 14px;
        padding: 12px 15px;
    }
}
