/* Kişisel Bilgiler Düzenleme Sayfası Stilleri */

.personal-info-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Sayfa başlığı */
.page-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #DD0000;
}

.back-button {
  background: transparent;
  border: 2px solid #DD0000;
  color: #DD0000;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-button:hover {
  background-color: rgba(221, 0, 0, 0.1);
}

.page-header h2 {
  margin: 0;
  color: #DD0000;
  font-size: 1.8rem;
}

/* Ana container */
.personal-info-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Bilgi bölümleri */
.info-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.info-section h3 {
  margin: 0 0 20px 0;
  color: #1f2937;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Profil fotoğrafı bölümü */
.photo-upload-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.current-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #DD0000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.current-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-upload-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upload-btn, .remove-btn {
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.upload-btn {
  background-color: #DD0000;
  color: white;
}

.upload-btn:hover {
  background-color: #bb0000;
}

.remove-btn {
  background-color: #6b7280;
  color: white;
}

.remove-btn:hover {
  background-color: #4b5563;
}

/* Form stilleri */
.personal-info-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #DD0000;
  box-shadow: 0 0 0 3px rgba(221, 0, 0, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Form butonları */
.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.cancel-btn, .save-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.cancel-btn {
  background-color: #f3f4f6;
  color: #6b7280;
  border: 2px solid #d1d5db;
}

.cancel-btn:hover {
  background-color: #e5e7eb;
  color: #4b5563;
}

.save-btn {
  background-color: #DD0000;
  color: white;
  border: 2px solid #DD0000;
}

.save-btn:hover {
  background-color: #bb0000;
  border-color: #bb0000;
}

/* Ayarlar bağlantısı stili */
.setting-link {
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.setting-link:hover {
  background-color: rgba(221, 0, 0, 0.05);
}

.setting-arrow {
  color: #9ca3af;
  display: flex;
  align-items: center;
}

/* Dark mode kodları - Kişisel bilgiler sayfası karanlık tema */
body.dark-mode .personal-info-page {
  color: #e5e7eb;
}

body.dark-mode .info-section {
  background-color: #2A2D34;
  border-color: #4b5563;
}

body.dark-mode .info-section h3 {
  color: #e5e7eb;
}

body.dark-mode .page-header h2 {
  color: #FFCE00;
}

body.dark-mode .page-header {
  border-bottom-color: #FFCE00;
}

body.dark-mode .back-button {
  border-color: #FFCE00;
  color: #FFCE00;
}

body.dark-mode .back-button:hover {
  background-color: rgba(255, 206, 0, 0.1);
}

body.dark-mode .form-group label {
  color: #d1d5db;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
  background-color: #374151;
  border-color: #4b5563;
  color: #e5e7eb;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
  border-color: #FFCE00;
  box-shadow: 0 0 0 3px rgba(255, 206, 0, 0.1);
}

body.dark-mode .form-actions {
  border-top-color: #4b5563;
}

body.dark-mode .cancel-btn {
  background-color: #374151;
  color: #9ca3af;
  border-color: #4b5563;
}

body.dark-mode .cancel-btn:hover {
  background-color: #4b5563;
  color: #d1d5db;
}

body.dark-mode .save-btn {
  background-color: #FFCE00;
  color: #1f2937;
  border-color: #FFCE00;
}

body.dark-mode .save-btn:hover {
  background-color: #fbbf24;
  border-color: #fbbf24;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
  .personal-info-page {
    padding: 15px;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .photo-upload-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .cancel-btn, .save-btn {
    width: 100%;
  }
}