/*
 * İsim Dizini - Frontend
 * Not: Stil scope'u .isd-wrap altında tutuldu.
 */

.isd-wrap,
.isd-wrap * {
  box-sizing: border-box;
}

.isd-main {
  width: 100%;
  display: flex;
  justify-content: center;
}

.isd-main > .isd-wrap {
  float: none;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
}

.isd-wrap {
  float: none;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.isd-header {
  padding-bottom: 10px;
  border-bottom: 1px solid #eef1f6;
}

.isd-headrow {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.isd-headtext {
  min-width: 220px;
  flex: 1 1 420px;
}

.isd-headactions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 260px;
}

.isd-headactions .isd-random-result {
  width: 100%;
}

.isd-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
}

.isd-subtitle {
  margin-top: 6px;
  color: #475467;
  font-size: 14px;
}

.isd-desc {
  margin: 10px 0 0;
  color: #475467;
}

.isd-random-btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  background: #0b74c7;
  color: #fff;
  flex: 0 0 auto;
  white-space: nowrap;
}

.isd-random-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Filtre bar */
.isd-filterbar {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.isd-filter-sep {
  width: 1px;
  height: 22px;
  background: #e6e9ef;
  margin: 0 2px;
}

.isd-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #0b74c7;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
}

.isd-chip:hover {
  background: #f7fbff;
}

.isd-chip.is-active {
  background: #0b74c7;
  border-color: #0b74c7;
  color: #fff;
}

.isd-chip-view {
  border-color: #c2d5ea;
}

/* Arama */
.isd-search {
  margin-top: 12px;
}

.isd-search-grid {
  display: grid;
  grid-template-columns: 1fr 240px auto;
  gap: 10px;
  align-items: start;
}

.isd-search-input input[type="text"] {
  width: 100%;
  height: 44px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
}

.isd-search-input input[type="text"]:focus {
  border-color: #0b74c7;
  box-shadow: 0 0 0 3px rgba(11, 116, 199, 0.15);
}

.isd-search-submit button {
  height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
  background: #0b74c7;
  color: #fff;
}

.isd-search-submit button:hover {
  opacity: 0.95;
}

/* Combo (checkbox dropdown) */
.isd-combo {
  position: relative;
  width: 100%;
}

.isd-combo summary {
  list-style: none;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  padding: 0 12px;
  cursor: pointer;
  user-select: none;
  font-weight: 800;
  color: #344054;
  background: #fff;
}

.isd-combo summary::-webkit-details-marker { display: none; }

.isd-combo[open] summary {
  border-color: #0b74c7;
  box-shadow: 0 0 0 3px rgba(11, 116, 199, 0.15);
}

.isd-combo-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: auto;
  right: 0;
  width: 720px;
  max-width: calc(100vw - 32px);
  z-index: 1000;
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12);
  padding: 12px;
}

.isd-combo-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 0.9fr;
  gap: 12px;
}

.isd-combo-col {
  min-width: 0;
}

.isd-combo-title {
  font-weight: 900;
  font-size: 13px;
  color: #344054;
  margin: 0 0 8px;
}

.isd-combo-list {
  border: 1px solid #eef1f6;
  border-radius: 12px;
  padding: 8px;
  max-height: 260px;
  overflow: auto;
}

.isd-opt {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 4px;
  font-size: 14px;
  color: #101828;
}

.isd-opt input { margin: 0; }

.isd-opt-empty {
  color: #667085;
  font-size: 13px;
  padding: 6px 4px;
}

.isd-combo-note {
  margin: 8px 0 0;
  color: #667085;
  font-size: 12px;
}

.isd-combo-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.isd-combo-clear {
  color: #0b74c7;
  font-weight: 800;
  text-decoration: none;
}

.isd-combo-clear:hover {
  text-decoration: underline;
}

/* Random sonucu */
.isd-random-result {
  margin-top: 0;
  border: 1px dashed #cfd8e3;
  border-radius: 14px;
  padding: 12px;
  display: none;
}

