/* Kanal T — header */
:root {
  --kt-header-bg: #ffffff;
  --kt-header-border: #e8e8e8;
  --kt-header-text: #1a1a1a;
  --kt-header-muted: #555555;
  --kt-header-accent: #d10000;
  --kt-header-accent-soft: rgba(209, 0, 0, 0.08);
  --kt-header-height: 4.5rem;
  --kt-font-ui: "Source Sans 3", "Segoe UI", sans-serif;
  --kt-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.kt-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kt-header {
  background: var(--kt-header-bg);
  border-bottom: 1px solid var(--kt-header-border);
  font-family: var(--kt-font-ui);
  position: sticky;
  top: var(--kt-adminbar-h, 0px);
  z-index: 100;
}

.kt-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  min-height: var(--kt-header-height);
  box-sizing: border-box;
}

.kt-header__logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
  text-decoration: none;
  transition: transform 180ms var(--kt-ease);
}

.kt-header__logo:hover {
  transform: translateY(-1px);
}

.kt-header__logo img {
  display: block;
  height: 2.75rem;
  width: auto;
  max-width: 11.25rem;
}

.kt-header__nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-width: 0;
}

.kt-header__menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.1rem 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.kt-header__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  color: var(--kt-header-text);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 0.25rem;
  position: relative;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms var(--kt-ease);
}

.kt-header__link::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--kt-header-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms var(--kt-ease);
}

.kt-header__link:hover,
.kt-header__link:focus-visible {
  color: var(--kt-header-accent);
  background: var(--kt-header-accent-soft);
  transform: translateY(-1px);
}

.kt-header__link:hover::after,
.kt-header__link:focus-visible::after {
  transform: scaleX(1);
}

.kt-header__link:focus-visible {
  outline: 2px solid var(--kt-header-accent);
  outline-offset: 2px;
}

.kt-header__link.is-active {
  color: var(--kt-header-accent);
}

.kt-header__link.is-active::after {
  transform: scaleX(1);
}

/* Actions: search + live */
.kt-header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
}

.kt-header__search {
  position: relative;
  display: flex;
  align-items: center;
}

.kt-header__search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--kt-header-text);
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms var(--kt-ease);
}

.kt-header__search-btn:hover,
.kt-header__search-btn:focus-visible {
  color: var(--kt-header-accent);
  background: var(--kt-header-accent-soft);
  transform: translateY(-1px);
}

.kt-header__search.is-open .kt-header__search-btn {
  display: none;
}

.kt-header__search-panel {
  display: none;
  align-items: center;
  gap: 0.35rem;
  width: 0;
  opacity: 0;
  overflow: hidden;
}

.kt-header__search.is-open .kt-header__search-panel {
  display: flex;
  width: 15.5rem;
  opacity: 1;
  animation: kt-search-expand 280ms var(--kt-ease) both;
}

@keyframes kt-search-expand {
  from {
    opacity: 0;
    transform: translateX(8px) scaleX(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.kt-header__search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 2.4rem;
  padding: 0 0.85rem;
  border: 1px solid var(--kt-header-border);
  border-radius: 999px;
  background: #fafafa;
  color: var(--kt-header-text);
  font-family: inherit;
  font-size: 0.875rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.kt-header__search-input:focus {
  outline: none;
  border-color: var(--kt-header-accent);
  box-shadow: 0 0 0 3px rgba(209, 0, 0, 0.12);
  background: #fff;
}

.kt-header__search-submit,
.kt-header__search-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--kt-header-muted);
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.kt-header__search-submit:hover,
.kt-header__search-close:hover {
  color: var(--kt-header-accent);
  background: var(--kt-header-accent-soft);
}

/* Canlı Yayın button */
.kt-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--kt-header-accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(209, 0, 0, 0.28);
  transition: transform 180ms var(--kt-ease), background-color 160ms ease, box-shadow 180ms ease;
}

.kt-live-btn:hover,
.kt-live-btn:focus-visible {
  background: #b40000;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(209, 0, 0, 0.35);
  color: #fff;
}

.kt-live-btn:active {
  transform: translateY(0);
}

.kt-live-btn .kt-live-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: #fff;
}

