/* ============================================= */
/* קובץ: css/settings.css                       */
/* עיצוב "לבן נקי" עם הדגשת כתום וכחול משני */
/* ============================================= */

:root {
    /* פלטת צבעים מעודכנת עם דגש על כתום */
    --card-bg-color: rgba(255, 255, 255, 0.7);
    --card-border-color: rgba(222, 226, 230, 0.9);
    --text-primary-color: #212529; /* טקסט שחור-כהה */
    --text-secondary-color: #6c757d; /* אפור לטקסט משני */
    --accent-color-orange: #f57c00; /* כתום דומיננטי */
    --accent-color-blue: #005fB9; /* כחול למטרות משניות */
    
    /* הגדרות כפתורים עם דגש על כתום */
    --primary-btn-bg: var(--accent-color-orange);
    --primary-btn-text: #ffffff;
    --secondary-btn-border: var(--accent-color-blue);
    --secondary-btn-text: var(--accent-color-blue);

    /* הגדרות כלליות */
    --card-border-radius: 16px;
    --blur-intensity: 10px;
}

#settingsViewArea {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
    min-height: 80vh;
    background-color: #f8f9fa; /* רקע כללי לבן-שבור */
}

/* ============================================= */
/* רקע אנימטיבי עדין                  */
/* ============================================= */
.background-blobs {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35; /* עדין יותר */
}

.blob:nth-child(1) {
    width: 400px; height: 400px;
    background: #ffcda8; /* כתום-אפרסק בהיר */
    animation: moveBlob1 30s infinite alternate;
}

.blob:nth-child(2) {
    width: 350px; height: 350px;
    background: #aadaff; /* תכלת עדין */
    animation: moveBlob2 35s infinite alternate;
}

.blob:nth-child(3) {
    width: 300px; height: 300px;
    background: #ffb593; /* גוון כתום נוסף */
    animation: moveBlob3 25s infinite alternate;
}

@keyframes moveBlob1 {
    from { transform: translate(-20%, -20%) scale(1); }
    to { transform: translate(20%, 40%) scale(1.2); }
}

@keyframes moveBlob2 {
    from { transform: translate(100%, 20%) scale(1); }
    to { transform: translate(60%, 80%) scale(0.8); }
}

@keyframes moveBlob3 {
    from { transform: translate(30%, 100%) scale(0.9); }
    to { transform: translate(80%, -10%) scale(1.1); }
}

/* ============================================= */
/* פריסת עמוד וסידור כרטיסים             */
/* ============================================= */
.settings-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    color: var(--text-primary-color);
}

.settings-page h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-primary-color);
    margin-bottom: 30px;
    font-weight: 700;
}

.settings-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

/* ============================================= */
/* עיצוב כרטיס "זכוכית" לבן            */
/* ============================================= */
.setting-card {
    background: var(--card-bg-color);
    border-radius: var(--card-border-radius);
    border: 1px solid var(--card-border-color);
    padding: 25px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(var(--blur-intensity));
    -webkit-backdrop-filter: blur(var(--blur-intensity));
    transition: transform 0.2s ease-in-out, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.setting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.12);
}

.card-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 15px;
}

.card-title i {
    margin-right: 12px;
    color: var(--accent-color-orange); /* אייקון הכותרת בכתום */
}

.card-divider {
    border: none;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 25px 0;
}

.card-footer {
    margin-top: auto;
    padding-top: 20px; 
}

/* ============================================= */
/* עיצוב תוכן הכרטיסים                */
/* ============================================= */
.profile-details .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.profile-details .detail-item:last-of-type {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary-color);
}
.detail-value {
    color: var(--text-primary-color);
}

/* עיצוב תגיות סטטוס */
.role-badge.role-premium {
    background-color: var(--accent-color-orange);
    color: white;
}
.role-badge.role-admin, .role-badge.role-founder {
    background-color: var(--accent-color-blue);
    color: white;
}

.display-name-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-name-container {
    display: flex;
    gap: 10px;
    width: 100%;
}

.preference-item h4 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--text-primary-color);
    font-weight: 600;
}
.setting-description {
    font-size: 0.9rem;
    color: var(--text-secondary-color);
    margin-bottom: 15px;
}
.setting-control {
    display: flex;
    gap: 10px;
    position: relative;
}
.current-setting {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary-color);
}

.anonymous-card {
    text-align: center;
    justify-content: center;
}

/* ============================================= */
/* עיצוב אלמנטים וטפסים             */
/* ============================================= */
.modern-input, .modern-select {
    width: 100%;
    padding: 10px 15px;
    background-color: #f0f2f5;
    border: 1px solid #ced4da;
    border-radius: 8px;
    color: var(--text-primary-color);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.modern-input::placeholder {
    color: #999;
}
.modern-input:focus, .modern-select:focus {
    outline: none;
    border-color: var(--accent-color-orange);
    box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.2);
}

.button.primary-button {
    background-color: var(--primary-btn-bg);
    color: var(--primary-btn-text);
    font-weight: bold;
    border: none;
}
.button.secondary-button {
    background-color: transparent;
    color: var(--secondary-btn-text);
    border: 1px solid var(--secondary-btn-border);
}
.button.secondary-button:hover {
    background-color: rgba(0, 95, 185, 0.05);
}

.icon-button {
    background: none;
    border: none;
    color: var(--text-secondary-color);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
}
.icon-button:hover {
    color: var(--accent-color-orange); /* אייקון עריכה במעבר עכבר */
}

.hidden {
    display: none !important;
}

.city-dropdown-settings {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    z-index: 1001;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-height: 180px;
    overflow-y: auto;
}
.city-dropdown-settings div {
    padding: 12px 15px;
    cursor: pointer;
    color: var(--text-primary-color);
    transition: background-color 0.2s;
}
.city-dropdown-settings div:hover {
    background-color: #f0f0f0;
}

/* ============================================= */
/* רספונסיביות                  */
/* ============================================= */
@media (max-width: 480px) {
    .settings-page {
        padding: 10px;
    }
    .settings-cards-container {
        grid-template-columns: 1fr;
    }
    .settings-page h2 {
        font-size: 2rem;
    }
    .setting-card {
        padding: 20px;
    }
    .profile-details .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}