* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body, 'Plus Jakarta Sans'), 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* turkinform.com.tr renk paleti + tipografi ölçeği */
:root {
  --te-color: #02020c;
  --te-link-color: #333;
  --te-hover-color: #444444;
  --header-accent: #ffc107;
  --font-body: 'Plus Jakarta Sans';
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
}

/* Header Genel */
.header {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Üst Bölüm - Ana Navigasyon */
.header-top {
  background-color: var(--te-color);
  min-height: 56px;
  padding: 10px 24px 7px;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.header-container--three {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-left { display: flex; align-items: center; }
.header-center { display: flex; justify-content: center; align-items: center; }
.header-right { display: flex; justify-content: flex-end; align-items: center; }

/* Logo & Başlık */
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.mosque-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.site-title {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Navigasyon */
.header-nav { display: flex; align-items: center; gap: 4px; }

.nav-link {
  color: white;
  text-decoration: none;
  padding: 10px 16px;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.nav-link.active {
  background-color: var(--header-accent);
  color: #02020c;
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: white;
  cursor: pointer;
  font-size: 0.95rem;
  margin-left: 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.language-selector:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.chevron {
  flex-shrink: 0;
}

/* Diyanet Logosu */
.header-logo {
  flex-shrink: 0;
}

.diyanet-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid white;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Alt Bölüm - Konum Seçici */
.header-bottom {
  background-color: #0d1117;
  padding: 10px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.location-row {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}

.location-select {
  flex: 1;
  min-width: 0;
  padding: 8px 32px 8px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--te-link-color);
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath stroke='%23666' stroke-width='1.5' fill='none' d='M2 4L6 8L10 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.2s, background-color 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.location-select:first-child {
  flex: 0 0 auto;
  width: 105px;
  min-width: 105px;
  color: #888;
  font-size: 0.8rem;
  cursor: default;
  opacity: 0.9;
}

.location-select:hover {
  background-color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.location-select:focus {
  outline: none;
  border-color: var(--header-accent);
  background-color: #fff;
}

@media (max-width: 380px) {
  .header-bottom { padding: 8px 12px; }
  .location-row { gap: 6px; }
  .location-select:first-child {
    width: 88px;
    min-width: 88px;
    font-size: 0.7rem;
    padding: 7px 22px 7px 8px;
    background-position: right 6px center;
  }
  .location-select {
    font-size: 0.75rem;
    padding: 7px 28px 7px 10px;
    background-position: right 8px center;
  }
}

@media (min-width: 540px) {
  .location-select:first-child {
    width: 110px;
    min-width: 110px;
  }
  .location-select {
    font-size: 0.9rem;
    padding: 9px 36px 9px 14px;
    background-position: right 12px center;
  }
}
