/* İhalelerimiz */

.ihaleler-page {
  background: #f4f6f9;
}

body.ihaleler-page {
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}

body.ihaleler-page .main-wrapper {
  overflow: visible !important;
}

.ihale-breadcrumb {
  padding: 15px 0;
  background: #f4f6f9;
  margin-bottom: 0;
}

.ihale-breadcrumb .breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.ihale-breadcrumb .breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}

.ihale-breadcrumb .breadcrumb-item a {
  color: #666;
  text-decoration: none;
}

.ihale-breadcrumb .breadcrumb-item a:hover {
  color: #012e5a;
}

.ihale-breadcrumb .breadcrumb-separator {
  margin: 0 10px;
  color: #999;
}

.ihale-breadcrumb .breadcrumb-item.active {
  color: #333;
  font-weight: 500;
}

.ihale-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 4rem 0 3rem;
  text-align: center;
  color: #fff;
  background: #011a33;
}

.ihale-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 80% at 15% 20%, rgba(201, 162, 39, 0.2), transparent 55%),
    radial-gradient(ellipse 60% 70% at 90% 80%, rgba(70, 140, 200, 0.22), transparent 50%),
    linear-gradient(145deg, #061526 0%, #0c2a4a 50%, #133454 100%);
}

.ihale-hero .wrapper {
  position: relative;
  z-index: 1;
}

.ihale-hero__eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d4af37;
}

.ihale-hero h1 {
  margin: 0 0 0.75rem;
  padding: 0;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 300;
  color: #fff;
}

.ihale-hero__lead {
  margin: 0 auto;
  max-width: 38rem;
  font-size: 1.4rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 300;
}

.ihale-section {
  padding: 2.25rem 0 4rem;
}

.ihale-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.ihale-meta {
  margin: 0;
  color: #546173;
  font-size: 1.3rem;
}

.ihale-search {
  display: flex;
  gap: 0.5rem;
  min-width: min(100%, 360px);
}

.ihale-search input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(1, 46, 90, 0.15);
  border-radius: 8px;
  background: #fff;
  font-size: 1.25rem;
  color: #011a33;
}

.ihale-search input:focus {
  outline: 2px solid rgba(1, 46, 90, 0.25);
  outline-offset: 1px;
}

.ihale-search button {
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 8px;
  background: #012e5a;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
}

.ihale-search button:hover {
  background: #163a6b;
}

.ihale-list {
  display: grid;
  gap: 1rem;
}

.ihale-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: start;
  padding: 1.45rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(1, 46, 90, 0.08);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(1, 46, 90, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ihale-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(1, 46, 90, 0.1);
}

.ihale-card__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.4;
  color: #011a33;
}

.ihale-card__title-btn {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  cursor: pointer;
}

.ihale-card__title-btn:hover {
  color: #0b4a86;
}

.ihale-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #546173;
  font-size: 1.3rem;
}

.ihale-card__meta li {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  max-width: 100%;
}

.ihale-card__meta i {
  margin-top: 0.25rem;
  color: #c9a227;
}

.ihale-card__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.ihale-card__date-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 5.8rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: linear-gradient(145deg, #0c2a4a, #012e5a);
  color: #fff;
  text-align: center;
}

.ihale-card__date-pill strong {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
}

.ihale-card__date-pill span {
  margin-top: 0.2rem;
  font-size: 1.05rem;
  opacity: 0.85;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ihale-card__docs {
  font-size: 1.2rem;
  color: #667788;
}

.ihale-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.15rem;
  border: 0;
  border-radius: 8px;
  background: #012e5a;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}

.ihale-card__more:hover {
  background: #163a6b;
  color: #fff;
}

.ihale-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  border: 1px dashed rgba(1, 46, 90, 0.18);
}

.ihale-empty p {
  margin: 0;
  color: #546173;
  font-size: 1.4rem;
}

.ihale-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.ihale-pager a,
.ihale-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(1, 46, 90, 0.12);
  color: #012e5a;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
}

.ihale-pager a:hover {
  background: #012e5a;
  color: #fff;
}

.ihale-pager .is-current {
  background: #012e5a;
  color: #fff;
  border-color: #012e5a;
}

/* Detail (modal içinde de kullanılıyor) */
.ihale-detail__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.ihale-detail__facts li {
  padding: 1.1rem 1.2rem;
  background: #f4f7fb;
  border-radius: 10px;
}

.ihale-detail__facts strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #8a6a35;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ihale-detail__facts span {
  color: #2f3b4a;
  font-size: 1.4rem;
  line-height: 1.5;
  font-weight: 400;
}

.ihale-docs h2,
.ihale-docs h3 {
  margin: 0 0 1rem;
  padding: 0;
  color: #011a33;
  font-size: 1.65rem;
  font-weight: 600;
}

.ihale-docs__list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ihale-docs__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(1, 46, 90, 0.12);
  background: #fff;
  color: #012e5a;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.3rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ihale-docs__list a:hover {
  background: #f0f5fb;
  border-color: rgba(1, 46, 90, 0.28);
}

.ihale-docs__list i {
  color: #c9a227;
  font-size: 1.25rem;
}

.ihale-docs__empty {
  margin: 0;
  color: #667788;
  font-size: 1.35rem;
}

/* Modal */
body.ihale-modal-open {
  overflow: hidden !important;
}

.ihale-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.ihale-modal[hidden] {
  display: none !important;
}

.ihale-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 18, 36, 0.62);
  backdrop-filter: blur(3px);
}

.ihale-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 1.75rem 1.7rem 1.9rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  outline: none;
}

.ihale-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: #f0f4f8;
  color: #011a33;
  font-size: 1.2rem;
  cursor: pointer;
}

.ihale-modal__close:hover {
  background: #e2e8f0;
}

.ihale-modal__title {
  margin: 0 2.5rem 1.25rem 0;
  padding: 0;
  color: #011a33;
  font-size: clamp(1.55rem, 2.8vw, 1.95rem);
  font-weight: 600;
  line-height: 1.35;
}

.ihale-modal__facts {
  margin-bottom: 1.5rem;
}

@media (max-width: 780px) {
  .ihale-card {
    grid-template-columns: 1fr;
  }

  .ihale-card__aside {
    align-items: stretch;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .ihale-detail__facts,
  .ihale-modal__facts {
    grid-template-columns: 1fr;
  }

  .ihale-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .ihale-search {
    min-width: 0;
    width: 100%;
  }

  .ihale-modal {
    padding: 0.75rem;
    align-items: flex-end;
  }

  .ihale-modal__dialog {
    max-height: 92vh;
    border-radius: 16px 16px 10px 10px;
  }
}
