/**
 * src/css/profile.css
 * ZUSTÄNDIGKEIT: Das visuelle Design des Profil-Dossiers.
 * FEATURES: Premium-Datenfelder, farbcodierte Themes (Blau/Rosa), 
 * Custom Dropdowns und professionelle Typografie.
 * FIX: Aggressives Überschreiben der Browser-Standardstile für select/input.
 */

/* --- 1. FARB-VARIABLEN (DAS THEME-SYSTEM) --- */
.profile-view-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-out;

    /* Standard-Werte (Männlich - Soft Blue) */
    --accent-bg: #ebf4ff;      /* Deutlicheres Pastell-Blau */
    --accent-border: #bee3f8;
    --accent-text: #2c5282;
    --accent-icon: #3182ce;
    --arrow-color: %233182ce;  /* URL-encoded für SVG */
    
    --ring-size: 600px;
}

/* Weibliches Theme (Soft Pink) */
.profile-view-wrapper.female-theme {
    --accent-bg: #fff5f7;      /* Edles Pastell-Rosa */
    --accent-border: #fed7e2;
    --accent-text: #702459;
    --accent-icon: #d53f8c;
    --arrow-color: %23d53f8c;  /* URL-encoded für SVG */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 2. DER HEADER (600PX RING) --- */
.profile-header-block {
    background: var(--white);
    width: 100%;
    max-width: 1000px;
    margin: 80px auto 40px auto; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 850px; 
    padding: 60px 40px; 
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
}

.profile-main-ring {
    z-index: 10;
    box-shadow: 0 35px 80px rgba(255, 215, 0, 0.4);
    width: var(--ring-size);
    height: var(--ring-size);
    border-radius: 50%;
    position: relative;
    overflow: hidden; 
    background: #f8f9fa;
    border: 8px solid var(--white);
}

.profile-main-ring::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../../ring.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 2;
    pointer-events: none;
}

.profile-main-ring img {
    width: 86.7%;
    height: 86.7%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    border-radius: 50%;
    z-index: 1;
}

/* --- 3. DIE DOSSIER-SEKTIONEN --- */
.profile-dossier-section {
    background: var(--white);
    width: 100%;
    max-width: 1000px;
    margin: 40px auto 40px auto; 
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* Sektions-Überschrift mit Icon */
.section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 35px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-bg);
}

.section-divider i {
    font-size: 20px;
    color: var(--accent-icon);
}

.section-divider span {
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dark);
}

/* Das Grid-Layout */
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 45px;
}

/* --- 4. DAS PREMIUM FELD-DESIGN (ULTRA-CLEAN) --- */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

/* Das Label (Beschriftung oben) */
.form-group label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    padding-left: 4px;
}

/* Aggressives Styling für select und input um Browser-Defaults zu killen */
.profile-view-wrapper select, 
.profile-view-wrapper input {
    width: 100% !important;
    padding: 16px 45px 16px 20px !important; /* Platz für den Pfeil rechts */
    border-radius: 15px !important;
    
    /* Veredelung: Pastell-Hintergrund & feiner Rahmen */
    background-color: var(--accent-bg) !important;
    border: 2px solid var(--accent-border) !important;
    color: var(--accent-text) !important;
    
    font-size: 15px !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    
    transition: all 0.25s ease !important;
    cursor: pointer !important;
    outline: none !important;
    
    /* Radikale Entfernung der Browser-Stile */
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    
    /* Custom Dropdown Icon (Modernes 'v') - Nutzt die CSS Variable für die Farbe */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='var(--accent-icon)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    /* Fallback falls var() im SVG nicht geht: */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    
    background-repeat: no-repeat !important;
    background-position: calc(100% - 15px) center !important;
    background-size: 16px !important;
}

/* Spezieller Fix für die Pfeil-Farbe via Masking oder Filter falls nötig, 
   aber meist reicht ein sauber gesetzter stroke im SVG */

/* Hover-Effekt */
.profile-view-wrapper select:hover, 
.profile-view-wrapper input:hover {
    background-color: var(--white) !important;
    border-color: var(--accent-icon) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

/* Fokus-Effekt */
.profile-view-wrapper select:focus, 
.profile-view-wrapper input:focus {
    background-color: var(--white) !important;
    border-color: var(--accent-icon) !important;
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.1) !important;
}

/* --- 5. ZUSATZ: FOTOGALERIE --- */
.photo-upload-section {
    background: var(--white);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 30px auto;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.photo-item {
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    background: #f9f9f9;
    border: 1.5px solid var(--accent-bg);
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.03);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- 6. MOBILE ANPASSUNG --- */
@media (max-width: 768px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .profile-header-block {
        padding: 40px 20px;
        min-height: auto;
    }
    
    .profile-view-wrapper select, 
    .profile-view-wrapper input {
        font-size: 16px !important; /* Verhindert Auto-Zoom auf iPhones */
    }
}