/* ==========================================================================
   biMARJ — Pazaryerleri sayfası
   Yalnızca bu sayfada yüklenir (controller: pageStyles => ['marketplaces']).
   Hesaplama Araçları sayfasıyla aynı hero, kart ve boşluk sistemi.
   ========================================================================== */

/* ---- Mini hero -------------------------------------------------------- */
.mp-hero{
  background:
    radial-gradient(760px 340px at 82% 20%, rgba(255,255,255,.7), transparent 60%),
    linear-gradient(112deg, #ffffff 0%, #f8fbf9 48%, #eef5f0 100%);
  border-bottom: 1px solid #e9efec;
  padding: 26px 0 30px;
}
.mp-hero-inner{
  display: grid; grid-template-columns: 1fr 230px;
  gap: 32px; align-items: center;
}
.mp-hero-copy{ min-width: 0; }

.mp-hero .breadcrumb{
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 0 0 12px; padding: 0;
  font-size: 12.5px; color: #77848c;
}
.mp-hero .breadcrumb li + li:before{ content: "›"; margin-right: 8px; color: #b3bec4; }
.mp-hero .breadcrumb a{ color: #77848c; }
.mp-hero .breadcrumb a:hover{ color: var(--green); }

.mp-hero h1{
  position: relative;
  font-size: 36px; font-weight: 700; letter-spacing: -1.1px;
  line-height: 1.12; color: var(--ink);
  margin: 0 0 16px; padding-bottom: 11px;
}
.mp-hero h1:after{
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 52px; height: 3px; border-radius: 3px; background: #e85d4a;
}
.mp-hero p{
  font-size: 16px; line-height: 1.6; color: #44535f;
  margin: 0; max-width: 58ch;
}

.mp-hero-art{ position: relative; height: 150px; }
.mha{
  position: absolute; display: grid; place-items: center;
  border-radius: 14px; background: #fff;
  box-shadow: 0 8px 20px rgba(13,40,30,.10);
}
.mha svg{ fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.mha-1{ width: 62px; height: 62px; left: 8px;   top: 12px;   color: #e0654a; }
.mha-1 svg{ width: 30px; height: 30px; }
.mha-2{ width: 54px; height: 54px; right: 6px;  top: 0;      color: #7048c9; }
.mha-2 svg{ width: 26px; height: 26px; }
.mha-3{ width: 50px; height: 50px; left: 52px;  bottom: 6px; color: #2f72cf; }
.mha-3 svg{ width: 24px; height: 24px; }
.mha-4{ width: 46px; height: 46px; right: 22px; bottom: 20px; color: #0f8a5f; }
.mha-4 svg{ width: 22px; height: 22px; }

/* ---- Sayfa gövdesi ---------------------------------------------------- */
.mp-page{ padding: 34px 0 10px; }

.mp-cards{
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; align-items: stretch;
}

/* ---- Pazaryeri kartı --------------------------------------------------- */
.mpc{
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e9edeb; border-radius: 16px;
  padding: 20px 18px 16px;
  box-shadow: 0 1px 2px rgba(25,42,57,.04);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.mpc:hover{
  transform: translateY(-3px);
  border-color: #dbe4df;
  box-shadow: 0 12px 26px rgba(13,40,30,.10);
}
/* Marka aksanı: ince üst şerit */
.mpc:before{
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 3px; background: var(--mp-accent, #cfd7d3);
}

.mpc-top{
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}

/* Logo kutusu: markanın çok hafif pastel alanı */
.mpc-logo{
  display: grid; place-items: center;
  min-width: 104px; height: 52px; padding: 0 14px;
  border-radius: 12px; background: var(--mp-soft, #f5f7f6);
}
.mpc-logo img{
  display: block; width: auto; height: auto;
  max-width: 100%; object-fit: contain;
}
.mpc-logo b{ font-size: 15px; font-weight: 600; color: var(--mp-accent, #3d4b56); }

/* Durum rozeti: küçük nokta + kısa etiket */
.mpc-status{
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 20px; padding: 5px 10px;
  font-size: 11.5px; font-weight: 500; white-space: nowrap;
}
.mpc-status i{ width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; }
.mpc-status.is-live{ background: #e6f4ec; color: #0f7355; }
.mpc-status.is-live i{ background: #16a274; }
.mpc-status.is-pending{ background: #f3f5f4; color: #6b7a84; }
.mpc-status.is-pending i{ background: #b9c3c9; }

.mpc-name{ margin: 0 0 4px; font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.mpc-name a{ color: var(--ink); }
.mpc-name a:hover{ color: var(--green); }

.mpc-meta{ margin: 0 0 14px; font-size: 12.5px; color: #77848c; line-height: 1.45; }

/* ---- Araç aksiyon satırları -------------------------------------------- */
.mpc-tools{ display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.mpc-tool{
  display: flex; align-items: center; gap: 10px;
  background: #f7f9f8; border: 1px solid #eef2f0; border-radius: 10px;
  padding: 9px 12px; font-size: 13.5px; font-weight: 500; color: #33424e;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.mpc-tool:hover{
  background: #eef5f1; border-color: #d9e7e0; color: var(--green-dark);
  text-decoration: none;
}
.mpc-tool-ic{
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--mp-soft, #eaf1ee); color: var(--mp-accent, #0f8a5f);
}
.mpc-tool-ic svg{
  width: 14px; height: 14px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Aracı olmayan pazaryerleri */
.mpc-soon{
  display: flex; align-items: center; gap: 9px;
  background: #f7f9f8; border: 1px dashed #e2e8e5; border-radius: 10px;
  padding: 12px; margin-bottom: 14px;
  font-size: 13px; color: #77848c;
}
.mpc-soon svg{
  width: 16px; height: 16px; flex: 0 0 16px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Alt aksiyon */
.mpc-go{
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid #f0f3f1;
  font-size: 13px; font-weight: 500; color: #5b6a76;
  transition: color .2s ease;
}
.mpc-go svg{
  width: 15px; height: 15px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s ease;
}
.mpc-go:hover{ color: var(--green); text-decoration: none; }
.mpc:hover .mpc-go svg{ transform: translateX(3px); }

/* ---- Marka renkleri ---------------------------------------------------- */
.mpc-trendyol { --mp-accent: #f27a1a; --mp-soft: #fff3e9; }
.mpc-hepsi    { --mp-accent: #ff6000; --mp-soft: #fff1e8; }
.mpc-n11      { --mp-accent: #5f22d9; --mp-soft: #f2ecfd; }
.mpc-amazon   { --mp-accent: #ff9900; --mp-soft: #fff6e6; }
.mpc-pazarama { --mp-accent: #1a56db; --mp-soft: #ebf1fe; }
.mpc-idefix   { --mp-accent: #1457d7; --mp-soft: #ebf1fe; }
.mpc-ptt      { --mp-accent: #00a0e3; --mp-soft: #e8f6fd; }
.mpc-generic  { --mp-accent: #0f8a5f; --mp-soft: #eaf4ef; }

/* Logo optik dengesi — oranlar çok farklı olduğu için ayrı ayarlanır */
.mpc-trendyol .mpc-logo img{ max-height: 21px; }
.mpc-hepsi    .mpc-logo img{ max-height: 17px; }
.mpc-n11      .mpc-logo img{ max-height: 28px; }
.mpc-amazon   .mpc-logo img{ max-height: 24px; }
.mpc-pazarama .mpc-logo img{ max-height: 14px; }
.mpc-idefix   .mpc-logo img{ max-height: 27px; }
.mpc-ptt      .mpc-logo img{ max-height: 19px; }

/* ---- Alt bilgi bandı ---------------------------------------------------- */
.mp-note{
  display: flex; align-items: flex-start; gap: 13px;
  margin: 26px 0 8px; padding: 16px 18px;
  background: #f2f9f5; border: 1px solid #dcece3; border-radius: 14px;
}
.mp-note-ic{
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px;
  display: grid; place-items: center; background: #e0f0e7; color: #0f8a5f;
}
.mp-note-ic svg{
  width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.mp-note p{ margin: 0; font-size: 13.5px; line-height: 1.55; color: #44535f; }
.mp-note p + p{ margin-top: 4px; color: #5f6f7a; }
.mp-note strong{ color: var(--ink); font-weight: 600; }

/* ---- Duyarlı ------------------------------------------------------------ */
@media (max-width: 1180px){
  .mp-hero h1{ font-size: 33px; }
}
@media (max-width: 980px){
  .mp-hero-inner{ grid-template-columns: 1fr; gap: 20px; }
  .mp-hero-inner > .mp-hero-art{ display: none; }
}
@media (max-width: 900px){
  .mp-cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .mp-hero{ padding: 20px 0 24px; }
  .mp-hero h1{ font-size: 28px; letter-spacing: -.8px; margin-bottom: 13px; }
  .mp-hero p{ font-size: 15px; }
  .mp-page{ padding: 24px 0 6px; }
  .mp-cards{ grid-template-columns: 1fr; gap: 12px; }
  .mpc{ padding: 18px 16px 14px; }
  .mpc-logo{ min-width: 92px; height: 48px; padding: 0 12px; }
  .mpc-name{ font-size: 16px; }
  .mpc-tool{ font-size: 13px; padding: 10px 12px; }
  .mp-note{ padding: 14px 15px; margin-top: 20px; }
  .mp-note p{ font-size: 13px; }
}

/* ---- Grid desteklemeyen motorlar için yedek ---------------------------- */
@supports not (display: grid){
  .mp-hero-inner, .mp-cards{ font-size: 0; }
  .mp-hero-inner > *, .mp-cards > *{
    display: inline-block; vertical-align: top; font-size: 16px;
    box-sizing: border-box;
  }
  .mp-hero-inner > *:first-child{ width: 72%; padding-right: 3%; }
  .mp-hero-inner > *:last-child { width: 26%; }
  .mp-cards > *{ width: 32.3%; margin-right: .8%; margin-bottom: 16px; }
  .mpc-logo, .mpc-tool-ic, .mp-note-ic{ display: inline-block; text-align: center; }
  .mpc-logo{ line-height: 52px; }
  .mpc-tool-ic{ line-height: 26px; }
  .mp-note-ic{ line-height: 34px; }
}
@media (max-width: 900px){
  @supports not (display: grid){
    .mp-cards > *{ width: 49.2%; }
    .mp-hero-inner > *:first-child, .mp-hero-inner > *:last-child{ width: 100%; padding-right: 0; }
  }
}
@media (max-width: 560px){
  @supports not (display: grid){
    .mp-cards > *{ width: 100%; margin-right: 0; }
  }
}
