/* ═══════════════════════════════════════════════════════════════
   datapanda — Pricing Page Styles
   landing.css üzerine kurulu (lp-* sınıflarını kullanır)
   ═══════════════════════════════════════════════════════════════ */

/* ─── Hero ──────────────────────────────────────────────────────── */
.pr-hero {
  position: relative;
  padding: 70px 0 60px;
}
.pr-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(236,72,153,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at top right, rgba(139,92,246,0.07) 0%, transparent 50%);
  z-index: -1;
}
.pr-hero-head { text-align: center; margin-bottom: 50px; }
.pr-title {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pr-sub {
  font-size: 17px;
  color: var(--lp-text-secondary);
  margin-bottom: 32px;
}

/* ─── Switch-style billing toggle ────────────────────────────────── */
/* ── Pill-style billing toggle ── */
.pr-billing-pill {
  display: inline-flex;
  align-items: center;
  background: #f1f1f4;
  border-radius: 100px;
  padding: 4px;
  gap: 0;
  user-select: none;
  position: relative;
}
/* Sliding indicator */
.pr-billing-pill::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: #fff;
  border-radius: 100px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.13);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  pointer-events: none;
}
.pr-billing-pill[data-active="yearly"]::before {
  transform: translateX(100%);
}
.pr-pill-btn {
  border: none;
  background: transparent;
  border-radius: 100px;
  padding: 7px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.15s ease;
  line-height: 1;
  position: relative;
  z-index: 1;
  flex: 1;
}
.pr-pill-btn:active { transform: scale(0.96); }
.pr-pill-btn.active {
  color: #111;
}

.pr-saving-pill {
  background: #34d399;
  color: #064e3b;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
@keyframes pr-pill-shine {
  0%   { box-shadow: 0 0 0 0 rgba(52,211,153,0.7), 0 0 8px 2px rgba(52,211,153,0.4); }
  50%  { box-shadow: 0 0 0 6px rgba(52,211,153,0), 0 0 18px 6px rgba(52,211,153,0.6); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.7), 0 0 8px 2px rgba(52,211,153,0.4); }
}
.pr-saving-pill-glow {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #022c22;
  animation: pr-pill-shine 1.8s ease-in-out infinite;
}

/* ─── Plan Cards ─────────────────────────────────────────────────── */
.pr-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
@media (max-width: 960px) { .pr-cards { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; } }

.pr-card {
  background: white;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}
.pr-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--lp-shadow-lg);
}

/* Mevcut plan kartı */
.pr-card-current {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
}

/* "En popüler" kartı vurgulu */
.pr-card-popular {
  background: linear-gradient(180deg, #ffffff 0%, #fdfafe 100%);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 8px 40px rgba(139, 92, 246, 0.18), 0 2px 8px rgba(139, 92, 246, 0.08);
  transform: translateY(-4px);
}
.pr-card-popular:hover { transform: translateY(-7px); }

.pr-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: white;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: 100px;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pr-popular-icon {
  width: 12px;
  height: 12px;
}

.pr-card-head { margin-bottom: 14px; }
.pr-plan-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--lp-text);
  margin-bottom: 6px;
}
.pr-plan-tagline {
  font-size: 13.5px;
  color: var(--lp-text-muted);
  line-height: 1.5;
  min-height: 36px;
}

.pr-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
  font-weight: 800;
  color: var(--lp-text);
}
.pr-price-currency { font-size: 22px; opacity: 0.8; }
.pr-price-amount {
  font-size: 48px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.pr-price-period {
  font-size: 14px;
  color: var(--lp-text-muted);
  font-weight: 500;
}
.pr-price-foot {
  font-size: 12.5px;
  color: var(--lp-text-muted);
  margin-bottom: 22px;
  min-height: 18px;
}
.pr-price-foot strong { color: var(--lp-text); font-weight: 700; }

.pr-cta { width: 100%; margin-bottom: 24px; }

/* ─── Feature listesi ─────────────────────────────────────────────── */
.pr-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.pr-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--lp-text-secondary);
  line-height: 1.5;
}
.pr-icon-check {
  width: 16px;
  height: 16px;
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}
.pr-icon-cross {
  width: 16px;
  height: 16px;
  color: #cbd5e1;
  flex-shrink: 0;
  margin-top: 2px;
}
.pr-disabled { color: var(--lp-text-muted); opacity: 0.7; }
.pr-highlight {
  font-weight: 700;
  color: var(--lp-text) !important;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--lp-border);
  margin-bottom: 4px;
}

/* ─── Garanti ─────────────────────────────────────────────────────── */
.pr-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--lp-text-secondary);
  padding: 14px 20px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: var(--lp-radius);
  margin: 0 auto;
  text-align: left;
}
.pr-guarantee-wrap { text-align: center; }
.pr-guarantee strong { color: var(--lp-text); }
.pr-guarantee-icon {
  width: 22px;
  height: 22px;
  color: #10b981;
  flex-shrink: 0;
}

/* ─── Comparison table ──────────────────────────────────────────── */
.pr-compare-wrap {
  background: white;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  overflow: hidden;
  box-shadow: var(--lp-shadow);
}
.pr-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.pr-compare thead th {
  background: #fafafa;
  color: var(--lp-text);
  font-weight: 700;
  text-align: center;
  padding: 16px 20px;
  border-bottom: 2px solid var(--lp-border);
}
.pr-compare thead th:first-child { text-align: left; }
.pr-th-popular {
  background: linear-gradient(180deg, rgba(139,92,246,0.06), transparent) !important;
  color: var(--lp-accent) !important;
}
.pr-badge-mini {
  display: inline-block;
  background: var(--lp-grad-purple);
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 4px;
}

