/* ============================================================
   HESABIM SAYFASI STİLLERİ
   ============================================================ */
.bg-cream { background-color: var(--color-warm-white, #faf9f6); }

.account-container {
  padding-top: 40px;
  padding-bottom: 80px;
  max-width: 1000px;
}

.account-header {
  text-align: center;
  margin-bottom: 40px;
}

.account-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--color-brown-dark);
  margin-bottom: 10px;
}

.account-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
}

/* Sol Menü */
.account-sidebar {
  background: white;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--color-beige-mid);
  height: fit-content;
}

.account-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.account-menu-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 12px 15px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  margin-bottom: 5px;
}

.account-menu-btn:hover {
  background: var(--color-cream);
  color: var(--color-brown);
}

.account-menu-btn.active {
  background: var(--color-beige);
  color: var(--color-brown-dark);
  font-weight: 600;
}

.logout-btn {
  color: #c0504d;
  margin-top: 20px;
  border-top: 1px solid var(--color-beige-mid);
  border-radius: 0;
  padding-top: 15px;
}

.logout-btn:hover {
  background: none;
  color: #a0403d;
  text-decoration: underline;
}

/* Sağ İçerik Alanı */
.account-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--color-beige-mid);
}

.account-tab {
  display: none; /* JS ile active class'ı eklenince görünür olacak */
  animation: fadeIn 0.4s ease;
}

.account-tab.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--color-brown-dark);
  margin-bottom: 25px;
  border-bottom: 1px solid var(--color-beige-mid);
  padding-bottom: 10px;
}

/* Profil Formu */
.profile-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.profile-form .form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.profile-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-brown);
  margin-bottom: 5px;
}

.profile-form input, .profile-form textarea {
  padding: 12px;
  border: 1px solid var(--color-beige-mid);
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  outline: none;
}

.profile-form input:disabled {
  background: #f9f9f9;
  color: #999;
  cursor: not-allowed;
}

.btn-save {
  background: var(--color-brown-dark);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.btn-save:hover { background: var(--color-brown); }

/* Sipariş Kartları */
.order-card {
  border: 1px solid var(--color-beige-mid);
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.order-header {
  background: var(--color-beige);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-beige-mid);
}

.order-date { display: block; font-size: 0.85rem; color: var(--color-text-muted); }
.order-id { font-weight: 600; color: var(--color-brown-dark); font-size: 0.95rem; }

.status-success {
  background: #e8f5e9; color: #2e7d32;
  padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
}

.order-body {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-items { display: flex; align-items: center; gap: 15px; font-size: 0.9rem; }
.order-items img { width: 50px; height: 50px; border-radius: 4px; object-fit: cover; }

/* Favoriler Grid */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.favorite-card {
  border: 1px solid var(--color-beige-mid);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.favorite-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.fav-info h4 { font-size: 0.95rem; color: var(--color-brown-dark); margin: 0 0 5px 0; }
.fav-info p { color: var(--color-brown); font-weight: 600; margin: 0 0 10px 0; }

.btn-remove-fav {
  background: white; border: 1px solid #c0504d; color: #c0504d;
  padding: 5px 15px; border-radius: 4px; cursor: pointer; transition: 0.3s;
}
.btn-remove-fav:hover { background: #c0504d; color: white; }

/* Mobil Uyumluluk */
@media (max-width: 768px) {
  .account-grid { grid-template-columns: 1fr; gap: 20px; }
  .profile-form .form-row { grid-template-columns: 1fr; }
  .order-body { flex-direction: column; align-items: flex-start; gap: 15px; }
}