/* ==========================================================================
   TasteLokal Difference — premium comparison (v2.0)
   ========================================================================== */

/* Hide legacy table styles from main.css */
.diff-section .diff-table-wrap,
.diff-section .diff-table { display: none; }

.diff-section {
  padding: 56px 0;
  background: linear-gradient(180deg, #fff 0%, #f9fafb 100%);
  position: relative;
  overflow: hidden;
}
.diff-section::before {
  content: '';
  position: absolute;
  top: 10%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(13,148,136,0.06) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

/* Header */
.diff-head {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}
.diff-eyebrow {
  display: inline-block;
  background: var(--teal-bg);
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.diff-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.diff-title .accent {
  color: var(--teal);
  position: relative;
}
.diff-title .accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 8px;
  background: rgba(13, 148, 136, 0.18);
  z-index: -1;
  border-radius: 4px;
}
.diff-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* Grid */
.diff-grid {
  position: relative; z-index: 1;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== Features column (left labels) ===== */
.diff-features {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 4px;
  order: 1;
}
.df-spacer { display: none; }
.df-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 14px;
  border-bottom: 1px solid var(--border-light);
}
.df-row:last-child { border-bottom: 0; }
.df-icon {
  width: 36px; height: 36px;
  background: var(--teal-bg);
  color: var(--teal-dark);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.df-row strong {
  font-size: 13px;
  color: var(--navy);
  font-weight: 700;
  display: block;
  letter-spacing: -0.01em;
}
.df-row span {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
}

/* ===== Winner column (TasteLokal) ===== */
.diff-winner {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 45%, var(--teal-dark) 100%);
  color: #fff;
  border-radius: 18px;
  padding: 24px 18px 18px;
  position: relative;
  box-shadow: 0 20px 50px -12px rgba(13, 33, 73, 0.4);
  order: 2;
  overflow: hidden;
}
.diff-winner::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.dw-badge {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #f59e0b, #f97316);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(245, 158, 11, 0.4);
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap;
}
.dw-name {
  position: relative; z-index: 1;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 16px 0 16px;
  background: linear-gradient(135deg, #fff 0%, var(--teal-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dw-cells { position: relative; z-index: 1; display: flex; flex-direction: column; }
.dw-cell {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 4px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.dw-cell:last-child { border-bottom: 0; }
.dw-tick {
  width: 22px; height: 22px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(39, 174, 96, 0.4);
}
.dw-cta {
  position: relative; z-index: 1;
  margin-top: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  font-size: 13px;
  padding: 13px 18px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform .15s, box-shadow .15s;
}
.dw-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,0.28); color: var(--navy); }
.dw-cta svg { transition: transform .15s; }
.dw-cta:hover svg { transform: translateX(4px); }

/* ===== Other columns ===== */
.diff-col.diff-other {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 18px;
  order: 3;
}
.do-name {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 4px;
}
.do-cells { display: flex; flex-direction: column; }
.do-cell {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 4px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
}
.do-cell:last-child { border-bottom: 0; }
.do-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}
.do-cell.yes { color: var(--green); }
.do-cell.yes .do-mark { background: #d1fae5; color: var(--green); }
.do-cell.no { color: #dc2626; }
.do-cell.no .do-mark { background: #fee2e2; color: #dc2626; }
.do-cell.maybe { color: var(--text-muted); }
.do-cell.maybe .do-mark { background: var(--bg-light); color: var(--text-muted); }

/* ===== ≥ 768px: side by side with sticky alignment ===== */
@media (min-width: 768px) {
  .diff-section { padding: 72px 0; }
  .diff-title { font-size: 36px; }

  .diff-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 12px;
    align-items: stretch;
  }
  .diff-features {
    order: 1;
    padding: 8px;
  }
  .df-spacer {
    display: block;
    height: 64px; /* matches column name height + gap */
  }
  .df-row {
    padding: 16px 14px;
    min-height: 64px;
  }

  /* Other cols */
  .diff-col {
    display: flex; flex-direction: column;
  }
  .diff-winner {
    order: 2;
    transform: scale(1.03);
    margin: 0 4px;
    z-index: 5;
  }
  .diff-other:nth-of-type(3) { order: 3; }
  .diff-other:nth-of-type(4) { order: 4; }

  /* Align rows */
  .dw-cell, .do-cell {
    min-height: 64px;
    padding: 0 14px;
  }
  .dw-cells, .do-cells {
    padding: 4px 0;
  }
  .dw-cell:not(:last-child),
  .do-cell:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .do-cell { border-bottom-color: var(--border-light) !important; }

  .do-name { padding: 16px 8px; margin-bottom: 0; min-height: 56px; }
  .dw-name { margin: 8px 0 8px; min-height: 56px; padding: 8px 0; }
  .dw-cta { margin-top: 8px; }
}

/* ≥ 1024px */
@media (min-width: 1024px) {
  .diff-section { padding: 88px 0; }
  .diff-title { font-size: 44px; }
  .diff-sub { font-size: 16px; }
  .diff-grid { gap: 16px; }
  .diff-winner { padding: 30px 22px 22px; transform: scale(1.05); }
  .dw-name { font-size: 26px; }
  .dw-cell, .do-cell { min-height: 70px; }
  .df-row { min-height: 70px; padding: 18px; }
  .df-spacer { height: 72px; }
}
