*,
*::before,
*::after{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  background: var(--site-bg, #020617);
  color:#e5e7eb;
}

a{
  color:inherit;
  text-decoration:none;
}

/* HEADER */
.mpv-header{
  background:linear-gradient(90deg,var(--header-c1,#0f766e),var(--header-c2,#14532d));
  color:var(--header-text,#ffffff);
  padding:12px 16px;
  box-shadow:0 10px 30px rgba(0,0,0,.6);
  position:sticky;
  top:0;
  z-index:999;
}
.mpv-header-inner{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.mpv-logo{
  font-weight:700;
  font-size:20px;
  letter-spacing:.04em;
}

/* MAIN */
.mpv-main{
  max-width:1100px;
  margin:24px auto 40px auto;
  padding:0 12px 40px 12px;
}

/* UYARI */
.mpv-warn{
  max-width:var(--topbar-maxw,1100px);
  margin:0 auto 16px auto;
  text-align:center;
  background:var(--warn-bg,#f97316);
  color:var(--warn-text,#ffffff);
  padding:var(--topbar-pad-y,12px) var(--topbar-pad-x,14px);
  border-radius:var(--topbar-radius,999px);
  min-height:var(--topbar-minh,56px);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:600;
}

/* BANNER */
.mpv-banner{
  max-width:var(--topbar-maxw,1100px);
  margin:0 auto;
  text-align:center;
  background:linear-gradient(90deg,var(--banner-c1,#0f766e),var(--banner-c2,#22c55e));
  color:var(--banner-text,#ffffff);
  padding:var(--topbar-pad-y,12px) var(--topbar-pad-x,14px);
  border-radius:var(--topbar-radius,14px);
  min-height:var(--topbar-minh,56px);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 12px 35px rgba(0,0,0,.65);
  font-size:14px;
  font-weight:700;
}

.mpv-banner a{display:block;width:100%;}

/* GRID */
.mpv-grid{
  display:grid;
  gap:14px;
  margin-top:8px;
  margin-bottom:32px;
}

/* KART */
.mpv-card{
  background:#020617;
  border-radius:var(--vitrin-radius,16px);
  border:var(--vitrin-border-width,1px) solid var(--vitrin-border-color, rgba(148,163,184,.4));
  overflow:hidden;
  box-shadow:0 14px 35px rgba(15,23,42,.9);
}

.mpv-card-linkwrap{
  display:block;
}

/* ========================== */
/*     V力TR力N KARTI RES力MLER  */
/* ========================== */

.mpv-card-images{
  position:relative;
  display:block;
  width:100%;
  height:var(--card-height,180px);
  overflow:hidden;
  border-radius:var(--vitrin-radius,16px);
}

.mpv-slider-track{
  display:flex;
  height:100%;
  width:fit-content;
  will-change:transform;
}

.mpv-slider-track img{
  height:100%;
  object-fit:cover;
  display:block;
  flex:0 0 calc(100% / var(--mpv-visible,3));
}

.mpv-slider-track.mpv-loop{
  animation-name:mpvLoop;
  animation-timing-function:linear;
  animation-iteration-count:infinite;
}

@keyframes mpvLoop{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}


/* VITRIN SLIDER (SELIM1 UYUMLU) */
.mpv-card-images .slider-container{
  position:relative;
  height:var(--card-height,180px);
  border-radius:var(--vitrin-radius,16px);
  overflow:hidden;
  background:#000;
}
.mpv-card-images .track{
  display:flex;
  height:100%;
  width:200%;
  gap:0;
  animation:mpvMarquee var(--slider-speed,8s) linear infinite;
}
.mpv-card-images .track.mpv-static{
  width:100%;
  animation:none;
}
.mpv-card-images .group{display:flex;width:50%;gap:0;}
.mpv-card-images .group{height:100%;}
.mpv-card-images .slide{flex:1;height:100%;margin:0;padding:0;}
.mpv-card-images .slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
@keyframes mpvMarquee{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}


/* LABELS */
.mpv-card-labels{
  position:absolute;
  left:6px;
  top:6px;
  display:flex;
  align-items:flex-start;
  text-align:left;
  flex-direction:column;
  gap:35px;

  /* containing block geniş olsun ki .lbl yüzde max-width ile daralmayıp harf harf kırılmasın */
  width:calc(100% - 12px);
  max-width:calc(100% - 12px);
}

.mpv-card-labels .lbl{
  justify-content:flex-start;
}


.mpv-card-approved{
  position:absolute;
  right:6px;
  top:6px;
  display:flex;
  justify-content:flex-end;
  pointer-events:none;

  /* sağ üst etiket için de aynı genişlik */
  width:calc(100% - 12px);
  max-width:calc(100% - 12px);
}

.lbl{
  padding:3px 10px;
  border-radius:999px;
  font-size:14px;
  font-weight:700;
  text-shadow:0 0 4px rgba(0,0,0,.8);

  /* FIX: yazı kesilmesini engelle */
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  /* artık kesme yok, ama dar alanda harf harf bölünmesin */
  max-width:100%;
  white-space:nowrap;
  word-break:normal;
  overflow-wrap:normal;
  overflow:visible;
  text-overflow:clip;
  line-height:1.15;

  position:relative;
  isolation:isolate;
}


.lbl.name{
  color:var(--name-text,#ffffff);
  font-weight:var(--name-fw,700);
  --lbl-op: var(--name-op, var(--label-bg-opacity,0.35));
}
.lbl.city{
  color:var(--city-text,#ffffff);
  font-weight:var(--city-fw,700);
  --lbl-op: var(--city-op, var(--label-bg-opacity,0.35));
}
.lbl.place{
  color:var(--place-text,#000000);
  font-weight:var(--place-fw,700);
  --lbl-op: var(--place-op, var(--label-bg-opacity,0.35));
}

.lbl::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  opacity:var(--lbl-op, var(--label-bg-opacity,0.35));
  z-index:-1;
}
.lbl.name::before{background:linear-gradient(90deg,var(--name-c1,#22c55e),var(--name-c2,#16a34a));}
.lbl.city::before{background:linear-gradient(90deg,var(--city-c1,#0ea5e9),var(--city-c2,#0369a1));}
.lbl.place::before{background:linear-gradient(90deg,var(--place-c1,#eab308),var(--place-c2,#c2410c));}
.lbl.approved{
  color:var(--approved-text,#000000);
  font-weight:var(--approved-fw,700);
  --lbl-op: var(--approved-op, var(--label-bg-opacity,0.35));
}
.lbl.approved::before{background:linear-gradient(90deg,var(--approved-c1,#ffffff),var(--approved-c2,#e5e7eb));}

/* pseudo element arka planda kalmalı */

/* MAKALE */
.mpv-article{
  margin-top:28px;
  background:var(--main-article-bg,#0f172a);
  border-radius:18px;
  border:1px solid rgba(148,163,184,.5);
  padding:18px 18px 22px 18px;
  box-shadow:0 20px 45px rgba(0,0,0,.9);
}
.mpv-article h1{
  font-size:22px;
  margin:0 0 8px 0;
  color:var(--main-article-title,#e5e7eb);
}
.mpv-article-subtitle{
  margin:0 0 14px 0;
  font-size:13px;
  opacity:.85;
  line-height:1.5;
  color:var(--main-article-text,#e5e7eb);
}
.mpv-article-body{
  font-size:14px;
  line-height:1.6;
  color:var(--main-article-text,#e5e7eb);
}

/* Headings inside richtext (desktop should match AMP feel) */
.mpv-article-body h2{font-size:18px;margin:20px 0 10px 0;line-height:1.35;font-weight:800;color:var(--main-article-title,#e5e7eb);}
.mpv-article-body h3{font-size:16px;margin:18px 0 8px 0;line-height:1.4;font-weight:800;color:var(--main-article-title,#e5e7eb);}
.mpv-article-body h4{font-size:15px;margin:16px 0 8px 0;line-height:1.4;font-weight:800;color:var(--main-article-title,#e5e7eb);}
.mpv-article-body h5{font-size:14px;margin:14px 0 8px 0;line-height:1.4;font-weight:800;color:var(--main-article-title,#e5e7eb);}

/* 力L MAKALE */
.mpv-il-articles{ margin-top:32px; }
.mpv-il-grid{
  display:grid;
  gap:14px;
}
@media(min-width:1024px){
  .mpv-il-grid{ grid-template-columns:repeat(var(--il-grid-desktop,3), minmax(0,1fr)); }
}
@media(min-width:640px) and (max-width:1023px){
  .mpv-il-grid{ grid-template-columns:repeat(var(--il-grid-tablet,2), minmax(0,1fr)); }
}
@media(max-width:639px){
  .mpv-il-grid{ grid-template-columns:repeat(var(--il-grid-mobile,1), minmax(0,1fr)); }
}
.mpv-il-card{
  background:var(--il-article-bg,#0f172a);
  border-radius:16px;
  border:1px solid rgba(148,163,184,.4);
  padding:12px 14px 14px 14px;
}
.mpv-il-card h3{ font-size:14px; margin:0 0 4px 0; color:var(--il-article-title,#e5e7eb); }
.mpv-il-card h4{ font-size:13px; margin:0 0 6px 0; color:#f97316; }
.mpv-il-card p{
  font-size:12px;
  line-height:1.5;
  color:var(--il-article-text,#e5e7eb);
}


/* İl makalesi görsel + içerik */
.mpv-il-card-inner{display:flex;gap:14px;align-items:flex-start}
.mpv-il-thumb{
  width:var(--il-image-size,96px);
  height:var(--il-image-size,96px);
  border-radius:var(--il-image-radius,999px);
  object-fit:cover;
  flex:0 0 auto;
  background:#000;
  border:1px solid rgba(148,163,184,.35);
  box-shadow:0 10px 26px rgba(0,0,0,.55);
}
.mpv-il-content{flex:1;min-width:0}
@media(max-width:640px){
  .mpv-il-card-inner{display:block}
  .mpv-il-thumb{float:left;margin:4px 14px 10px 0}
  .mpv-il-card:after{content:"";display:block;clear:both}
}

/* ===================== */
/* === PROFIL SAYFASI === */
/* ===================== */
body.mpv-profile-body{
  background:var(--profile-bg,#020617);
}

.mpv-profile-main{
  max-width:980px;
  margin:auto;
}

.mpv-profile{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
}

/* PROFIL SLIDER */
.mpv-profile-gallery{
  position:relative;
  flex:1 1 280px;
  min-width:260px;
  width:100%;
  max-width:480px;
  margin:0 auto 20px auto;
}

.mpv-profile-gallery-inner{
  position:relative;
  width:100%;
  height:420px;
  overflow:hidden;
  border-radius:16px;
  box-shadow:0 12px 35px rgba(0,0,0,.85);
}

.mpv-profile-gallery-inner img{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:none;
}

.mpv-profile-gallery-inner img.active{
  display:block !important;
}

/* SLIDER OKLAR */
.mpv-profile-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  border-radius:50%;
  border:0;
  cursor:pointer;
  background:rgba(15,23,42,.9);
  color:#facc15;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
}

.mpv-profile-nav-prev{ left:8px; }
.mpv-profile-nav-next{ right:8px; }

/* DOTS */
.mpv-profile-gallery-dots{
  text-align:center;
  margin-top:8px;
}

.mpv-profile-gallery-dots .dot{
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:50%;
  background:#555;
  margin:0 3px;
}

.mpv-profile-gallery-dots .dot.active{
  background:#ffcc00;
}

/* PROFIL INFO */
.mpv-profile-info{
  flex:1 1 260px;
}

.mpv-profile-info h1{
  margin-top:0;
}

.mpv-profile-info-box{
  margin-top:8px;
  background:#020617;
  border-radius:16px;
  border:1px solid rgba(148,163,184,.5);
  padding:12px 16px;
}

.mpv-profile-info-box ul{
  list-style:none;
  padding:0;
  margin:0;
}

.mpv-profile-info-box li{
  padding:6px 0;
  border-bottom:1px solid rgba(148,163,184,.25);
  display:flex;
  gap:6px;
}

.mpv-profile-info-box li:last-child{ border-bottom:0; }

.mpv-profile-info-box li strong{
  min-width:120px;
  color:#e5e7eb;
}

.mpv-profile-info-box li span{
  color:#e5e7eb;
}

/* BUTTONS */
.mpv-btn{
  display:inline-block;
  padding:var(--btn-padding-y,8px) var(--btn-padding-x,14px);
  border-radius:var(--btn-radius,999px);
  background:var(--btn-call-bg,#0ea5e9);
  color:var(--btn-call-text,#ffffff);
  font-size:var(--btn-font-size,15px);
  font-weight:600;
}

.mpv-btn-wa{
  background:var(--btn-wa-bg,#22c55e);
  color:var(--btn-wa-text,#ffffff);
}

/* FOOTER */
.mpv-footer{
  background:linear-gradient(90deg,var(--footer-c1,#020617),var(--footer-c2,#020617));
  color:var(--footer-text,#9ca3af);
  text-align:center;
  padding:16px 10px;
  font-size:12px;
  border-top:1px solid rgba(15,23,42,1);
  box-shadow:0 -8px 25px rgba(0,0,0,.9);
}

/* ============================== */
/*        PROFIL ORTALAMA FIX     */
/* ============================== */

/* Profil ana container → tüm cihazlarda ortala */
.mpv-profile{
  justify-content:center;
  align-items:flex-start;
  width:100%;
}

/* Slider kutusu → tam ortalı */
.mpv-profile-gallery{
  margin-left:auto;
  margin-right:auto;
}

/* Sağdaki bilgi kutusu → tam ortalı + AMP ile aynı max genişlik */
.mpv-profile-info{
  width:100%;
  max-width:420px;
  margin-left:auto !important;
  margin-right:auto !important;
  display:block;
}

/* Info box (iç tablo) → genişlik tam ortalı */
.mpv-profile-info-box{
  width:100%;
  margin-left:auto;
  margin-right:auto;
}

/* Butonlar konteyneri → üst info box ile birebir hizalama */
.mpv-profile-buttons{
  width:100%;
  max-width:420px;
  margin-left:auto !important;
  margin-right:auto !important;
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* Her buton tam genişlik ve ortalanmış */
.mpv-profile-buttons a{
  width:100%;
  text-align:center;
}

/* Mobilde garantili ortalama */
@media(max-width:768px){
  .mpv-profile{
    flex-direction:column;
    align-items:center;
  }

  .mpv-profile-gallery,
  .mpv-profile-info{
    max-width:420px;
    width:100%;
    margin-left:auto !important;
    margin-right:auto !important;
  }
}

/* ============================== */
/*        AMPSİZ PROFIL FIX       */
/* ============================== */

/* Profil ana container ortalama */
.profile-container,
.mpv-profile {
    display:flex;
    flex-wrap:wrap;
    justify-content:center !important;
    align-items:flex-start !important;
    width:100%;
}

/* Slider tam ortada */
.profile-left,
.mpv-profile-gallery {
    margin-left:auto !important;
    margin-right:auto !important;
    width:100%;
    max-width:420px;
}

/* Info kutusu tam ortada */
.profile-right,
.mpv-profile-info {
    width:100%;
    max-width:420px;
    margin-left:auto !important;
    margin-right:auto !important;
    display:block;
}

/* Info box ortalı */
.profile-info,
.mpv-profile-info-box {
    width:100%;
    max-width:420px;
    margin-left:auto !important;
    margin-right:auto !important;
}

/* Buton alanı ortalı */
.profile-buttons,
.mpv-profile-buttons {
    width:100%;
    max-width:420px;
    margin-left:auto !important;
    margin-right:auto !important;
    display:flex;
    flex-direction:column;
    gap:14px;
}

/* Butonların kendisi ortalı ve tam genişlik */
.profile-buttons a,
.mpv-profile-buttons a {
    width:100% !important;
    text-align:center !important;
    display:block;
}

/* Mobilde garanti hizalama */
@media(max-width:768px){
    .profile-container,
    .mpv-profile {
        flex-direction:column !important;
        align-items:center !important;
    }

    .profile-left,
    .profile-right,
    .mpv-profile-gallery,
    .mpv-profile-info {
        width:100% !important;
        max-width:420px !important;
        margin-left:auto !important;
        margin-right:auto !important;
    }
}



/* Telegram butonu (ana sayfa) */
.mpv-telegram{
  margin:0;
  max-width:var(--topbar-maxw,1100px);
  text-align:center;
}
.mpv-telegram a{
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(90deg, var(--tg-btn-c1, #0f766e), var(--tg-btn-c2, #22c55e));
  color: var(--tg-btn-text, #ffffff);
  border: 1px solid rgba(255,255,255,.18);
  font-weight:800;
}
.mpv-telegram a:hover{filter:brightness(1.05);}

/* zengin metin */
.mpv-richtext a{color: inherit; text-decoration: underline;}

/* Profil butonlarında alt çizgi olmasın */
.mpv-btn, .mpv-btn a, .mpv-profile-btns a, .mpv-profile-btns a:hover{ text-decoration:none; }


/* Richtext spacing (Main + IL previews) */
.mpv-richtext p{ margin:0 0 16px 0; line-height:1.8; }
.mpv-richtext ul, .mpv-richtext ol{ margin:0 0 16px 18px; }
.mpv-richtext li{ margin:6px 0; }
.mpv-il-card p{ margin:10px 0 0 0; line-height:1.7; }

/* İl kart başlık/il adı renkleri (panelden) */
.mpv-il-card h3{ color:var(--il-city-color, var(--il-article-title,#e5e7eb)); margin:0 0 6px 0; }
.mpv-il-card h4{ color:var(--il-title-color, var(--il-article-title,#e5e7eb)); margin:0 0 8px 0; }

/* WhatsApp buton underline fix */
.mpv-btn, .mpv-btn *{ text-decoration:none !important; }

/* İl makaleleri ana içerik hizası */
.mpv-il-articles{max-width:1100px;margin-left:auto;margin-right:auto;padding:0 14px;}


/* Top actions: Telegram + Vitrin banner (ALT ALTA, DÜZGÜN HİZALI) */
.mpv-top-actions{
  display:flex;
  flex-direction:column;
  gap:var(--topbar-gap,12px);
  align-items:stretch;
  margin:14px auto 18px auto;
  max-width:var(--topbar-maxw,1100px);
  padding:0 14px;
  position:relative;
  z-index:2;
}
.mpv-top-actions .mpv-telegram,.mpv-top-actions .mpv-banner{margin:0;}
.mpv-top-actions a{
  width:100%;
  min-height:var(--topbar-minh,56px);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  white-space:normal;
  padding:var(--topbar-pad-y,12px) var(--topbar-pad-x,14px);
  border-radius:var(--topbar-radius,14px);
}

.article-img{float:left;width:96px;height:auto;margin:0 12px 8px 0;border-radius:8px;}
@media(max-width:768px){.article-img{width:88px;}}

@media(max-width:600px){.mpv-blog-thumb{float:left;margin:0 12px 6px 0;width:96px;height:auto;}}

.article-img{float:left;width:96px;margin:0 12px 8px 0;border-radius:8px;}
@media(max-width:768px){.article-img{width:88px;}}
