/* ================================================================
   KolayCV — assets/css/content-library.css
   Hazır İçerikler sayfası stil sistemi (cl- prefix)
   ================================================================ */

/* ── Sayfa Gövdesi ─────────────────────────────────────────────── */
.content-library-page {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1e293b;
  background: #f8fafc;   /* sayfa altı beyaz kalır */
  min-height: 100vh;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.cl-hero {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 60%, #1e3a5f 100%);
  /* #mainContent'in 72px padding-top'unu yukarı çek */
  margin-top: -72px;
  padding: calc(7rem + 72px) 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.cl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 0%,
    rgba(37,99,235,.2), transparent 70%);
  pointer-events: none;
}

.cl-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.06) 0%, transparent 70%);
  pointer-events: none;
}

.cl-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.cl-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(59,130,246,.15);
  border: 1px solid rgba(96,165,250,.3);
  color: #93c5fd;
  padding: .4rem 1.1rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  animation: cl-fade-down .5s ease both;
}

.cl-hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.12;
  font-weight: 800;
  color: #f1f5f9;
  margin: 0 0 1rem;
  animation: cl-fade-up .5s .1s ease both;
}

.cl-hero h1 span {
  background: linear-gradient(135deg, #60a5fa, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cl-hero-sub {
  color: #94a3b8;
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  animation: cl-fade-up .5s .2s ease both;
}

/* Hero Arama Kutusu */
.cl-hero-search {
  max-width: 780px;
  margin: 0 auto .9rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 50px rgba(30,41,59,.13);
  border-radius: 20px;
  padding: .5rem .5rem .5rem .75rem;
  display: flex;
  align-items: center;
  gap: 0;
  animation: cl-fade-up .5s .25s ease both;
  transition: box-shadow .3s ease;
}

.cl-hero-search:focus-within {
  box-shadow: 0 24px 60px rgba(37,99,235,.18);
  border-color: #bfdbfe;
}

.cl-hero-search-icon {
  color: #94a3b8;
  font-size: 1rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-right: .5rem;
}

.cl-hero-search input {
  border: 0;
  outline: 0;
  padding: .85rem .5rem;
  font: inherit;
  font-size: 1rem;
  color: #1e293b;
  flex: 1 1 0;
  min-width: 0;
  background: transparent;
}

.cl-hero-search input::placeholder { color: #94a3b8; }

.cl-hero-search-select {
  border: 0;
  border-left: 1px solid #e2e8f0;
  outline: 0;
  padding: .85rem 1rem;
  font: inherit;
  font-size: .88rem;
  color: #475569;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  min-width: 140px;
  max-width: 180px;
}

.cl-search-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: #1e293b;
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: .85rem 1.4rem;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  transition: all .22s ease;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: .4rem;
}

.cl-search-btn:hover {
  background: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(30,41,59,.25);
}

.cl-quick-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  flex-wrap: wrap;
  margin: 0 auto 1.75rem;
  animation: cl-fade-up .5s .3s ease both;
}

.cl-quick-row span {
  color: #94a3b8;
  font-size: .78rem;
  font-weight: 700;
}

.cl-quick-chip {
  border: 1px solid rgba(147,197,253,.3);
  background: rgba(255,255,255,.08);
  color: #dbeafe;
  border-radius: 999px;
  padding: .34rem .72rem;
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s ease;
}

.cl-quick-chip:hover {
  background: #fff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

/* İstatistik Kartları */
.cl-stats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
  animation: cl-fade-up .5s .35s ease both;
}

.cl-stat {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: .9rem 1.4rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
  min-width: 130px;
  transition: transform .22s ease;
}

.cl-stat:hover { transform: translateY(-3px); }

.cl-stat-num {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1;
}