.kt-header__tools--mobile {
  display: none;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.kt-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.45rem;
  border: 1px solid var(--kt-header-border);
  border-radius: 0.35rem;
  background: #fff;
  cursor: pointer;
}

.kt-header__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--kt-header-text);
  border-radius: 1px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.kt-header__toggle[aria-expanded="true"] .kt-header__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.kt-header__toggle[aria-expanded="true"] .kt-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.kt-header__toggle[aria-expanded="true"] .kt-header__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.kt-header__search-bar {
  display: none;
  align-items: center;
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 0.85rem;
}

.kt-header.is-search-open .kt-header__search-bar {
  display: flex;
  animation: kt-rise 280ms var(--kt-ease) both;
}

.kt-header__search-bar .kt-header__search-input {
  flex: 1 1 auto;
}

.kt-header__search-bar .kt-header__search-submit,
.kt-header__search-bar .kt-header__search-close {
  width: auto;
  height: 2.4rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.kt-header__search-bar .kt-header__search-submit {
  background: var(--kt-header-accent);
  color: #fff;
}

.kt-header__search-bar .kt-header__search-close {
  border: 1px solid var(--kt-header-border);
  color: var(--kt-header-text);
}

@media (max-width: 1100px) {
  .kt-header__link {
    font-size: 0.85rem;
    padding: 0.4rem 0.5rem;
  }

  .kt-live-btn__text {
    font-size: 0.75rem;
  }
}

@media (max-width: 980px) {
  .kt-header__tools--mobile {
    display: inline-flex;
  }

  .kt-header__toggle {
    display: inline-flex;
  }

  .kt-header__nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--kt-header-bg);
    border-bottom: 1px solid var(--kt-header-border);
    padding: 0.5rem 1.25rem 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  }

  .kt-header__nav.is-open {
    display: flex;
    animation: kt-rise 320ms var(--kt-ease) both;
  }

  .kt-header__menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .kt-header__link {
    width: 100%;
    padding: 0.75rem 0.85rem;
    justify-content: flex-start;
  }

  .kt-header__link::after {
    left: 0.85rem;
    right: auto;
    width: 1.5rem;
    bottom: 0.55rem;
  }

  /* Desktop search/live hidden inside collapsed nav — mobile tools handle them */
  .kt-header__actions {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kt-header__link,
  .kt-header__link::after,
  .kt-header__toggle-bar,
  .kt-header__logo,
  .kt-header__search-btn,
  .kt-live-btn,
  .kt-header__search.is-open .kt-header__search-panel {
    transition: none;
    animation: none;
  }

  .kt-header__link:hover,
  .kt-header__logo:hover,
  .kt-live-btn:hover {
    transform: none;
  }
}

.kt-header__link .kt-ico {
  font-size: 1.05em;
  flex-shrink: 0;
}
.kt-header__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  margin: 0;
  padding: .4rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: .5rem;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  z-index: 50;
}
.kt-header__item.has-dropdown:hover > .kt-header__dropdown,
.kt-header__item.has-dropdown:focus-within > .kt-header__dropdown {
  display: block;
}
.kt-header__dropdown a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: .55rem .9rem;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 650;
  font-size: .9rem;
}
.kt-header__dropdown a:hover { background: #f6f6f6; color: #d10000; }
.kt-live-btn {
  background: var(--kt-live-bg, #d10000) !important;
  color: var(--kt-live-fg, #fff) !important;
}
@media (max-width: 980px) {
  .kt-header__dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding-left: .75rem;
  }
  .kt-header__item.has-dropdown.is-open > .kt-header__dropdown,
  .kt-header__nav.is-open .kt-header__item.has-dropdown > .kt-header__dropdown {
    display: block;
  }
}
