/* Temel Ayarlar ve Sıfırlama */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding: 2.5rem 1rem;
}

/*
.container {
  max-width: 1240px;
  margin: 0 auto;
}
*/

/* Filtre Çubuğu - Sayfanın Sağına Hizalı */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end; /* Sağ tarafa hizalama */
  gap: 1.25rem;
  /*background: var(--card-bg);*/
  /*padding: 1.25rem;*/
  border-radius: var(--radius);
  /*border: 1px solid var(--border);*/
  /*box-shadow: var(--shadow);*/
  margin-bottom: 2rem;
}

.filter-bar h1 {
	margin-top:50px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 0 1 320px;
  position: relative;
  box-shadow: var(--shadow);
  background: var(--card-bg);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Input Sarmalayıcı ve İçi Temizle Butonu */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  width: 100%;
  padding: 0.65rem 2.2rem 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.clear-icon {
  position: absolute;
  right: 10px;
  width: 20px;
  height: 20px;
  background: #cbd5e1;
  color: #475569;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  z-index: 2;
  transition: background 0.2s;
}

.clear-icon:hover {
  background: #94a3b8;
  color: #fff;
}

/* Türkçe Datepicker Popup (Sağa Hizalı) */
.calendar-popup {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 310px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  padding: 0.9rem;
  z-index: 50;
  display: none;
  user-select: none;
}

.calendar-popup.open {
  display: block;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.calendar-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.cal-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
}

.cal-btn:hover {
  background: #f1f5f9;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 3px;
}

.cal-day {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 0;
  position: relative;
  transition: background 0.15s;
}

.cal-day:hover:not(.empty) {
  background: #e2e8f0;
}

/* Bugün / Aktif Gün Vurgusu */
.cal-day.today:not(.range-start):not(.range-end):not(.in-range) {
	border: 1.5px solid var(--primary);
	color: var(--primary);
	font-weight: 700;
	border-radius: 6px;
	background-color: rgba(37, 99, 235, 0.05);
}

.cal-day.range-start {
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: bold;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.cal-day.range-end {
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: bold;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.cal-day.range-start.range-end {
  border-radius: 6px;
}

.cal-day.in-range {
  background: var(--primary-light);
  color: #1e40af;
}

.cal-day.empty {
  cursor: default;
}

/* 3 Sütunlu Grid - Sağdan ve Soldan Artırılmış Geniş Boşluklar */
.columns {
  display: flex;
  flex-wrap: wrap;
  margin: -1.25rem -1.25rem; /* Genişletilmiş dış negatif boşluk */
}

.columns h4 {text-transform:none;}

.column.is-4 {
  flex: none;
  width: 33.3333%;
  /*padding: 1.25rem 1.25rem;*/ /* Sütunlar arasına daha fazla sağ ve sol boşluk */
  padding: 3rem;
  display: flex;
}

/* Kart Tasarımı */
.amplify-card.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.amplify-card.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Resim Alanı (Aynı Yükseklik) */
.image.is-3by2 {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background-color: #e2e8f0;
  display: block;
}

.image.is-3by2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.has-margin-bottom-5 {
  margin-bottom: 1.25rem;
}

.has-text-grey {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.has-text-dark {
  color: var(--text);
  text-decoration: none;
}

.is-size-5 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.has-margin-bottom-5 p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.45;
}

.button.is-link {
  display: inline-block;
  background-color: var(--primary);
  color: #ffffff;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}

.button.is-link:hover {
  background-color: var(--primary-hover);
}

/* Boş Durum */
.empty-state {
  width: 100%;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  display: none;
}

/* Sayfalama */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagerContent {
	margin: 0 auto;
    width: fit-content !important;
}

@media (min-width: 1430px) {
	.filter-bar h1 {
		margin-right:30%;
	}
}

/* Duyarlı Tasarım */
@media (max-width: 960px) {
  .column.is-4 {
	width: 50%;
	padding: 1rem;
  }
  .columns {
	margin: -1rem;
  }
}

@media (max-width: 640px) {
  .column.is-4 {
	width: 100%;
	padding: 0.75rem 0;
  }
  .columns {
	margin: 0;
  }
  .filter-bar {
	justify-content: stretch;
  }
  .filter-group {
	flex: 1 1 100%;
  }
  .calendar-popup {
	width: 100%;
	right: 0;
  }
}