/**
 * Paket Karşılaştırma Tablosu - Profesyonel Tasarım
 * Peak Web referansına uygun
 */

/* Renk sabitleri */
:root {
  --paket-heading: #152349;
  --paket-subheading: #236fa1;
  --paket-muted: #7c9ac0;
  --paket-category-bg: #f8f9fa;
  --paket-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --paket-card-radius: 12px;
}

/* Ana wrapper - beyaz arka plan, tam genişlik */
.paket-compare-wrapper {
  background: #fff;
  padding: 2.5rem 0;
  width: 100%;
}

/* Grid layout - header ve özellik satırları hizalı, geniş tablo */
.paket-compare-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) repeat(var(--paket-count, 3), minmax(220px, 1fr));
  gap: 0 1.5rem;
  align-items: stretch;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header row - children become grid items */
.paket-compare-grid .compare-header-row {
  display: contents;
}

/* Header satırı - sol başlık alanı */
.paket-compare .compare-header-left {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paket-category-bg);
  border-radius: var(--paket-card-radius) 0 0 var(--paket-card-radius);
}

.paket-compare .compare-header-left .head {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--paket-heading);
  margin-bottom: 0.35rem;
}

.paket-compare .compare-header-left .spot {
  font-size: 0.95rem;
  color: var(--paket-muted);
  line-height: 1.5;
}

/* Paket kartları - masaüstü, eşit yükseklik ve hizalama */
.paket-compare .pack-box-card {
  background: #fff;
  border-radius: var(--paket-card-radius);
  box-shadow: var(--paket-card-shadow);
  padding: 1.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100%;
  border: none;
  position: relative;
}

/* Banner alanı - tüm kartlarda eşit yükseklik için */
.paket-compare .pack-box-card .pack-banner-area {
  min-height: 42px;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
  width: calc(100% + 3rem);
  flex-shrink: 0;
}

.paket-compare .pack-box-card .pack-banner-spacer {
  height: 42px;
  display: block;
  background: #fff;
  border-radius: var(--paket-card-radius) var(--paket-card-radius) 0 0;
}

/* Öne çıkan banner - kart üstünde tam genişlik */
.paket-compare .pack-box-card .table-feature {
  border-radius: var(--paket-card-radius) var(--paket-card-radius) 0 0;
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fiyat bloğu - eşit yükseklik için (Enterprise "Özel Tasarımlar" dahil) */
.paket-compare .pack-box-card .pack-price-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 105px;
  width: 100%;
}

/* Paket başlığı */
.paket-compare .pack-box-card .pack-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--paket-subheading);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

/* Fiyat alanı */
.paket-compare .pack-box-card .pack-original-price {
  font-size: 1rem;
  color: var(--paket-muted);
  text-decoration: line-through;
  margin-bottom: 0.25rem;
}

.paket-compare .pack-box-card .pack-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--paket-heading);
}

.paket-compare .pack-box-card .pack-price small {
  font-weight: 500;
  font-size: 0.9em;
}

.paket-compare .pack-box-card .pack-taksit {
  font-size: 0.85rem;
  color: var(--paket-muted);
  margin-top: 0.4rem;
}

.paket-compare .pack-box-card .pack-custom-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--paket-heading);
  line-height: 1.4;
  text-align: center;
}

/* SATIN AL butonu - her zaman altta */
.paket-compare .pack-box-card .btn-satin-al {
  margin-top: auto;
  width: 100%;
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #000;
  border: none;
  border-radius: 6px;
  flex-shrink: 0;
}

.paket-compare .pack-box-card .btn-satin-al:hover {
  background: #333;
  color: #fff;
}

/* Özellik kategorisi başlığı */
.paket-compare .table-category {
  grid-column: 1 / -1;
  background: var(--paket-category-bg);
  color: var(--paket-heading);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.paket-compare .table-category:first-of-type {
  margin-top: 0;
}

/* Özellik satırları - children become grid items */
.paket-compare-grid .table-inside.listing {
  display: contents;
}

.paket-compare-grid .table-inside.listing > .table-left,
.paket-compare-grid .table-inside.listing > .pack-box-value {
  padding: 0.9rem 0.5rem;
  background: #fff;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}

.paket-compare-grid .table-inside.listing > .table-left {
  padding-left: 1.5rem;
}

.paket-compare-grid .table-inside.listing > .pack-box-value {
  justify-content: center;
}

.paket-compare-grid .table-inside.listing:last-of-type > .table-left,
.paket-compare-grid .table-inside.listing:last-of-type > .pack-box-value {
  border-bottom: none;
}

.paket-compare .list-infos .list-name {
  font-weight: 600;
  color: var(--paket-heading);
  font-size: 0.95rem;
}

.paket-compare .list-infos .list-spot {
  font-size: 0.8rem;
  color: var(--paket-muted);
  margin-top: 0.2rem;
  line-height: 1.4;
}

.paket-compare .pack-box-value {
  text-align: center;
  font-size: 0.9rem;
}

.paket-compare .pack-box-value .text-success,
.paket-compare .pack-box-value .text-danger {
  font-size: 1.1rem;
}

/* Mobil kartlar */
.paket-compare-mobile .compare-card {
  background: #fff;
  border-radius: var(--paket-card-radius);
  box-shadow: var(--paket-card-shadow);
  border: none;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.paket-compare-mobile .compare-card .table-feature {
  border-radius: 0;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.paket-compare-mobile .compare-card .card-body {
  padding: 1.5rem;
}

.paket-compare-mobile .compare-card .pack-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--paket-subheading);
  margin-bottom: 0.75rem;
}

.paket-compare-mobile .compare-card .pack-original-price {
  font-size: 0.95rem;
  color: var(--paket-muted);
  text-decoration: line-through;
}

.paket-compare-mobile .compare-card .pack-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--paket-heading);
}

.paket-compare-mobile .compare-card .pack-taksit {
  font-size: 0.8rem;
  color: var(--paket-muted);
}

.paket-compare-mobile .compare-card .paket-detay-goster {
  font-size: 0.9rem;
  color: var(--paket-subheading);
}

.paket-compare-mobile .table-category {
  background: var(--paket-category-bg);
  color: var(--paket-heading);
  font-weight: 600;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.paket-compare-mobile .table-inside.listing {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.paket-compare-mobile .list-name {
  font-weight: 600;
  color: var(--paket-heading);
}

.paket-compare-mobile .list-spot {
  font-size: 0.8rem;
  color: var(--paket-muted);
}
