/* ================================
   İLAN PAZARı - ANA STİL DOSYASI
   ================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
  --primary:       #FF4D00;
  --primary-dark:  #CC3D00;
  --primary-light: #FF7A40;
  --accent:        #FFB800;
  --accent2:       #00C9A7;
  --dark:          #0F0F0F;
  --dark2:         #1A1A1A;
  --dark3:         #242424;
  --gray:          #6B6B6B;
  --gray2:         #9A9A9A;
  --light:         #F5F5F0;
  --white:         #FFFFFF;
  --border:        rgba(0,0,0,0.08);
  --shadow:        0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:     0 12px 48px rgba(0,0,0,0.14);
  --radius:        12px;
  --radius-lg:     20px;
  --transition:    0.22s cubic-bezier(0.4,0,0.2,1);
  font-size: 15px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5 {
  font-family: 'Syne', sans-serif;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 99px; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 2px solid var(--dark);
  padding: 0 2rem;
  display: flex; align-items: center; gap: 1.5rem;
  height: 64px;
  box-shadow: 0 2px 0 var(--dark);
}

.navbar-brand {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.navbar-brand span { color: var(--primary); }
.navbar-brand .dot { 
  width: 8px; height: 8px; 
  background: var(--primary); 
  border-radius: 50%; 
  display: inline-block; 
  animation: pulse 1.5s infinite;
}

.search-bar {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.search-bar input {
  width: 100%;
  padding: 10px 16px 10px 44px;
  border: 2px solid var(--dark);
  border-radius: 99px;
  font-size: 0.9rem;
  background: var(--light);
  transition: var(--transition);
}
.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255,77,0,0.1);
}
.search-bar .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--gray); font-size: 1.1rem;
}
.search-bar button[type="submit"] {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: var(--primary);
  color: white;
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}
.search-bar button[type="submit"]:hover { background: var(--primary-dark); }

.navbar-actions {
  display: flex; align-items: center; gap: 0.75rem;
  margin-left: auto;
}

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,77,0,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark);
}
.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
}
.btn-ghost {
  background: transparent;
  color: var(--gray);
  padding: 9px 14px;
  border-radius: 99px;
  font-size: 1.1rem;
  position: relative;
}
.btn-ghost:hover { background: var(--light); color: var(--dark); }

.badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 99px;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
  line-height: 1.4;
}

/* ===== CATEGORIES BAR ===== */
.categories-bar {
  background: var(--dark);
  color: white;
  padding: 0 2rem;
  display: flex; align-items: center; gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.categories-bar::-webkit-scrollbar { display: none; }

.cat-item {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.cat-item:hover, .cat-item.active {
  color: white;
  border-bottom-color: var(--primary);
}
.cat-item .cat-emoji { font-size: 1rem; }

/* ===== HERO ===== */
.hero {
  background: var(--dark);
  color: white;
  padding: 4rem 2rem 3rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255,77,0,0.15) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(255,184,0,0.1) 0%, transparent 50%);
}
.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex; align-items: center; gap: 3rem;
  flex-wrap: wrap;
}
.hero-text { flex: 1; min-width: 280px; }
.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero-text h1 em {
  font-style: normal;
  color: var(--primary);
  position: relative;
}
.hero-text p {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.hero-stats {
  display: flex; gap: 2rem; flex-wrap: wrap;
}
.hero-stat strong {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  color: var(--accent);
  display: block;
}
.hero-stat span { font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== SECTION ===== */
.section { padding: 2.5rem 0; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 20px;
  background: var(--primary);
  border-radius: 2px;
}
.see-all {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.see-all:hover { text-decoration: underline; }

/* ===== LISTING CARD ===== */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.listing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.listing-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.listing-card.featured {
  border-color: var(--accent);
}
.featured-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--accent);
  color: var(--dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
}

.card-image {
  height: 180px;
  overflow: hidden;
  background: var(--light);
  position: relative;
}
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.listing-card:hover .card-image img { transform: scale(1.05); }

.fav-btn {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  border-radius: 99px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  border: 1.5px solid rgba(0,0,0,0.08);
}
.fav-btn:hover, .fav-btn.active { background: white; color: var(--primary); }

.card-body { padding: 12px 14px 14px; }

.card-category {
  font-size: 0.72rem;
  color: var(--gray2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.card-price {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.card-price .free { color: var(--accent2); }
.card-price .negotiable { font-size: 0.8rem; color: var(--gray2); font-weight: 400; }

.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.75rem;
  color: var(--gray2);
}
.card-location { display: flex; align-items: center; gap: 3px; }

/* ===== FILTER SIDEBAR ===== */
.browse-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.filter-sidebar {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: sticky;
  top: 80px;
}

.filter-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--light);
  display: flex; align-items: center; gap: 6px;
}

.filter-group { margin-bottom: 1.25rem; }
.filter-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.filter-group select,
.filter-group input[type="number"],
.filter-group input[type="text"] {
  width: 100%;
  padding: 9px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  transition: var(--transition);
  background: var(--light);
}
.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}

.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { flex: 1; }
.price-range span { color: var(--gray2); font-size: 0.8rem; }

.filter-btn-group { display: flex; gap: 8px; margin-top: 1rem; }
.filter-btn-group .btn { flex: 1; justify-content: center; font-size: 0.82rem; padding: 8px 12px; }

/* ===== SORT BAR ===== */
.sort-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap; gap: 8px;
}
.sort-bar span { font-size: 0.85rem; color: var(--gray); }
.sort-bar select {
  padding: 7px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
}
.sort-bar select:focus { outline: none; border-color: var(--primary); }