.cl-stat-num span { color: #60a5fa; }

.cl-stat-lbl {
  display: block;
  font-size: .78rem;
  color: #94a3b8;
  font-weight: 600;
  margin-top: .25rem;
}

/* ── Shell (2-sütun layout) ────────────────────────────────────── */
.cl-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.75rem;
  align-items: start;
}

/* ── Sidebar ───────────────────────────────────────────────────── */
.cl-sidebar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(30,41,59,.07);
  padding: 1.5rem;
  position: sticky;
  top: 88px;
}

.cl-sidebar-title {
  font-size: .8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0 0 1rem;
}

/* Filtre Grubu */
.cl-filter-group {
  margin-bottom: 1.25rem;
}

.cl-filter-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: .4rem;
}

.cl-filter-select {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: .6rem .85rem;
  font: inherit;
  font-size: .88rem;
  color: #1e293b;
  background: #f8fafc;
  outline: none;
  transition: border-color .2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.2rem;
}

.cl-filter-select:focus {
  border-color: #2563eb;
  background-color: #fff;
}

/* Cümle Türü Segmented Control */
.cl-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.cl-type-tab {
  padding: .35rem .65rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  background: #f8fafc;
  color: #475569;
  transition: all .18s ease;
  white-space: nowrap;
}

.cl-type-tab:hover,
.cl-type-tab.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.cl-reset-filters {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .6rem .85rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all .18s ease;
}

.cl-reset-filters:hover {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
}

.cl-sidebar-divider {
  border: none;
  border-top: 1px solid #f1f5f9;
  margin: 1.25rem 0;
}

/* Brain Panel (sidebar içinde) */
.cl-brain-panel {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1.5px solid #bfdbfe;
  border-radius: 14px;
  padding: 1rem;
  transition: all .3s ease;
}

.cl-brain-panel.has-context {
  background: linear-gradient(135deg, #1e3a5f, #1e293b);
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.cl-brain-panel.has-context .cl-brain-title {
  color: #93c5fd;
}

.cl-brain-panel.has-context .cl-brain-key {
  color: #94a3b8;
}

.cl-brain-panel.has-context .cl-brain-val {
  color: #f1f5f9;
}

.cl-brain-panel.has-context .cl-brain-btn.primary {
  background: #2563eb;
  box-shadow: 0 4px 12px rgba(37,99,235,.35);
}

.cl-brain-panel.has-context .cl-brain-btn.primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.cl-brain-title {
  font-size: .82rem;
  font-weight: 800;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .75rem;
}

.cl-brain-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .77rem;
  margin-bottom: .4rem;
}

.cl-brain-key { color: #64748b; font-weight: 600; }
.cl-brain-val { color: #1e293b; font-weight: 700; }

.cl-brain-btn {
  width: 100%;
  margin-top: .75rem;
  padding: .6rem;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}

.cl-brain-btn.primary {
  background: #1e293b;
  color: #fff;
}

.cl-brain-btn.primary:hover { background: #0f172a; }

/* ── Sektör Grid ───────────────────────────────────────────────── */
.cl-sector-section {
  margin-bottom: 2rem;
}

.cl-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cl-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.cl-section-count {
  font-size: .78rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: .2rem .6rem;
  border-radius: 999px;
}

.cl-usage-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin-bottom: 1.35rem;
}

.cl-usage-step {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: .95rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  box-shadow: 0 1px 4px rgba(30,41,59,.04);
}

.cl-usage-step > span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eff6ff;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 900;
  flex-shrink: 0;
}

.cl-usage-step strong {
  display: block;
  color: #0f172a;
  font-size: .84rem;
  margin-bottom: .14rem;
}

.cl-usage-step small {
  display: block;
  color: #64748b;
  font-size: .74rem;
  line-height: 1.45;
}

.cl-sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: .85rem;
}

.cl-sector-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.1rem;
  cursor: pointer;
  transition: all .22s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  box-shadow: 0 1px 4px rgba(30,41,59,.05);
}

