/* =========================================================
   PROFILE EDIT - APPLE CHROMATIC RED GLASS (Sürüm: v3.4.0)
========================================================= */

.profile-edit-page {
    position: relative;
    padding: 160px 5% 80px;
    min-height: 100vh;
    background: url('../img/1920x1080-ILS-Background.png') no-repeat center center fixed;
    background-size: cover;
}

.profile-edit-page::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(230, 230, 235, 0.65), rgba(210, 210, 215, 0.80));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 0;
}

.profile-edit-container {
    position: relative;
    z-index: 1;
    max-width: 750px; /* Formun dağılmaması için kompakt Apple genişliği */
    margin: 0 auto;
}

.profile-edit-header {
    text-align: center;
    margin-bottom: 35px;
}

.profile-edit-header h1 {
    font-size: 3rem;
    color: #1d1d1f;
    letter-spacing: -1px;
}

.profile-edit-header p {
    font-size: 1.1rem;
    color: #424245;
    margin-top: 8px;
}

/* Çerçevesiz, Kırmızı Ambiyans Gölgeli Saf Kart Düzeni */
.profile-edit-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(169, 0, 0, 0.08);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(169, 0, 0, 0.08);
}

/* Avatar Değiştirme Motor Stili */
.avatar-change-section {
    display: flex;
    align-items: center;
    gap: 25px;
    padding-bottom: 10px;
}

.current-avatar-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(169, 0, 0, 0.2);
    flex-shrink: 0;
}

.current-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btn-avatar-upload {
    display: inline-block;
    background: #1d1d1f;
    color: #fff;
    padding: 8px 18px;
    border-radius: 14px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: bold;
    align-self: flex-start;
    transition: all 0.3s ease;
}
.btn-avatar-upload:hover {
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(169, 0, 0, 0.3);
}

.avatar-upload-meta span {
    font-size: 0.78rem;
    color: #6e6e73;
}

.form-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 25px 0;
}

/* Giriş Elemanları (Form Inputs) */
.form-row-twin {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.profile-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.profile-form-group label {
    font-size: 0.9rem;
    color: #1d1d1f;
    font-weight: bold;
    letter-spacing: -0.2px;
}

.profile-form-group input,
.profile-form-group textarea,
.profile-form-group select {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    color: #1d1d1f;
    font-family: inherit;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.3s ease;
}

.profile-form-group input:focus,
.profile-form-group textarea:focus,
.profile-form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 10px rgba(169, 0, 0, 0.18);
}

.profile-form-group textarea {
    height: 100px;
    resize: none;
    line-height: 1.5;
}

/* Özel Apple Tarzı Dropdown Süslemesi */
.apple-select-wrapper {
    position: relative;
    width: 100%;
}
.apple-select-wrapper::after {
    content: '↓';
    font-size: 0.8rem;
    color: #6e6e73;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.apple-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
}

/* Form Buton Alanları */
.profile-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.btn-cancel {
    color: #6e6e73;
    font-size: 0.95rem;
    font-weight: bold;
    transition: color 0.3s;
}
.btn-cancel:hover {
    color: #1d1d1f;
}

.btn-save-profile {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 28px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(169, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-save-profile:hover {
    background: #800000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(169, 0, 0, 0.35);
}

@media screen and (max-width: 768px) {
    .form-row-twin { grid-template-columns: 1fr; gap: 0; }
    .avatar-change-section { flex-direction: column; text-align: center; }
    .btn-avatar-upload { align-self: center; }
}