:root {
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --primary: #2563eb;
  --border: #e5e7eb;
  --chip: #f9fafb;
  --pop: #ef4444; /* Popüler */
  --med: #f59e0b; /* Orta */
  --niche: #10b981; /* Niş */
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.container { max-width: 980px; margin: 0 auto; padding: 0 1rem; }
.site-header { position: sticky; top: 0; background: var(--bg); border-bottom: 1px solid var(--border); z-index: 20; }
.header-wrap { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; }
.logo { font-size: 1.25rem; margin: 0; font-weight: 700; }
.nav a { color: var(--muted); text-decoration: none; margin-left: 1rem; }
.nav a:hover { color: var(--text); }

/* Daha şık görünüm: gradient başlık ve panel gölgeleri */
.site-header { background: linear-gradient(90deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%); }
.panel { box-shadow: 0 12px 28px rgba(0,0,0,0.06); }

.panel { border: 1px solid var(--border); border-radius: 12px; padding: 1rem; margin: 1rem 0; background: #fff; }
.controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.control span { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.25rem; }
.control input, .control select, textarea { width: 100%; padding: 0.55rem 0.6rem; border: 1px solid var(--border); border-radius: 10px; font-family: inherit; }
.filters { display: flex; align-items: center; gap: 1rem; color: var(--muted); margin-top: 0.5rem; }
.actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.btn { border: 1px solid var(--border); background: #fff; color: var(--text); padding: 0.5rem 0.8rem; border-radius: 10px; cursor: pointer; }
.btn:hover { border-color: #d1d5db; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }

.results-head { display: flex; align-items: baseline; justify-content: space-between; }
.results-head small { color: var(--muted); }
.tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.tag {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  background: var(--chip); border: 1px solid var(--border); border-radius: 999px; padding: 0.35rem 0.6rem;
  border-left: 6px solid transparent;
}
.tag .icon { font-size: 1rem; }
.tag:hover { border-color: #cbd5e1; background: #f3f4f6; }
.tag .name { font-weight: 600; }
.tag.cat-pop { border-left-color: var(--pop); }
.tag.cat-med { border-left-color: var(--med); }
.tag.cat-niche { border-left-color: var(--niche); }
.scores { display: inline-flex; gap: 0.3rem; align-items: center; }
.scores.pills { font-size: 0.75rem; }
.score-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; padding: 0 0.4rem; border-radius: 999px; color: #fff; font-weight: 600; }
.pill-pop { background: var(--pop); }
.pill-rec { background: #6366f1; }
.pill-trend { background: #22c55e; }

.top-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem; }
.top-item { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border); border-radius: 10px; padding: 0.4rem 0.6rem; }
.top-item .count { color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); margin-top: 2rem; }
.site-footer .container { padding: 1rem 0; color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%);
  background: #111827; color: #fff; padding: 0.6rem 0.9rem; border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25); z-index: 120; opacity: 0; pointer-events: none;
}
.toast.show { opacity: 1; pointer-events: auto; transition: opacity 180ms ease-in-out; }
.toast.success { background: #10b981; }
.toast.error { background: #ef4444; }

/* Modal genel stil (premium için) */
.modal-overlay { position: fixed; inset: 0; background: rgba(17,24,39,0.35); backdrop-filter: blur(2px); z-index: 90; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1rem; width: min(520px, 92vw); box-shadow: 0 16px 40px rgba(0,0,0,0.18); z-index: 100; }
.modal-close { position: absolute; right: 0.75rem; top: 0.75rem; border: none; background: transparent; cursor: pointer; color: var(--muted); }
.premium-form { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; align-items: center; margin-top: 0.5rem; }
.premium-features { margin-top: 0.5rem; }
.premium-features h4 { margin: 0.5rem 0; }
.premium-features .bullets { list-style: none; padding: 0; margin: 0.25rem 0 0; }
.premium-features .bullets li { padding: 0.25rem 0; color: var(--muted); }
.btn-link { background: transparent; border: none; color: var(--primary); text-decoration: underline; cursor: pointer; padding: 0; }
.premium-hint { color: var(--muted); font-size: 0.8rem; }
.trend-meta { color: #2563eb; }

/* Bilgi paneli */
.info-panel .lead { color: var(--muted); line-height: 1.7; }
.info-panel .bullets { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.info-panel .bullets li { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0; }
.info-panel .bullets li::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--primary); display: inline-block; }

@media (max-width: 900px) {
  .controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .controls { grid-template-columns: 1fr; }
  .tags { grid-template-columns: 1fr; }
}
.panel h3 { margin-top: 0; }
#trending .tags, #suggestions .tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { #trending .tags, #suggestions .tags { grid-template-columns: 1fr; } }

/* --- Premium cleanup overrides --- */
.premium-features .bullets li { padding: 0.5rem 0; }
.modal h3 { margin: 0 0 0.25rem 0; }
.modal p.muted { color: var(--muted); margin: 0 0 0.5rem 0; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