.pr-compare tbody td {
  padding: 14px 20px;
  border-top: 1px solid var(--lp-border);
  text-align: center;
  color: var(--lp-text-secondary);
}
.pr-compare tbody td:first-child {
  text-align: left;
  color: var(--lp-text);
  font-weight: 500;
}

.pr-section-row td {
  background: #f8fafc !important;
  font-weight: 700 !important;
  color: var(--lp-text) !important;
  text-align: left !important;
  padding: 14px 20px !important;
  font-size: 13.5px;
  letter-spacing: 0.01em;
}

.pr-compare tbody tr:hover:not(.pr-section-row) {
  background: #fafbff;
}

/* Mobilde tablo yatay kaydırılır */
@media (max-width: 700px) {
  .pr-compare-wrap { overflow-x: auto; }
  .pr-compare { min-width: 600px; }
}

/* ─── Dark mode overrides (for app.html) ────────────────────────── */
[data-theme="dark"] .pr-card {
  background: var(--card-bg, #1e1e2e);
  border-color: var(--border-color, rgba(255,255,255,0.1));
  color: inherit;
}
[data-theme="dark"] .pr-plan-name,
[data-theme="dark"] .pr-price { color: var(--text-primary, #f1f5f9); }
[data-theme="dark"] .pr-plan-tagline,
[data-theme="dark"] .pr-price-period,
[data-theme="dark"] .pr-price-foot { color: var(--text-muted, #94a3b8); }
[data-theme="dark"] .pr-features li { color: var(--text-secondary, #cbd5e1); }
[data-theme="dark"] .pr-card-popular {
  background: linear-gradient(180deg, #1e1e2e 0%, #1a1728 100%);
  border-color: rgba(139, 92, 246, 0.4);
}
[data-theme="dark"] .pr-guarantee {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--text-secondary, #cbd5e1);
}
[data-theme="dark"] .pr-billing-pill { background: var(--bg-tertiary, #2a2a3e); }
[data-theme="dark"] .pr-pill-btn.active { background: var(--card-bg, #1e1e2e); color: var(--text-primary, #f1f5f9); }
[data-theme="dark"] .pr-pill-btn { color: var(--text-muted, #94a3b8); }
[data-theme="dark"] .pr-highlight { color: var(--text-primary, #f1f5f9) !important; border-bottom-color: rgba(255,255,255,0.1); }

/* ─── FAQ ──────────────────────────────────────────────────────── */
.pr-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pr-faq-item {
  background: white;
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: 4px 4px;
  transition: all 0.2s ease;
}
.pr-faq-item[open] {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.06);
}
.pr-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  color: var(--lp-text);
  position: relative;
  padding-right: 44px;
}
.pr-faq-item summary::-webkit-details-marker { display: none; }
.pr-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--lp-text-muted);
  line-height: 1;
  transition: transform 0.25s ease;
}
.pr-faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  color: var(--lp-accent);
}
.pr-faq-item p {
  padding: 0 20px 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--lp-text-secondary);
  margin: 0;
}

/* ─── Dark mode: compare table & FAQ ───────────────────────────── */
[data-theme="dark"] .pr-compare-wrap {
  background: var(--card-bg, #1e1e2e);
  border-color: var(--border-color, rgba(255,255,255,0.1));
}
[data-theme="dark"] .pr-compare thead th {
  background: var(--bg-tertiary, #2a2a3e);
  color: var(--text-primary, #f1f5f9);
  border-bottom-color: var(--border-color, rgba(255,255,255,0.1));
}
[data-theme="dark"] .pr-compare tbody td {
  border-top-color: var(--border-color, rgba(255,255,255,0.08));
  color: var(--text-secondary, #cbd5e1);
}
[data-theme="dark"] .pr-compare tbody td:first-child { color: var(--text-primary, #f1f5f9); }
[data-theme="dark"] .pr-section-row td {
  background: var(--bg-tertiary, #2a2a3e) !important;
  color: var(--text-primary, #f1f5f9) !important;
}
[data-theme="dark"] .pr-compare tbody tr:hover:not(.pr-section-row) { background: rgba(255,255,255,0.03); }
[data-theme="dark"] .pr-faq-item {
  background: var(--card-bg, #1e1e2e);
  border-color: var(--border-color, rgba(255,255,255,0.1));
}
[data-theme="dark"] .pr-faq-item summary { color: var(--text-primary, #f1f5f9); }
[data-theme="dark"] .pr-faq-item p { color: var(--text-secondary, #cbd5e1); }

/* ─── Colored compare table headers ──────────────────────────── */
.pr-compare thead th:nth-child(2) {
  color: #6b7280;
}
.pr-compare thead th:nth-child(3) {
  background: linear-gradient(180deg, rgba(124,58,237,0.08) 0%, transparent 100%) !important;
  color: #7c3aed !important;
}
.pr-compare thead th:nth-child(4) {
  background: linear-gradient(180deg, rgba(236,72,153,0.06) 0%, transparent 100%);
  color: #db2777;
}
[data-theme="dark"] .pr-compare thead th:nth-child(2) { color: var(--text-muted, #94a3b8); }
[data-theme="dark"] .pr-compare thead th:nth-child(4) { color: #f472b6; }

/* ─── App shell: cards grid — badge için boşluk ── */
#view-membership .pr-cards,
#mem-cards-grid {
  padding-top: 20px;
  overflow: visible;
}
