/* alternatif2/css/styles.css kapsamadığı, portala eklenen yeni bileşenler (dil seçici, form durumu vb.). */

.lang-switch { position: relative; margin-inline-start: 0.4rem; }
.lang-switch-toggle {
  height: 2.2rem;
  padding: 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  cursor: pointer;
}
.lang-switch-toggle:hover { color: var(--primary); border-color: var(--primary); }
.lang-switch-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.4rem);
  z-index: 60;
  min-width: 9rem;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(20, 30, 40, 0.12);
  padding: 0.35rem;
}
.lang-switch-menu[hidden] { display: none; }
.lang-switch-menu li { list-style: none; }
.lang-switch-menu a {
  display: block;
  padding: 0.5rem 0.6rem;
  font-size: 0.86rem;
  color: var(--ink);
}
.lang-switch-menu a:hover { background: var(--surface-alt); color: var(--primary); }
.lang-switch-menu a[aria-current="true"] { color: var(--primary); font-weight: 700; }

html[dir="rtl"] .lang-switch-menu { inset-inline-end: auto; inset-inline-start: 0; }

.form-status.is-error { color: #b42318; }
.form-status.is-ok { color: #1a7a3f; }

/* Proje detay sayfası galerisi */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* Katalog PDF pop-up */
.catalog-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.catalog-modal[hidden] { display: none; }
.catalog-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 20, 28, 0.65); }
.catalog-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 60rem);
  height: min(90vh, 80rem);
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.catalog-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.catalog-modal-bar a { font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; color: var(--primary); }
.catalog-modal-bar a:hover { color: var(--red); }
.catalog-modal-bar button {
  background: none;
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--ink);
}
.catalog-modal-bar button:hover { border-color: var(--red); color: var(--red); }
.catalog-modal-panel iframe { flex: 1; width: 100%; border: 0; }

@media (max-width: 640px) {
  .catalog-modal { padding: 0; }
  .catalog-modal-panel { width: 100%; height: 100vh; }
}
