/* ═══════════════════════════════════════════════════════════
   listeler.css  —  AlmancaPratik Listelerim Sayfası
   ═══════════════════════════════════════════════════════════ */

body { background: #0c0c12; font-family: 'DM Sans', system-ui, sans-serif; }

.page-wrapper { max-width: 960px; margin: 0 auto; padding: 72px 24px 100px; }

/* ── BAŞLIK ──────────────────────────────────────────────── */
.page-header { display:flex; align-items:center; gap:16px; margin-bottom:24px; }
.page-header-center { flex:1; }
.page-header-right { display:flex; align-items:center; gap:10px; flex-shrink:0; }

.back-btn {
  display:inline-flex; align-items:center; gap:6px;
  background:transparent; border:1px solid rgba(255,255,255,0.1);
  color:#6b7280; padding:7px 14px; border-radius:8px;
  cursor:pointer; font-size:13px; font-family:inherit; font-weight:500;
  transition:0.18s; flex-shrink:0;
}
.back-btn:hover { border-color:rgba(255,255,255,0.2); color:#9ca3af; }

.page-title {
  font-family:'DM Serif Display',Georgia,serif; font-size:28px;
  font-weight:400; color:#f1ece0; margin:0; letter-spacing:-0.01em;
}

.liste-count-badge {
  background:rgba(201,168,76,0.1); border:1px solid rgba(201,168,76,0.25);
  color:#b8922e; padding:5px 12px; border-radius:20px;
  font-size:12px; font-weight:600; letter-spacing:0.02em; white-space:nowrap;
}

.create-list-header-btn {
  display:inline-flex; align-items:center; gap:6px;
  background:#c9a84c; border:none; color:#0c0c12;
  padding:8px 16px; border-radius:8px; font-size:13px;
  font-family:inherit; font-weight:600; cursor:pointer;
  transition:background 0.18s,transform 0.12s; white-space:nowrap;
}
.create-list-header-btn:hover { background:#d4b055; transform:translateY(-1px); }
.create-list-header-btn:active { transform:translateY(0); }

/* ── INTRO ───────────────────────────────────────────────── */
.page-intro { margin-bottom:24px; padding-bottom:20px; border-bottom:1px solid rgba(255,255,255,0.05); }
.page-intro-text { font-size:14px; color:#4b5563; line-height:1.7; margin:0; max-width:540px; }

/* ── ARAMA ───────────────────────────────────────────────── */
.liste-search-bar { margin-bottom:28px; }
.search-input-wrap { position:relative; display:flex; align-items:center; }
.search-icon { position:absolute; left:14px; color:#4b5563; pointer-events:none; }
#listeSearch {
  width:100%; box-sizing:border-box;
  background:rgba(255,255,255,0.035); border:1px solid rgba(255,255,255,0.08);
  border-radius:10px; color:#e5e7eb; font-size:14px; font-family:inherit;
  padding:11px 16px 11px 44px; outline:none; transition:0.2s;
}
#listeSearch::placeholder { color:#374151; }
#listeSearch:focus { border-color:rgba(201,168,76,0.35); background:rgba(255,255,255,0.05); }

/* ── LISTE GRİD ──────────────────────────────────────────── */
.liste-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
  gap:16px;
}

/* ── LISTE KARTI ─────────────────────────────────────────── */
.liste-card {
  background:rgba(255,255,255,0.025);
  border:1px solid rgba(255,255,255,0.07);
  border-radius:14px;
  padding:20px;
  transition:background 0.2s,border-color 0.2s,transform 0.18s,box-shadow 0.2s;
  animation:cardFadeIn 0.3s ease both;
  display:flex; flex-direction:column; gap:0;
  position:relative; overflow:hidden;
}
.liste-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg, rgba(201,168,76,0.4), rgba(201,168,76,0.1), transparent);
  opacity:0; transition:opacity 0.2s;
}
.liste-card:hover {
  background:rgba(255,255,255,0.04);
  border-color:rgba(255,255,255,0.12);
  transform:translateY(-2px);
  box-shadow:0 12px 40px rgba(0,0,0,0.4);
}
.liste-card:hover::before { opacity:1; }

@keyframes cardFadeIn {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}

/* Kart başlığı */
.liste-card-header {
  display:flex; align-items:flex-start; justify-content:space-between;
  margin-bottom:12px;
}

.liste-card-icon {
  width:34px; height:34px; border-radius:9px;
  background:rgba(201,168,76,0.1); border:1px solid rgba(201,168,76,0.2);
  display:flex; align-items:center; justify-content:center;
  color:#c9a84c; flex-shrink:0;
}

.liste-card-actions {
  display:flex; gap:5px; opacity:0; transition:opacity 0.15s;
}
.liste-card:hover .liste-card-actions { opacity:1; }

.liste-action-btn {
  display:flex; align-items:center; justify-content:center;
  width:28px; height:28px; border-radius:7px;
  border:1px solid rgba(255,255,255,0.07); background:transparent;
  color:#4b5563; cursor:pointer; transition:0.15s;
}
.liste-action-btn:hover { background:rgba(255,255,255,0.06); color:#d1d5db; border-color:rgba(255,255,255,0.14); }
.liste-action-btn.delete-btn:hover { background:rgba(239,68,68,0.08); border-color:rgba(239,68,68,0.2); color:#ef4444; }

/* Kart içeriği */
.liste-card-name {
  font-family:'DM Serif Display',Georgia,serif;
  font-size:17px; font-weight:400; color:#f1ece0;
  margin:0 0 6px; line-height:1.35;
}

.liste-card-desc {
  font-size:12px; color:#6b7280; line-height:1.55;
  margin:0 0 12px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden;
}

.liste-card-meta {
  display:flex; align-items:center; gap:8px;
  margin-bottom:14px;
}

.liste-word-count {
  font-size:11px; font-weight:700; letter-spacing:0.04em;
  padding:2px 8px; border-radius:20px;
  background:rgba(201,168,76,0.1); border:1px solid rgba(201,168,76,0.2);
  color:#b8922e;
}

.liste-date { font-size:11px; color:#374151; }

/* Kelime önizlemesi */
.liste-preview-words {
  display:flex; flex-wrap:wrap; gap:5px;
  margin-bottom:16px; min-height:24px;
}

.preview-word-chip {
  padding:3px 9px; border-radius:6px;
  background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.07);
  color:#6b7280; font-size:11px; font-weight:500;
  white-space:nowrap; max-width:110px;
  overflow:hidden; text-overflow:ellipsis;
  font-family:'DM Serif Display',Georgia,serif;
}

.preview-word-more {
  background:rgba(255,255,255,0.02); color:#4b5563;
  font-family:'DM Sans',system-ui,sans-serif;
  font-weight:600; font-size:11px;
}

/* View button */
.liste-view-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:5px;
  width:100%; padding:9px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.07);
  border-radius:9px; color:#6b7280;
  font-size:12px; font-weight:500; font-family:inherit;
  cursor:pointer; transition:0.18s;
}
.liste-view-btn:hover {
  background:rgba(201,168,76,0.08);
  border-color:rgba(201,168,76,0.2);
  color:#c9a84c;
}

/* ── YÜKLEME ─────────────────────────────────────────────── */
.loading-state {
  grid-column: 1 / -1;
  display:flex; align-items:center; justify-content:center;
  gap:12px; padding:60px; color:#374151; font-size:13px;
}
.loading-spinner {
  width:20px; height:20px; border-radius:50%;
  border:2px solid rgba(255,255,255,0.06);
  border-top-color:#c9a84c;
  animation:spin 0.8s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }

/* ── BOŞ DURUM ───────────────────────────────────────────── */
.empty-state { grid-column:1 / -1; text-align:center; padding:80px 20px; }
.empty-illustration { color:#1f2937; margin-bottom:20px; display:flex; justify-content:center; }
.empty-title { font-family:'DM Serif Display',Georgia,serif; font-size:22px; font-weight:400; color:#374151; margin-bottom:10px; }
.empty-desc { color:#374151; font-size:14px; line-height:1.7; max-width:320px; margin:0 auto 24px; }
.empty-cta {
  display:inline-flex; align-items:center; gap:6px;
  background:#c9a84c; border:none; color:#0c0c12;
  padding:10px 22px; border-radius:9px;
  font-size:14px; font-weight:600; font-family:inherit;
  cursor:pointer; transition:0.18s;
}
.empty-cta:hover { background:#d4b055; }

/* ── Arama sonucu yok ────────────────────────────────────── */
.liste-no-result { grid-column:1 / -1; text-align:center; padding:48px; color:#374151; font-size:14px; }

/* ── TOAST ───────────────────────────────────────────────── */
.toast {
  position:fixed; bottom:32px; left:50%; transform:translateX(-50%) translateY(12px);
  background:#1a1a24; border:1px solid rgba(255,255,255,0.12);
  border-radius:12px; padding:10px 18px;
  display:flex; align-items:center; gap:8px;
  font-size:13px; color:#e5e7eb; z-index:99999;
  box-shadow:0 16px 40px rgba(0,0,0,0.6);
  opacity:0; transition:opacity 0.25s,transform 0.25s;
  pointer-events:none;
}
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
.toast--success { border-color:rgba(16,185,129,0.3); }
.toast--success svg { color:#34d399; }
.toast--error { border-color:rgba(239,68,68,0.3); }
.toast--error svg { color:#ef4444; }

/* ── MOBİL ───────────────────────────────────────────────── */
@media (max-width:600px) {
  .page-wrapper { padding:56px 16px 80px; }
  .page-header { flex-wrap:wrap; gap:10px; }
  .page-header-center { order:-1; width:100%; }
  .page-title { font-size:24px; }
  .liste-grid { grid-template-columns:1fr; }
  .liste-card-actions { opacity:1; }
  .create-list-header-btn span { display:none; }
}