/**
 * Sol üst site markası — index.html ile aynı tipografi ve renk.
 */
.site-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.375rem;
  font-weight: 400 !important;
  color: inherit !important;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.site-brand:hover {
  opacity: 0.9;
}

.site-brand-logo {
  height: 2rem;
  width: auto;
  max-height: 2rem;
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 768px) {
  .site-brand-logo {
    height: 2.25rem;
    max-height: 2.25rem;
  }
}

.site-brand-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.125rem;
}

.site-brand-wordmark {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 700 !important;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #f97316 !important;
}

@media (min-width: 640px) {
  .site-brand-wordmark {
    font-size: 1.125rem;
  }
}

.dark .site-brand-wordmark {
  color: #fb923c !important;
}

.site-brand-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.6875rem;
  font-weight: 500 !important;
  line-height: 1.2;
  color: #64748b !important;
}

.dark .site-brand-meta {
  color: #94a3b8 !important;
}

/* Eski sayfalarda kalan font-black / siyah metinleri nötrle */
header a.site-brand span:not(.site-brand-wordmark):not(.site-brand-meta),
header .site-brand > span:not(.site-brand-wordmark):not(.site-brand-meta) {
  font-weight: 500 !important;
  color: #64748b !important;
}

header a[href="index.html"]:has(.site-brand-logo) {
  font-weight: 400 !important;
}

/* —— Tasarım sistemi (mobil + masaüstü) —— */
:root {
  --z-header: 30;
  --z-dropdown: 50;
  --z-drawer: 65;
  --z-modal: 100;
  --z-overlay: 200;
  --brand: #f97316;
  --brand-dark: #ea580c;
  --focus-ring: rgba(249, 115, 22, 0.42);
}

/* Turuncu odak halkası — varsayılan mavi vurguyu bastırır */
:where(input:not([type="checkbox"]):not([type="radio"]), select, textarea, button):focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--focus-ring);
}

.dark :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea, button):focus-visible {
  box-shadow: 0 0 0 2px #0f172a, 0 0 0 4px var(--focus-ring);
}

/* Ana aksiyon butonları */
.btn-cta-primary,
.bg-cta-primary {
  background-color: var(--brand) !important;
  color: #fff !important;
}

.btn-cta-primary:hover,
.bg-cta-primary:hover {
  background-color: var(--brand-dark) !important;
}

/* Teklif / ödeme gibi yanlışlıkla mavi kalan accent CTA’lar */
button.bg-accent.rounded-full,
a.bg-accent.rounded-full,
button.bg-accent.rounded-2xl,
#listing-detail-offer-btn,
#ilan-side-offer,
#ilan-mob-offer,
#pay-worker-btn {
  background-color: var(--brand) !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: 0 10px 28px -12px rgba(249, 115, 22, 0.55) !important;
}

button.bg-accent.rounded-full:hover,
a.bg-accent.rounded-full:hover,
#listing-detail-offer-btn:hover,
#ilan-side-offer:hover,
#ilan-mob-offer:hover,
#pay-worker-btn:hover {
  background-color: var(--brand-dark) !important;
}

/* Native select — siyah çerçeve ve mavi hover kaldır */
select:not(.sr-only):not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  padding-right: 2rem;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 0.75rem;
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
}

select:not(.sr-only):not([multiple]):hover {
  border-color: rgba(249, 115, 22, 0.35);
}

select:not(.sr-only):not([multiple]):focus {
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.dark select:not(.sr-only):not([multiple]) {
  background-color: #0f172a;
  border-color: rgba(71, 85, 105, 0.9);
  color: #f1f5f9;
}

/* Tailwind focus:ring-primary → turuncu (utility sınıfları) */
.focus\:ring-primary\/20:focus,
.focus\:ring-primary\/30:focus,
.focus\:ring-primary\/40:focus,
.focus\:ring-2.focus\:ring-primary\/20:focus {
  --tw-ring-color: rgba(249, 115, 22, 0.28) !important;
}

.focus\:border-primary:focus {
  border-color: rgba(249, 115, 22, 0.62) !important;
}

/* Erişilebilirlik — klavye ile ana içeriğe atla (Faz 3) */
.bg-skip-link {
  position: fixed;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 200;
  transform: translateY(-140%);
  border-radius: 0.75rem;
  background: #f97316;
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  transition: transform 0.15s ease;
}

.bg-skip-link:focus {
  transform: translateY(0);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

:root {
  --bg-z-header: 30;
  --bg-z-dropdown: 50;
  --bg-z-modal: 70;
  --bg-z-toast: 90;
}

/* Profil ayarları — logo alanıyla çakışmayı önle */
#header-hesabim-settings-btn,
a.pwa-mob-gear {
  position: relative;
  z-index: 12;
}

header a.site-brand {
  position: relative;
  z-index: 1;
  max-width: min(52vw, 12rem);
}
