/* ========== GENEL ========== */
.account-wrapper {
  display: flex;
  gap: 32px;
  max-width: 1100px;
  margin: 85px auto;
  padding: 0 20px 40px;
  background: #fafafa;
  font-family: "Cardo", serif;
  color: #333;
}

/* ========== SOL MENÜ ========== */
.account-sidebar {
  width: 270px;
  background: #fff;
  padding: 20px 18px 24px;
  border-radius: 16px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* public profil butonu */
.public-profile-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 35px;
  margin-bottom: 18px;
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(to right, #ff6b6b, #ff8a80);
  color: #fff;
  font-size: 15px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.25s;
}

.public-profile-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.sidebar-category {
  font-size: 17px;
  font-weight: bold;
  margin: 18px 0 10px;
  color: #7b1a1a;
}

.sidebar-item {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #f7f7f7;
  text-align: left;
  font-size: 15px;
  cursor: pointer;
  transition: 0.25s;
}

.sidebar-item:hover {
  background: #ebebeb;
}

.sidebar-item.active {
  background: linear-gradient(to right, #d62424, #ff5d5d);
  color: #fff;
  border: none;
}

.sidebar-item.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sidebar-item.danger {
  background: #ffe3e3;
  border-color: #ffb3b3;
  color: #b10000;
}

/* ========== SAĞ PANEL ========== */
.account-content {
  flex: 1;
  background: #fff;
  padding: 32px 40px;
  border-radius: 16px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

.title {
  font-size: 28px;
  font-weight: bold;
}

.title.danger {
  color: #b10000;
}

.desc {
  font-size: 15px;
  color: #777;
  margin-bottom: 25px;
}

.content-box {
  display: none;
}

/* Alert mesajları */
.account-alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
}

.account-alert.error {
  background: #ffe3e3;
  color: #b00020;
  border: 1px solid #ffb3b3;
}

.account-alert.success {
  background: #e4ffea;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

/* Form */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  font-size: 16px;
  margin-bottom: 6px;
  display: block;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #f5f5f5;
}

.info {
  font-size: 13px;
  color: #999;
  margin-top: 4px;
  display: inline-block;
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.btn {
  padding: 12px 26px;
  font-size: 15px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

.btn.save {
  background: linear-gradient(to right, #ff7a7a, #ff9f80);
  color: white;
}

.btn.cancel {
  background: #ddd;
}

.btn.delete {
  background: linear-gradient(to right, #ff3131, #ff6b6b);
  color: #fff;
}

/* ========== SWITCH ========== */
.toggle-row {
  background: #f7f7f7;
  padding: 14px 18px;
  margin-bottom: 12px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.switch {
  position: relative;
  width: 48px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  transition: 0.3s;
}

.slider:before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: white;
  transition: 0.3s;
}

input:checked + .slider {
  background: #d62424;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* ========== MEDIA ========== */
.media-section {
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 22px;
}

.media-title {
  font-size: 20px;
}

.media-avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 10px;
}

.media-cover-preview {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid #fff;
  margin-bottom: 10px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .account-wrapper {
    flex-direction: column;
    max-width: 100%;
    margin: 20px auto 30px;
    padding: 0 16px 20px;
  }

  .account-sidebar {
    width: 100%;
  }

  .account-content {
    padding: 24px 18px;
  }
}

@media (max-width: 600px) {
  .sidebar-item {
    font-size: 14px;
    padding: 10px 12px;
  }

  .title {
    font-size: 24px;
  }
}

/* ================================
      BIYOGRAFİ TEXTAREA
================================ */
.content-box textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  font-size: 15px;
  resize: vertical;
  min-height: 90px;
  background: #fafafa;
}

.content-box textarea:focus {
  border-color: #b33a3a;
  background: #fff;
  outline: none;
}

/* ================================
      HESAP SİLME MODAL — FINAL
================================ */

#deleteModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  padding: 20px;
  backdrop-filter: blur(3px);
}

.delete-modal-content {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 30px 24px;
  border: 2px solid #8b0000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.25s ease;
  text-align: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.delete-modal-content h2 {
  font-size: 24px;
  margin-bottom: 10px;
  background: linear-gradient(to right, #731919, #e52b2b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.warning-text {
  font-size: 14px;
  margin-bottom: 18px;
  color: #222;
}

.modal-label {
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  margin-top: 10px;
}

.modal-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #bbb;
  font-size: 15px;
  outline: none;
  transition: 0.2s;
}

.modal-input:focus {
  border-color: #e52b2b;
}

#modalError {
  color: #b00020;
  font-size: 14px;
  margin-top: 12px;
  min-height: 20px;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.cancel-btn,
.delete-btn {
  flex: 1;
  padding: 12px 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  border: none;
  transition: 0.2s;
}

.cancel-btn {
  background: #ddd;
  color: black;
}

.cancel-btn:hover {
  background: #cacaca;
}

.delete-btn {
  background: linear-gradient(to right, #731919, #e52b2b);
  color: #fff;
  font-weight: 600;
}

.delete-btn:hover {
  opacity: 0.85;
}

@media (max-width: 480px) {
  .delete-modal-content {
    padding: 22px 18px;
  }
}

/* ================================
     ŞİFRE DEĞİŞTİR — TASARIM
================================ */

#password .subtitle {
  font-size: 18px;
  font-weight: 600;
  color: #731919;
  margin-bottom: 12px;
  text-align: left;
}

#password form {
  margin-bottom: 18px;
}

#password .input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  background: #fafafa;
  border-radius: 10px;
  font-size: 15px;
  margin-bottom: 10px;
  transition: 0.2s;
}

#password .input:focus {
  border-color: #b33a3a;
  background: #fff;
  outline: none;
}

#password button.btn {
  margin-top: 6px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
}

#verifyBox,
#newPasswordBox {
  background: #fdfdfd;
  border: 1px solid #e4e4e4;
  padding: 20px 22px;
  border-radius: 14px;
  margin-top: 25px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Doğrulama / Yeni şifre alanı butonu */
#password .btn.green {
  background: linear-gradient(to right, #28a745, #59d36c);
  color: white;
}

#password .btn.green:hover {
  opacity: 0.9;
}

