/* Tag badge style */
.tag-item .tag-name,
a[href^="/tags/"] {
  text-transform: lowercase;
  font-family: monospace;
}

a[href^="/tags/"]::before {
  content: "#";
}


/* Badges page - compact layout */
.BadgeList .mb-4 > div {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.BadgeList .mb-4 > div > div {
  width: auto !important;
  min-width: 120px !important;
  max-width: 160px !important;
}

.BadgeList .mb-4 > div > div img,
.BadgeList .mb-4 > div > div svg {
  width: 28px !important;
  height: 28px !important;
}

/* Badges page - compact layout */
.BadgeList .mb-4 > div {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.BadgeList .mb-4 > div > div {
  width: auto !important;
  min-width: 120px !important;
  max-width: 160px !important;
}

.BadgeList .mb-4 > div > div img,
.BadgeList .mb-4 > div > div svg {
  width: 28px !important;
  height: 28px !important;
}

.right-card {
  border: 1px solid #d6d9dc;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
  margin-bottom: 26px;
}

.right-card-header {
  padding: 12px 18px;
  border-bottom: 1px solid #d6d9dc;
  background: #fafafa;
  font-size: 18px;
  font-weight: 400;
  color: #232629;
}

.right-card-body {
  padding: 18px;
}

.ask-question-card {
  margin-bottom: 26px;
}

.ask-question-text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.45;
  color: #3b4045;
}

.sidebar-card {
  border: 1px solid #d6d9dc;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
  margin-bottom: 28px;
}

.sidebar-card-header {
  padding: 12px 18px;
  border-bottom: 1px solid #d6d9dc;
  background: #fafafa;
  font-size: 18px;
  font-weight: 400;
  color: #232629;
}

.sidebar-card-body {
  padding: 18px;
}

.sidebar-ask-card {
  margin-bottom: 28px;
}

.sidebar-ask-text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.45;
  color: #3b4045;
}

.afp-sidebar-cta {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 26px 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #cfe0ff;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.afp-sidebar-cta::before {
  content: "";
  position: absolute;
  right: -38px;
  top: -42px;
  width: 145px;
  height: 145px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0));
  pointer-events: none;
}

.afp-sidebar-cta-bg-icon {
  position: absolute;
  right: 18px;
  top: 18px;
  font-size: 44px;
  opacity: 0.08;
  transform: rotate(-12deg);
  pointer-events: none;
}

.afp-sidebar-cta-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.afp-sidebar-cta-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf2ff;
  color: #0b5cff;
  border: 1px solid #d2e3ff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.afp-sidebar-cta-title {
  margin: 0 0 6px 0;
  color: #111827;
  font-size: 22px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.afp-sidebar-cta-text {
  margin: 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.45;
}

.afp-sidebar-cta-button {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 8px;
  border: 1px solid #075cff;
  background: linear-gradient(180deg, #1769ff 0%, #004dea 100%);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 20px rgba(0, 92, 255, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.afp-sidebar-cta-button:hover {
  background: linear-gradient(180deg, #075cff 0%, #0041c9 100%);
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 92, 255, 0.3);
}

.afp-sidebar-cta-button:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0, 92, 255, 0.22);
}

.afp-sidebar-cta-button-icon {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 900px) {
  .afp-sidebar-cta {
    margin-bottom: 18px;
    padding: 16px;
  }

  .afp-sidebar-cta-title {
    font-size: 20px;
  }

  .afp-sidebar-cta-text {
    font-size: 14px;
  }

  .afp-sidebar-cta-button {
    min-height: 42px;
    font-size: 15px;
  }
}

/* ================================
   Apache Answer - Smart Search UI
   ================================ */

/* Mevcut header search inputunu güzelleştirir */
header input[type="search"],
header input[placeholder*="Search"],
nav input[type="search"],
nav input[placeholder*="Search"] {
  height: 42px !important;
  border-radius: 7px !important;
  border: 1px solid #d6d9dc !important;
  background: #ffffff !important;
  color: #232629 !important;
  font-size: 15px !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

header input[type="search"]:focus,
header input[placeholder*="Search"]:focus,
nav input[type="search"]:focus,
nav input[placeholder*="Search"]:focus {
  border-color: #6bbbf7 !important;
  box-shadow:
    0 0 0 4px rgba(10, 149, 255, 0.18),
    0 1px 2px rgba(15, 23, 42, 0.08) !important;
}

/* Açılır arama yardım paneli */
.afp-search-help-panel {
  display: none;
  position: fixed;
  top: 58px;
  left: 50%;
  z-index: 9999;
  width: min(760px, calc(100vw - 24px));
  transform: translateX(-50%);
  border: 1px solid #d6d9dc;
  border-radius: 7px;
  background: #ffffff;
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.16),
    0 2px 6px rgba(15, 23, 42, 0.08);
  color: #232629;
}

/* Search input focus olunca panel açılır */
body:has(header input[type="search"]:focus) .afp-search-help-panel,
body:has(header input[placeholder*="Search"]:focus) .afp-search-help-panel,
body:has(nav input[type="search"]:focus) .afp-search-help-panel,
body:has(nav input[placeholder*="Search"]:focus) .afp-search-help-panel,
.afp-search-help-panel:hover {
  display: block;
}

/* Üst küçük ok */
.afp-search-help-arrow {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translateX(-50%) rotate(45deg);
  background: #ffffff;
  border-left: 1px solid #d6d9dc;
  border-top: 1px solid #d6d9dc;
}

/* İç grid */
.afp-search-help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 56px;
  padding: 22px 24px 24px;
}

.afp-search-help-item {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
  white-space: nowrap;
}

.afp-search-help-item code {
  color: #0c0d0e;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 14px;
  font-weight: 700;
  background: transparent;
  border: 0;
  padding: 0;
}

.afp-search-help-item span {
  color: #6a737c;
  font-size: 14px;
}

/* Alt bar */
.afp-search-help-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-top: 1px solid #e3e6e8;
  background: #fafafa;
  border-radius: 0 0 7px 7px;
}

/* Ask a question butonu */
.afp-search-help-ask {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #0074cc;
  border-radius: 6px;
  background: #0a95ff;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