/* ===== PAGINATION ===== */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  margin-top: 2rem;
}
.page-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  background: var(--white);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: var(--transition);
}
.modal-overlay.open {
  opacity: 1; pointer-events: all;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-header {
  padding: 1.5rem 1.5rem 0;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.modal-title { font-size: 1.2rem; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px; border-radius: 99px;
  background: var(--light);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: var(--primary); color: white; }

.modal-body { padding: 0 1.5rem 1.5rem; }

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 5px;
}
.form-group label .required { color: var(--primary); }

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--light);
  color: var(--dark);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255,77,0,0.08);
}
.form-control::placeholder { color: var(--gray2); }

textarea.form-control { resize: vertical; min-height: 100px; }

.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

.form-tabs {
  display: flex; gap: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.form-tab {
  flex: 1;
  padding: 9px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray);
  background: var(--light);
  transition: var(--transition);
}
.form-tab.active { background: var(--primary); color: white; }

/* ===== ERROR / TOAST ===== */
.toast-container {
  position: fixed; top: 80px; right: 1.5rem; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--dark);
  color: white;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 8px;
  animation: slideInRight 0.3s ease;
  max-width: 320px;
}
.toast.success { background: var(--accent2); color: var(--dark); }
.toast.error   { background: #ff4d4d; }
.toast.info    { background: var(--primary); }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ===== LISTING DETAIL ===== */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

.gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark);
  margin-bottom: 1rem;
}
.gallery-main { aspect-ratio: 4/3; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: flex; gap: 6px; padding: 8px;
  overflow-x: auto;
}
.gallery-thumbs .thumb {
  width: 64px; height: 48px; flex-shrink: 0;
  border-radius: 6px; overflow: hidden;
  opacity: 0.6; cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.gallery-thumbs .thumb.active,
.gallery-thumbs .thumb:hover { opacity: 1; border-color: var(--primary); }
.gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.detail-price {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.detail-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.detail-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1rem;
}
.meta-tag {
  display: flex; align-items: center; gap: 4px;
  background: var(--light);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--dark);
}

.seller-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.seller-avatar {
  width: 48px; height: 48px;
  border-radius: 99px;
  background: var(--primary);
  color: white;
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
}
.seller-name { font-weight: 700; font-size: 1rem; }
.seller-info { font-size: 0.8rem; color: var(--gray2); }