#password .btn.save {
  background: linear-gradient(to right, #ff7a7a, #ff9f80);
  color: white;
}

#password .btn.save:hover {
  opacity: 0.9;
}

/* RESPONSIVE düzenlemeler */
@media (max-width: 600px) {
  #verifyBox,
  #newPasswordBox {
    padding: 16px;
  }

  #password .subtitle {
    font-size: 16px;
  }

  #password .input {
    padding: 10px;
  }
}

/* ===============================
   PROFIL MEDYASI — DÜZGÜN GÖRÜNÜM
================================ */

.profile-section,
.cover-section {
  margin-bottom: 40px;
}

.avatar-box {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #eee;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

/* Kapak fotoğrafı */
.cover-box {
  width: 100%;
  max-width: 380px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid #eee;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

/* Upload butonu */
.upload-btn {
  display: inline-block;
  padding: 10px 18px;
  background: #d62424;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 10px;
}

.upload-btn:hover {
  opacity: 0.8;
}

.hidden-input {
  display: none;
}

.save-btn {
  padding: 10px 20px;
  background: linear-gradient(45deg, #ff7a7a, #ff9f80);
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  font-size: 15px;
}

.save-btn:hover {
  opacity: 0.9;
}

/* ===========================
   DANGER BUTTON
=========================== */
.danger-btn {
  width: 100%;
  background: #d62828;
  color: #fff;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.25s ease;
  margin-top: 15px;
  text-align: center;
}

.danger-btn:hover {
  background: #b52222;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(214, 40, 40, 0.4);
}

.danger-btn:active {
  transform: scale(0.97);
}

/* ===============================
   ACCOUNT LOADING SPINNER
================================ */
.account-loading {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  border-radius: 16px;
  backdrop-filter: blur(2px);
}

.account-loading p {
  margin-top: 12px;
  font-size: 15px;
  color: #555;
  font-family: "Cardo", serif;
}

/* Spinner */
.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #ddd;
  border-top: 4px solid #731919;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===========================
   ORTAK FOTOĞRAF YÜKLEME SPINNER
=========================== */

.media-loading {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999999;
  pointer-events: all;
}

.media-loader-box {
  background: #ffffff;
  padding: 22px 28px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 120px;
}

.media-spinner {
  width: 30px;
  height: 30px;
  border: 4px solid #e4e4e4;
  border-top-color: #c62828;
  border-radius: 50%;
  animation: spinLoader .8s linear infinite;
}

.media-loader-box span {
  font-size: 14px;
  color: #333;
}

@keyframes spinLoader {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ===========================
    GLOBAL LOADER (EKRANI KAPLAYAN)
=========================== */

.global-loader {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  backdrop-filter: blur(3px);
}

.loader-box {
  background: #ffffff;
  padding: 20px 26px;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 110px;
}

.loader-spinner {
  width: 32px;
  height: 32px;
  border: 4px solid #e8e8e8;
  border-top-color: #d62424;
  border-radius: 50%;
  animation: rotateLoader .7s linear infinite;
}

.loader-box span {
  font-size: 14px;
  color: #444;
}

@keyframes rotateLoader {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