.isd-random-result.is-show {
  display: block;
}

.isd-r-name {
  font-size: 20px;
  font-weight: 900;
}

.isd-r-short {
  margin-top: 6px;
  color: #475467;
}

.isd-r-more {
  margin-top: 10px;
}

/* Harfler */
.isd-letters {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.isd-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid #d0d5dd;
  text-decoration: none;
  font-weight: 900;
  color: #0b74c7;
  background: #fff;
}

.isd-letter:hover {
  background: #f7fbff;
}

.isd-letter.is-active {
  background: #0b74c7;
  border-color: #0b74c7;
  color: #fff;
}

.isd-letter-all {
  min-width: 64px;
}

/* Sonuçlar */
.isd-results {
  margin-top: 12px;
}

.isd-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #eef1f6;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.isd-info strong {
  color: #101828;
}

.isd-clear {
  margin-left: auto;
  font-weight: 900;
  color: #0b74c7;
  text-decoration: none;
}

.isd-clear:hover {
  text-decoration: underline;
}

.isd-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.isd-item {
  border: 1px solid #eef1f6;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.isd-item-main {
  flex: 1 1 auto;
  min-width: 0;
}

.isd-name {
  font-size: 18px;
  font-weight: 900;
}

.isd-name-link {
  color: #101828;
  text-decoration: none;
}

.isd-name-link:hover {
  color: #0b74c7;
  text-decoration: underline;
}

.isd-short {
  margin-top: 6px;
  color: #475467;
  overflow-wrap: anywhere;
}

.isd-more {
  flex: 0 0 auto;
  text-decoration: none;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  color: #0b74c7;
  background: #fff;
  white-space: normal;
  overflow-wrap: anywhere;
}

.isd-more:hover {
  background: #f7fbff;
}

.isd-more-full {
  display: inline;
}

.isd-more-short {
  display: none;
}

/* Etiketler */
.isd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.isd-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid #e6e9ef;
  background: #f8fafc;
  color: #344054;
}

.isd-tag-popular {
  background: #fff4e5;
  border-color: #ffd6a8;
  color: #a64b00;
}

.isd-tag-usage {
  background: #f2f4f7;
  border-color: #d0d5dd;
  color: #344054;
}

.isd-empty {
  padding: 14px;
  border: 1px dashed #d0d5dd;
  border-radius: 14px;
  color: #475467;
  background: #fff;
}

.isd-letter-heading {
  margin: 18px 0 8px;
  font-size: 20px;
}

/* Responsive */
@media (max-width: 860px) {
  .isd-combo-cols {
    grid-template-columns: 1fr 1fr;
  }
  .isd-combo-col--options {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .isd-wrap {
  float: none;
  margin-left: auto !important;
  margin-right: auto !important;
    padding: 12px;
    border-radius: 12px;
  }

  .isd-title {
    font-size: 26px;
  }

  .isd-search-grid {
    grid-template-columns: 1fr;
  }

  .isd-search-submit button {
    width: 100%;
  }

  .isd-filter-sep {
    display: none;
  }

  .isd-random-btn {
    width: 100%;
  }

  .isd-headactions {
    width: 100%;
    align-items: stretch;
    min-width: 0;
  }

  .isd-headactions .isd-random-result {
    width: 100%;
  }

  .isd-more-full {
    display: none;
  }

  .isd-more-short {
    display: inline;
  }

  .isd-combo-panel {
    position: static;
    margin-top: 8px;
    width: auto;
    max-width: none;
    left: auto;
    right: auto;
  }

  .isd-letters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(34px, 1fr));
  }

  .isd-letter {
    width: 100%;
    padding: 0;
  }

  .isd-letter-all {
    grid-column: span 2;
  }

  .isd-item {
    flex-direction: column;
    align-items: stretch;
  }

  .isd-more {
    width: 100%;
    text-align: center;
  }

  .isd-clear {
    margin-left: 0;
  }
}