/* ===== MESSAGES ===== */
.messages-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  height: calc(100vh - 130px);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.conv-list {
  border-right: 2px solid var(--border);
  overflow-y: auto;
}
.conv-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--light);
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; gap: 12px;
}
.conv-item:hover, .conv-item.active { background: var(--light); }
.conv-avatar {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 99px;
  background: var(--primary);
  color: white;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.conv-info { flex: 1; min-width: 0; }
.conv-name { font-weight: 600; font-size: 0.88rem; }
.conv-preview {
  font-size: 0.78rem;
  color: var(--gray2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.conv-unread {
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 99px;
  min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

.chat-area { display: flex; flex-direction: column; }
.chat-header {
  padding: 14px 16px;
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--white);
}
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 1rem;
  display: flex; flex-direction: column; gap: 8px;
}
.msg-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  position: relative;
}
.msg-bubble.mine {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.msg-bubble.theirs {
  background: var(--light);
  color: var(--dark);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.msg-time {
  font-size: 0.68rem;
  opacity: 0.65;
  margin-top: 3px;
  text-align: right;
}
.chat-input-area {
  padding: 12px 16px;
  border-top: 2px solid var(--border);
  display: flex; gap: 8px;
  background: var(--white);
}
.chat-input-area input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 99px;
  font-size: 0.88rem;
  font-family: inherit;
  transition: var(--transition);
}
.chat-input-area input:focus {
  outline: none;
  border-color: var(--primary);
}
.chat-input-area button {
  background: var(--primary);
  color: white;
  border-radius: 99px;
  padding: 0 18px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
}
.chat-input-area button:hover { background: var(--primary-dark); }

/* ===== IMAGE UPLOAD ===== */
.image-upload-area {
  border: 2px dashed var(--primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(255,77,0,0.03);
}
.image-upload-area:hover { background: rgba(255,77,0,0.06); }
.image-upload-area .upload-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.image-upload-area p { font-size: 0.85rem; color: var(--gray); }
.upload-preview {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.preview-item {
  width: 80px; height: 80px;
  border-radius: var(--radius);
  overflow: hidden; position: relative;
  border: 2px solid var(--border);
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-remove {
  position: absolute; top: 2px; right: 2px;
  background: rgba(0,0,0,0.6);
  color: white; font-size: 0.75rem;
  border-radius: 99px;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
}

/* ===== PROFILE / MY LISTINGS ===== */
.profile-header {
  background: var(--dark);
  color: white;
  padding: 2.5rem 0;
  margin-bottom: 2rem;
}
.profile-avatar-lg {
  width: 72px; height: 72px;
  border-radius: 99px;
  background: var(--primary);
  color: white;
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.profile-tabs {
  display: flex; gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}
.profile-tab {
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  cursor: pointer;
}
.profile-tab.active, .profile-tab:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ===== STATUS BADGES ===== */
.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.status-active   { background: rgba(0,201,167,0.12); color: var(--accent2); }
.status-pending  { background: rgba(255,184,0,0.15); color: #B38A00; }
.status-sold     { background: rgba(107,107,107,0.12); color: var(--gray); }
.status-rejected { background: rgba(255,77,77,0.12); color: #ff4d4d; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray2);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.1rem; color: var(--dark); margin-bottom: 0.5rem; }
.empty-state p { font-size: 0.88rem; }

/* ===== LOADING ===== */
.skeleton {
  background: linear-gradient(90deg, var(--light) 25%, #eee 50%, var(--light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  height: 280px;
  border-radius: var(--radius-lg);
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800; color: white; margin-bottom: 0.75rem; }
.footer-brand span { color: var(--primary); }
.footer-desc { font-size: 0.82rem; line-height: 1.7; }
.footer-col h4 { font-family: 'Syne', sans-serif; color: white; font-size: 0.9rem; margin-bottom: 0.75rem; }
.footer-col a { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 6px; transition: var(--transition); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem;
  flex-wrap: wrap; gap: 8px;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease forwards; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .browse-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .detail-layout { grid-template-columns: 1fr; }
  .messages-layout { grid-template-columns: 1fr; height: auto; }
  .conv-list { border-right: none; border-bottom: 2px solid var(--border); max-height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .navbar { padding: 0 1rem; }
  .search-bar { max-width: 100%; }
  .navbar-brand .dot { display: none; }
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1rem; }
}

/* ===== KATEGORİ DROPDOWN (JS kontrollü) ===== */
.cat-item.has-subs { cursor: pointer; }

/* Floating dropdown - body'e append edilir */
.cat-floating-dropdown {
  position: fixed;
  background: #1a1a1a;
  border: 2px solid rgba(255,77,0,0.35);
  border-radius: var(--radius);
  min-width: 190px;
  z-index: 9999;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  padding: 5px 0;
  animation: dropFadeIn 0.15s ease;
}
@keyframes dropFadeIn {
  from { opacity:0; transform:translateY(-6px); }
  to   { opacity:1; transform:translateY(0); }
}
.cat-sub-item {
  padding: 10px 16px;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.72);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-sub-item:hover { background: rgba(255,77,0,0.18); color: white; }
.cat-sub-item.active { color: var(--primary); font-weight:600; }

/* ===== DETAY MODAL GENİŞLETME ===== */
#detail-modal .modal {
  max-height: 96vh;
  overflow-y: auto;
}

#detail-modal .detail-layout {
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
}

#detail-modal .modal-body {
  padding: 0 1.75rem 1.75rem;
}

#detail-modal .gallery-main {
  aspect-ratio: 16/10;
}

@media (max-width: 768px) {
  #detail-modal .detail-layout {
    grid-template-columns: 1fr;
  }
  #detail-modal .modal {
    margin: 0;
    border-radius: 12px 12px 0 0;
  }
}

/* ===== VİTRİN BÖLÜMÜ ===== */
.showcase-section {
  padding: 2rem 0;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.showcase-card {
  background: #1e1e1e;
  border: 2px solid rgba(255,184,0,0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.showcase-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255,184,0,0.15);
}
.showcase-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--accent);
  color: #000;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 1px;
}
.showcase-img { height: 180px; overflow: hidden; }
.showcase-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.showcase-card:hover .showcase-img img { transform: scale(1.05); }
.showcase-body { padding: 12px 14px; }
.showcase-cat { font-size: 0.72rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.showcase-title { font-size: 0.92rem; font-weight: 600; color: white; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.showcase-price { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.showcase-loc { font-size: 0.76rem; color: rgba(255,255,255,0.45); }

/* ===== ACİL İLANLAR ===== */
.urgent-section { padding: 2rem 0 1rem; }
.urgent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}
.urgent-card {
  display: flex;
  gap: 12px;
  background: var(--white);
  border: 2px solid rgba(255,77,0,0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  align-items: center;
  padding: 10px;
}
.urgent-card:hover { border-color: var(--primary); box-shadow: 0 6px 20px rgba(255,77,0,0.12); transform: translateY(-2px); }
.urgent-img { width: 72px; height: 72px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.urgent-img img { width: 100%; height: 100%; object-fit: cover; }
.urgent-badge {
  position: absolute; bottom: 2px; left: 2px;
  background: var(--primary); color: white;
  font-size: 0.58rem; font-weight: 800;
  padding: 1px 5px; border-radius: 4px;
}
.urgent-body { flex: 1; min-width: 0; }
.urgent-title { font-size: 0.84rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.urgent-price { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.urgent-meta { font-size: 0.72rem; color: var(--gray2); }

/* ===== ÖNE ÇIKAN KART ===== */
.listing-card.is-featured { border-color: var(--primary); }
.listing-card.is-featured .featured-badge { background: var(--primary); color: white; }
.listing-card.is-urgent .card-title::before { content: '⚡ '; }
.listing-card.is-showcase { border-color: var(--accent); }
.listing-card.is-showcase .featured-badge { background: var(--accent); color: #000; }

/* ===== UPGRADE MODAL ===== */
.upgrade-opts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 1rem 0; }
.upgrade-opt {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.upgrade-opt:hover, .upgrade-opt.selected { border-color: var(--primary); background: rgba(255,77,0,0.05); }
.upgrade-opt .u-icon { font-size: 1.8rem; margin-bottom: 6px; }
.upgrade-opt .u-name { font-weight: 700; font-size: 0.88rem; margin-bottom: 4px; }
.upgrade-opt .u-price { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.upgrade-opt .u-days { font-size: 0.72rem; color: var(--gray2); margin-top: 2px; }
.balance-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.balance-amount { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 800; }
.balance-label { font-size: 0.78rem; opacity: 0.8; }
