/* Sosta — kurumsal header */

.sosta-header {
  --header-nav: #334155;
  --header-nav-hover: #004ccb;
  --header-border: #e2e8f0;
  --header-top-bg: #0f172a;
  --header-main-bg: #ffffff;
  --header-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 4px 24px rgba(15, 23, 42, 0.04);
}

.sosta-header__top {
  background: var(--header-top-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sosta-header__top a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.sosta-header__top a:hover {
  color: #fff;
}

.sosta-header__top-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.18);
}

.sosta-header__main {
  background: var(--header-main-bg);
  box-shadow: var(--header-shadow);
  border-bottom: 1px solid var(--header-border);
}

.sosta-header__logo {
  transition: opacity 0.2s ease;
}

.sosta-header__logo:hover {
  opacity: 0.88;
}

.sosta-header__logo img {
  height: 58px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

@media (min-width: 1024px) {
  .sosta-header__logo img {
    height: 68px;
    max-width: 300px;
  }
}

/* Desktop nav */
.sosta-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
}

.sosta-nav__item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.sosta-nav__link,
.sosta-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  height: 80px;
  padding: 0 14px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--header-nav);
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.sosta-nav__link:hover,
.sosta-nav__trigger:hover,
.sosta-nav__item:hover > .sosta-nav__trigger {
  color: var(--header-nav-hover);
}

.sosta-nav__link.is-active,
.sosta-nav__trigger.is-active {
  color: var(--header-nav-hover);
}

.sosta-nav__link.is-active::after,
.sosta-nav__trigger.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--header-nav-hover);
  border-radius: 2px 2px 0 0;
}

.sosta-nav__chevron {
  font-size: 18px !important;
  opacity: 0.55;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.sosta-nav__item:hover .sosta-nav__chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown */
.sosta-nav__dropdown {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 240px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--header-border);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 60;
}

.sosta-nav__item:hover > .sosta-nav__dropdown,
.sosta-nav__item:focus-within > .sosta-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sosta-nav__dropdown--wide {
  min-width: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 12px;
}

.sosta-nav__dropdown--services {
  min-width: min(720px, 92vw);
  max-height: min(70vh, 520px);
  overflow-y: auto;
  grid-template-columns: 1fr 1fr 1fr;
  scrollbar-width: thin;
}

.sosta-nav__dropdown--services .sosta-nav__dropdown-text strong {
  font-size: 0.8125rem;
  line-height: 1.3;
}

.sosta-nav__dropdown--services a {
  padding: 8px 10px;
}

.sosta-nav__dropdown--shop {
  min-width: 520px;
  grid-template-columns: 1fr 1fr;
}

.sosta-nav__dropdown-label {
  grid-column: 1 / -1;
  padding: 6px 10px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.sosta-nav__dropdown a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.18s ease;
}

.sosta-nav__dropdown a:hover {
  background: #f1f5f9;
}

.sosta-nav__dropdown-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eff6ff;
  color: #004ccb;
}

.sosta-nav__dropdown-icon .material-symbols-outlined {
  font-size: 20px !important;
}

.sosta-nav__dropdown-text strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

.sosta-nav__dropdown-text span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 400;
  color: #64748b;
  line-height: 1.35;
}

.sosta-nav__dropdown--simple a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
}

.sosta-nav__dropdown--simple a:hover {
  color: #004ccb;
}

/* CTA actions */
.sosta-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
  padding-left: 16px;
  border-left: 1px solid var(--header-border);
  height: auto;
  align-self: center;
}

.sosta-header__actions .sosta-nav__item {
  height: auto;
  align-self: center;
}

/* Üyelik — Sepet / İletişim ile aynı boyut */
.sosta-header__account {
  position: relative;
}

.sosta-header__account-btn {
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.sosta-header__account.is-active .sosta-header__account-btn {
  border-color: #004ccb;
  color: #004ccb;
  background: #f8fafc;
}

.sosta-header__account-label {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sosta-header__account-chevron {
  font-size: 18px !important;
  margin-left: -2px;
  opacity: 0.65;
  transition: transform 0.2s ease;
}

.sosta-header__account:hover .sosta-header__account-chevron,
.sosta-header__account:focus-within .sosta-header__account-chevron {
  opacity: 1;
  transform: rotate(180deg);
}

.sosta-header__account-menu {
  right: 0;
  left: auto;
  top: calc(100% + 8px);
  min-width: 176px;
}

.sosta-header__actions .sosta-nav__dropdown {
  top: calc(100% + 8px);
  min-width: 180px;
}

.sosta-header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sosta-header__btn--ghost {
  color: #334155;
  border: 1px solid #cbd5e1;
  background: #fff;
}

.sosta-header__btn--ghost:hover {
  border-color: #004ccb;
  color: #004ccb;
  background: #f8fafc;
}

.sosta-header__btn--primary {
  color: #fff;
  background: #004ccb;
  border: 1px solid #004ccb;
  box-shadow: 0 1px 2px rgba(0, 76, 203, 0.2);
}

.sosta-header__btn--primary:hover {
  background: #003da8;
  border-color: #003da8;
  box-shadow: 0 4px 12px rgba(0, 76, 203, 0.28);
}

.sosta-header__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--header-border);
  background: #fff;
  color: #0f172a;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sosta-header__menu-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Mobile drawer — kurumsal */
#sosta-mobile-drawer .sosta-mobile-section-title {
  padding: 8px 12px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

#sosta-mobile-drawer details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  border-radius: 10px;
  cursor: pointer;
  list-style: none;
}

#sosta-mobile-drawer details summary::-webkit-details-marker {
  display: none;
}

#sosta-mobile-drawer details[open] summary {
  background: #f1f5f9;
  color: #004ccb;
}

#sosta-mobile-drawer details a {
  display: block;
  padding: 10px 14px 10px 28px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
}

#sosta-mobile-drawer details a:hover {
  color: #004ccb;
}

#sosta-mobile-drawer .sosta-mobile-link {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  border-radius: 10px;
  text-decoration: none;
}

#sosta-mobile-drawer .sosta-mobile-link:hover {
  background: #f8fafc;
}

#sosta-mobile-drawer .sosta-mobile-link.is-active {
  background: #eff6ff;
  color: #004ccb;
}
