/* Global arama paleti (Ctrl+K) — modal değil, üstte ortalanmış kullanım +++ */
.sp-overlay { position: fixed; inset: 0; z-index: 2000; }
.sp-backdrop { position: absolute; inset: 0; background: rgba(43, 43, 58, 0.35); backdrop-filter: blur(2px); }
.sp-panel { position: relative; margin: 0 auto; margin-top: min(10vh, 110px); width: min(640px, calc(100vw - 2rem)); max-height: min(70vh, 620px); display: flex; flex-direction: column; background: #fff; border-radius: 0.5rem; box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25); overflow: hidden; animation: sp-in 0.12s ease-out; }
.sp-input-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; border-bottom: 1px solid #eceef1; }
.sp-input-icon { font-size: 1.25rem; color: #8b8e97; flex: none; }
.sp-input { flex: 1; border: none; outline: none; box-shadow: none !important; font-size: 1.05rem; padding: 0.25rem 0; background: transparent; }
.sp-close { border: none; background: #f3f4f7; color: #787a82; font-size: 0.75rem; border-radius: 0.25rem; padding: 0.25rem 0.5rem; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }
.sp-close:hover { background: #e8e9ee; color: #4c4f58; }
.sp-results { overflow-y: auto; padding: 0.5rem; }
.sp-group-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: #8b8e97; padding: 0.5rem 0.5rem 0.25rem; }
.sp-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.65rem; border-radius: 0.375rem; color: #4c4f58; text-decoration: none; font-size: 0.95rem; }
.sp-item:hover { background: #f3f4f7; color: #4c4f58; text-decoration: none; }
.sp-item.sp-active { background: rgba(105, 108, 255, 0.08); color: #696cff; }
.sp-item-icon { font-size: 1.15rem; color: #8b8e97; flex: none; }
.sp-active .sp-item-icon { color: #696cff; }
.sp-item-text { display: flex; flex-direction: column; min-width: 0; }
.sp-item-baslik { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-item-alt { font-size: 0.78rem; color: #8b8e97; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-active .sp-item-alt { color: #696cff; }
/* Sonuç satırı: gezinme linki + favori yıldızı */
.sp-row { display: flex; align-items: center; border-radius: 0.375rem; }
.sp-row:hover { background: #f3f4f7; }
.sp-row .sp-item { flex: 1 1 auto; min-width: 0; }
.sp-row .sp-item:hover { background: transparent; }
.sp-star { flex: none; border: none; background: transparent; color: #b4b6bf; padding: 0.4rem 0.55rem; margin-right: 0.15rem; cursor: pointer; border-radius: 0.375rem; display: inline-flex; align-items: center; }
.sp-star:hover { color: #ff9f43; background: #e9eaef; }
.sp-star:focus-visible { outline: 2px solid #696cff; outline-offset: -2px; }
.sp-star i { font-size: 1.05rem; }
.sp-star.sp-star-active { color: #ff9f43; }
.sp-empty { padding: 1.25rem 0.75rem; text-align: center; color: #8b8e97; font-size: 0.9rem; }
.sp-footer { display: flex; gap: 1rem; padding: 0.6rem 1rem; border-top: 1px solid #eceef1; color: #8b8e97; font-size: 0.75rem; }
.sp-footer kbd { background: #f3f4f7; border: 1px solid #e0e2e8; border-radius: 0.25rem; padding: 1px 5px; font-size: 0.7rem; margin-right: 2px; }

@keyframes sp-in {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.sp-panel { animation: none; }
}

/* Dark theme uyumu (projedeki dark mod için) */
[data-theme="dark"] .sp-panel,
.dark-mode .sp-panel { background: #2f3349; }
[data-theme="dark"] .sp-input-row,
[data-theme="dark"] .sp-footer { border-color: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .sp-input { color: #d7d8de; }
[data-theme="dark"] .sp-close { background: rgba(255, 255, 255, 0.08); color: #aaaab3; }
[data-theme="dark"] .sp-item,
[data-theme="dark"] .sp-item:hover { color: #d7d8de; }
[data-theme="dark"] .sp-item:hover { background: rgba(255, 255, 255, 0.06); }
[data-theme="dark"] .sp-row:hover,
.dark-mode .sp-row:hover { background: rgba(255, 255, 255, 0.06); }
[data-theme="dark"] .sp-star,
.dark-mode .sp-star { color: #9a9cad; }
[data-theme="dark"] .sp-star:hover,
.dark-mode .sp-star:hover { color: #ff9f43; background: rgba(255, 255, 255, 0.1); }
[data-theme="dark"] .sp-star.sp-star-active,
.dark-mode .sp-star.sp-star-active { color: #ff9f43; }

/* Navbar tetikleyici buton */
.sp-trigger { cursor: pointer; user-select: none; }
.sp-trigger .sp-kbd { background: rgba(0, 0, 0, 0.06); border-radius: 0.25rem; padding: 0 5px; font-size: 0.7rem; color: inherit; margin-left: 4px; }