.cl-sector-card:hover {
  border-color: #2563eb;
  box-shadow: 0 12px 32px rgba(37,99,235,.12);
  transform: translateY(-2px);
}

.cl-sector-card.is-active {
  border-color: #2563eb;
  background: linear-gradient(135deg, #eff6ff, #fff);
  box-shadow: 0 8px 24px rgba(37,99,235,.16);
}

.cl-sector-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
}

.cl-sector-card.is-active .cl-sector-icon {
  background: #2563eb;
  color: #fff;
}

.cl-sector-name {
  font-size: .82rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

.cl-sector-meta {
  font-size: .72rem;
  color: #64748b;
  font-weight: 600;
}

/* ── Cümle Sonuçları ───────────────────────────────────────────── */
.cl-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: .5rem;
}

.cl-results-title {
  font-size: .95rem;
  font-weight: 700;
  color: #1e293b;
}

.cl-results-count {
  font-size: .8rem;
  color: #64748b;
}

.cl-active-filters {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  margin: -.35rem 0 1rem;
}

.cl-active-filters[hidden] { display: none; }

.cl-active-filters-label {
  color: #64748b;
  font-size: .76rem;
  font-weight: 800;
}

.cl-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: .28rem .62rem;
  font: inherit;
  font-size: .74rem;
  font-weight: 800;
}

.cl-filter-chip button {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: rgba(29,78,216,.12);
  color: #1d4ed8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: .64rem;
}

.cl-filter-chip.clear-all {
  background: #fff;
  border-color: #e2e8f0;
  color: #475569;
  cursor: pointer;
}

.cl-phrase-grid {
  display: grid;
  gap: .85rem;
}

/* Cümle Kartı */
.cl-phrase-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(30,41,59,.05);
  transition: all .22s ease;
  position: relative;
  overflow: hidden;
}

.cl-phrase-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 24px rgba(37,99,235,.1);
  transform: translateY(-1px);
}

.cl-phrase-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: #2563eb;
  opacity: 0;
  transition: opacity .2s ease;
}

.cl-phrase-card:hover::before { opacity: 1; }

.cl-phrase-meta {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}

.cl-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .22rem .6rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
}

.cl-badge-summary    { background: #f0fdf4; color: #166534; }
.cl-badge-responsibility { background: #eff6ff; color: #1d4ed8; }
.cl-badge-achievement{ background: #fefce8; color: #854d0e; }
.cl-badge-ats_keyword{ background: #fdf4ff; color: #7e22ce; }
.cl-badge-skill      { background: #f0f9ff; color: #0369a1; }
.cl-badge-certificate{ background: #fff7ed; color: #9a3412; }
.cl-badge-placeholder{ background: #fef3c7; color: #92400e; }
.cl-badge-ats        { background: #dcfce7; color: #166534; }

.cl-phrase-text {
  font-size: .93rem;
  color: #1e293b;
  line-height: 1.7;
  margin: 0 0 .9rem;
  padding-right: 2.5rem;
}

.cl-phrase-text mark {
  background: #fef9c3;
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

.cl-phrase-text .placeholder-mark {
  background: #fde68a;
  color: #92400e;
  border-radius: 4px;
  padding: 0 3px;
  font-weight: 700;
  font-size: .85em;
}

.cl-phrase-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: nowrap;
}

.cl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  font-size: .8rem;
  white-space: nowrap;
  border: 1.5px solid transparent;
  text-decoration: none;
}

.cl-btn-sm {
  padding: .45rem .8rem;
}

.cl-btn-navy {
  background: #1e293b;
  color: #fff;
  border-color: #1e293b;
}

.cl-btn-navy:hover {
  background: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30,41,59,.25);
}

.cl-btn-outline {
  background: #fff;
  color: #1e293b;
  border-color: #e2e8f0;
}

.cl-btn-outline:hover {
  border-color: #1e293b;
  background: #f8fafc;
}

.cl-btn-blue {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.cl-btn-blue:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.cl-btn-fav {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  color: #94a3b8;
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
  margin-left: auto;
}

.cl-btn-fav:hover,
.cl-btn-fav.is-active {
  border-color: #ef4444;
  color: #ef4444;
  background: #fff1f2;
}

.cl-btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border-radius: 9px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  transition: all .2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.cl-btn-copy:hover {
  border-color: #22c55e;
  color: #16a34a;
  background: #f0fdf4;
}

.cl-btn-copy.copied {
  border-color: #22c55e;
  color: #16a34a;
  background: #f0fdf4;
}

/* ── Sayfalama ─────────────────────────────────────────────────── */
.cl-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.cl-page-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: all .18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cl-page-btn:hover { border-color: #2563eb; color: #2563eb; background: #eff6ff; }
.cl-page-btn.is-active { background: #1e293b; border-color: #1e293b; color: #fff; }
.cl-page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Toast ─────────────────────────────────────────────────────── */
.cl-toast-wrap {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  pointer-events: none;
}

.cl-toast {
  background: #1e293b;
  color: #fff;
  padding: .65rem 1.2rem;
  border-radius: 12px;
  font-size: .85rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(30,41,59,.25);
  animation: cl-toast-in .3s ease;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.cl-toast.success { background: #166534; }
.cl-toast.error   { background: #991b1b; }

@keyframes cl-toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Boş Durum ─────────────────────────────────────────────────── */
.cl-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #64748b;
}

.cl-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: .5;
}

.cl-empty h3 { font-size: 1rem; font-weight: 700; color: #374151; margin: 0 0 .5rem; }
.cl-empty p  { font-size: .88rem; margin: 0; }

/* ── Loading Skeleton ──────────────────────────────────────────── */
.cl-skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: cl-shimmer 1.4s infinite;
  border-radius: 8px;
}

@keyframes cl-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.cl-skeleton-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem;
}

/* ── Animasyonlar ──────────────────────────────────────────────── */
@keyframes cl-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes cl-fade-down {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cl-shell {
    grid-template-columns: 260px 1fr;
  }
}

@media (max-width: 820px) {
  .cl-shell {
    grid-template-columns: 1fr;
  }

  .cl-sidebar {
    position: static;
  }

  .cl-usage-strip {
    grid-template-columns: 1fr;
  }

  .cl-sector-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 600px) {
  .cl-hero {
    padding: 5.5rem 1rem 3rem;
  }

  .cl-hero-search {
    flex-wrap: wrap;
    border-radius: 16px;
    padding: .5rem;
  }

  .cl-hero-search input {
    min-width: 120px;
  }

  .cl-hero-search-select { display: none; }

  .cl-search-btn {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    border-radius: 12px;
    margin-top: .25rem;
  }

  .cl-quick-row {
    justify-content: flex-start;
    margin-bottom: 1.25rem;
  }

  .cl-stats {
    gap: .65rem;
  }

  .cl-stat {
    min-width: 120px;
    padding: .7rem 1rem;
  }

  .cl-shell {
    padding: 1.5rem 1rem 4rem;
  }

  .cl-phrase-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cl-phrase-actions .cl-btn-fav,
  .cl-phrase-actions .cl-btn-copy {
    display: none;
  }

  .cl-selection-bar {
    top: 0;
    flex-direction: column;
    align-items: stretch;
    border-radius: 12px;
  }

  .cl-selection-bar-actions {
    width: 100%;
  }

  .cl-selbar-btn {
    flex: 1;
  }
}

/* ── Kullanıcı Giriş CTA Bandı ─────────────────────────────────── */
.cl-auth-banner {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.cl-auth-banner p {
  color: #cbd5e1;
  font-size: .9rem;
  margin: 0;
}

.cl-auth-banner strong { color: #fff; }

.cl-auth-banner a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: .6rem 1.2rem;
  font-weight: 700;
  font-size: .85rem;
  transition: background .2s;
}

.cl-auth-banner a:hover { background: #1d4ed8; }

/* ══════════════════════════════════════════════════════════════════
   AI ÖZELLİKLERİ — Seçim, Modal, Önizleme
   ══════════════════════════════════════════════════════════════════ */

/* Cümle kartı — seçili durum */
.cl-phrase-card.is-selected {
  border-color: #2563eb;
  background: linear-gradient(135deg, #eff6ff, #fff);
  box-shadow: 0 8px 24px rgba(37,99,235,.15);
}
.cl-phrase-card.is-selected::before { opacity: 1; }

/* Seç butonu */
.cl-btn-select {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .45rem .85rem; border-radius: 9px;
  border: 1.5px solid #e2e8f0; background: #f8fafc; color: #475569;
  font-weight: 700; font-size: .78rem; cursor: pointer;
  transition: all .2s ease; flex-shrink: 0; white-space: nowrap;
}
.cl-btn-select:hover, .cl-btn-select.is-selected {
  border-color: #2563eb; background: #eff6ff; color: #1d4ed8;
}

/* AI Uyarla butonu */
.cl-btn-ai {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .45rem .85rem; border-radius: 9px; border: 0;
  background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff;
  font-weight: 700; font-size: .78rem; cursor: pointer;
  transition: all .22s ease; flex-shrink: 0; white-space: nowrap;
}
.cl-btn-ai:hover {
  background: linear-gradient(135deg, #6d28d9, #4338ca);
  transform: translateY(-1px); box-shadow: 0 4px 14px rgba(109,40,217,.35);
}

/* Seçim Çubugu */
.cl-selection-bar {
  position: sticky; top: 88px; z-index: 100;
  background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff;
  padding: .75rem 1.25rem; border-radius: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  margin-bottom: 1rem; box-shadow: 0 4px 20px rgba(124,58,237,.35);
  transform: translateY(-10px); opacity: 0;
  transition: all .3s ease; pointer-events: none;
}
.cl-selection-bar.is-visible { transform: translateY(0); opacity: 1; pointer-events: all; }
.cl-selection-bar-text { font-size: .85rem; font-weight: 700; }
.cl-selection-bar-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.cl-selbar-btn {
  padding: .45rem .9rem; border-radius: 9px;
  border: 1.5px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.15); color: #fff;
  font-size: .78rem; font-weight: 700; cursor: pointer;
  transition: all .2s; white-space: nowrap;
}
.cl-selbar-btn:hover { background: rgba(255,255,255,.25); }

/* Seç işareti */
.cl-select-check {
  position: absolute; top: .75rem; right: .75rem;
  width: 22px; height: 22px; border-radius: 6px;
  border: 1.5px solid #e2e8f0; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: transparent; transition: all .2s; pointer-events: none;
}
.cl-phrase-card.is-selected .cl-select-check {
  background: #2563eb; border-color: #2563eb; color: #fff;
}

/* Modallar */
.cl-modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,.6);
  backdrop-filter: blur(4px); z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.cl-modal-backdrop.is-open { opacity: 1; pointer-events: all; }

.cl-modal {
  background: #fff; border-radius: 24px;
  box-shadow: 0 30px 80px rgba(15,23,42,.25);
  width: 100%; max-width: 640px; max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(20px) scale(.97);
  transition: transform .3s cubic-bezier(.34,1.2,.64,1);
}
.cl-modal-backdrop.is-open .cl-modal { transform: translateY(0) scale(1); }
.cl-modal-lg { max-width: 760px; }

.cl-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 1.75rem 1rem; border-bottom: 1px solid #f1f5f9; flex-shrink: 0;
}
.cl-modal-title { font-size: 1rem; font-weight: 800; color: #1e293b; display: flex; align-items: center; gap: .5rem; }
.cl-modal-close {
  background: #f1f5f9; border: 0; width: 32px; height: 32px; border-radius: 50%;
  font-size: 1rem; cursor: pointer; color: #64748b;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.cl-modal-close:hover { background: #e2e8f0; color: #1e293b; }
.cl-modal-body { flex: 1; overflow-y: auto; padding: 1.25rem 1.75rem; }
.cl-modal-footer {
  padding: 1rem 1.75rem 1.5rem; border-top: 1px solid #f1f5f9;
  display: flex; gap: .75rem; flex-shrink: 0; flex-wrap: wrap;
}

/* CV Seçim */
.cl-cv-list { display: flex; flex-direction: column; gap: .65rem; }
.cl-cv-item {
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1rem; border: 1.5px solid #e2e8f0; border-radius: 14px;
  cursor: pointer; transition: all .2s ease; background: #fff;
}
.cl-cv-item:hover, .cl-cv-item.is-selected { border-color: #2563eb; background: #eff6ff; }
.cl-cv-item-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: #eff6ff; color: #2563eb;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
}
.cl-cv-item-name { font-size: .88rem; font-weight: 700; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-cv-item-sub { font-size: .75rem; color: #64748b; margin-top: .1rem; }
.cl-cv-item-check {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid #e2e8f0;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.cl-cv-item.is-selected .cl-cv-item-check { background: #2563eb; border-color: #2563eb; color: #fff; font-size: .7rem; }

/* Bölüm seçici */
.cl-section-select { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .5rem; margin-top: 1rem; }
.cl-section-btn {
  padding: .6rem .75rem; border: 1.5px solid #e2e8f0; border-radius: 10px;
  font-size: .78rem; font-weight: 700; cursor: pointer;
  background: #f8fafc; color: #475569; transition: all .18s;
  display: flex; align-items: center; gap: .4rem;
}
.cl-section-btn:hover, .cl-section-btn.is-selected { border-color: #7c3aed; background: #faf5ff; color: #7c3aed; }

/* AI Önizleme */
.cl-ai-preview { background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 14px; padding: 1.25rem; margin-bottom: 1rem; }
.cl-ai-preview-label { font-size: .72rem; font-weight: 800; color: #7c3aed; text-transform: uppercase; letter-spacing: 0; margin-bottom: .6rem; display: flex; align-items: center; gap: .3rem; }
.cl-ai-preview-text { font-size: .9rem; color: #1e293b; line-height: 1.8; white-space: pre-wrap; min-height: 60px; }
.cl-ai-preview-text[contenteditable="true"] { border: 2px dashed #7c3aed; border-radius: 8px; padding: .5rem; outline: none; background: #fff; }
.cl-ai-reason { margin-top: .75rem; padding: .6rem .85rem; background: #eff6ff; border-radius: 8px; font-size: .78rem; color: #1d4ed8; }
.cl-ai-warning { margin-top: .5rem; padding: .6rem .85rem; background: #fef3c7; border-radius: 8px; font-size: .78rem; color: #92400e; }

/* AI Loading */
.cl-ai-loading { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 2.5rem 1rem; text-align: center; }
.cl-ai-spinner { width: 48px; height: 48px; border: 4px solid #f1f5f9; border-top-color: #7c3aed; border-radius: 50%; animation: cl-spin 1s linear infinite; }
@keyframes cl-spin { to { transform: rotate(360deg); } }
.cl-ai-loading-text { font-size: .88rem; font-weight: 600; color: #475569; }

/* Modal butonları */
.cl-modal-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .7rem 1.25rem; border-radius: 12px; font: inherit;
  font-size: .88rem; font-weight: 700; cursor: pointer; border: 0; transition: all .2s ease; white-space: nowrap;
}
.cl-modal-btn.primary { background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff; }
.cl-modal-btn.primary:hover { background: linear-gradient(135deg, #6d28d9, #4338ca); box-shadow: 0 4px 14px rgba(109,40,217,.3); }
.cl-modal-btn.success { background: #16a34a; color: #fff; }
.cl-modal-btn.success:hover { background: #15803d; }
.cl-modal-btn.outline { background: #fff; color: #475569; border: 1.5px solid #e2e8f0; }
.cl-modal-btn.outline:hover { background: #f8fafc; }
.cl-modal-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Form */
.cl-form-group { margin-bottom: 1rem; }
.cl-form-label { display: block; font-size: .8rem; font-weight: 700; color: #374151; margin-bottom: .4rem; }
.cl-form-textarea { width: 100%; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: .75rem; font: inherit; font-size: .88rem; color: #1e293b; resize: vertical; min-height: 80px; outline: none; box-sizing: border-box; transition: border-color .2s; }
.cl-form-textarea:focus { border-color: #7c3aed; }

/* AI Sorular */
.cl-ai-questions { margin-top: .75rem; display: flex; flex-direction: column; gap: .75rem; }
.cl-ai-question-item label { display: block; font-size: .78rem; font-weight: 700; color: #374151; margin-bottom: .25rem; }
.cl-ai-question-item input { width: 100%; border: 1.5px solid #e2e8f0; border-radius: 8px; padding: .5rem .75rem; font: inherit; font-size: .85rem; outline: none; box-sizing: border-box; transition: border-color .2s; }
.cl-ai-question-item input:focus { border-color: #7c3aed; }

@media (max-width: 600px) {
  .cl-modal { border-radius: 20px; }
  .cl-modal-body { padding: 1rem; }
  .cl-modal-footer { padding: .75rem 1rem 1rem; }
}

/* ── Yeni Phrase Kart Stilleri (cl-pc-*) ─────────────────────── */
.cl-phrase-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 10px;
  transition: box-shadow .15s, border-color .15s;
  box-shadow: 0 1px 4px rgba(30,41,59,.05);
}
.cl-phrase-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 4px 16px rgba(37,99,235,.08);
}
.cl-pc-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.cl-pc-badge {
  font-size: .65rem;
  font-weight: 800;
  padding: .2rem .6rem;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0;
}
.cl-pc-meta {
  font-size: .72rem;
  color: #94a3b8;
  font-weight: 500;
  margin-left: auto;
}
.cl-pc-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.cl-pc-btn-primary {
  flex: 1;
  min-width: 140px;
  padding: .5rem .9rem;
  background: #1e293b;
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s;
}
.cl-pc-btn-primary:hover { background: #0f172a; }
.cl-pc-btn-secondary {
  padding: .5rem .9rem;
  background: #fff;
  color: #1e293b;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s;
}
.cl-pc-btn-secondary:hover { border-color: #2563eb; color: #2563eb; }
.cl-pc-btn-icon {
  width: 34px;
  height: 34px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: .82rem;
  transition: all .15s;
  flex-shrink: 0;
}
.cl-pc-btn-icon:hover { border-color: #2563eb; color: #2563eb; }
.cl-pc-btn-icon.is-fav { color: #ef4444; border-color: #fecaca; }
.cl-pc-btn-icon.is-fav:hover { background: #fef2f2; }

/* Sektor hidden */
.cl-sector-hidden { /* display:none via JS */ }

/* Sektor "Tüm sektörleri göster" butonu hover */
#clShowAllSectors:hover { background: #f1f5f9 !important; border-color: #cbd5e1 !important; }

@media (max-width: 640px) {
  .cl-pc-actions {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 6px;
  }
  .cl-pc-btn-primary {
    grid-column: 1 / -1;
    justify-content: center;
    font-size: .75rem;
    padding: .5rem .75rem;
  }
  .cl-pc-btn-secondary { justify-content: center;font-size: .75rem; padding: .45rem .75rem; }
  .cl-pc-btn-icon { width: 36px;height: 36px; }
  .cl-pc-meta { width: 100%;margin-left: 0; }
}
