/* ============================================================
   missproject.css — Miss Project'e özel bileşen stilleri.
   Rainbow teması (style.css) üzerine yalnızca "mp-" önekli
   özel bileşenleri stiller; tema kurallarını EZMEZ.
   ============================================================ */

/* Tema fontları (style.css --font-primary/--secondary-font bunları bekler) */
@import url("https://fonts.googleapis.com/css2?family=Overpass:wght@900&family=Roboto:wght@100..900&display=swap");

:root {
  --mp-orange: #eb6612;          /* marka turuncusu (globe marker ile aynı) */
  --mp-orange-soft: rgba(235, 102, 18, 0.14);
  --mp-card-bg: rgba(255, 255, 255, 0.04);
  --mp-card-border: rgba(255, 255, 255, 0.08);
  --mp-radius: 14px;
}

/* ---------- ANA SAYFA HERO: dönen küre zemini ---------- */
.mp-hero-wrap {
  position: relative;
  overflow: hidden;
  /* header overlay olduğundan içerik üstten nefes alsın */
  padding-top: 150px;
  /* Zemin: tam sayfa hero arka planı — görsel .db'den (hero.background), inline style */
  background: center / cover no-repeat;
}
.mp-hero-wrap .container {
  position: relative;
  z-index: 1;
}
.mp-hero-globe {
  position: absolute;
  top: -160px; /* sağ üst — üstten hafif taşar, gövdesi görünür */
  right: -8%;
  width: min(720px, 60vw);
  aspect-ratio: 1;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 991px) {
  .mp-hero-globe {
    top: -100px;
    right: 50%;
    transform: translateX(50%);
    width: 110vw;
    opacity: 0.3;
  }
}

/* ---------- BAŞLIK BANDI (SectionHero): küre zeminli ---------- */
.mp-title-hero {
  position: relative;
  overflow: hidden;
  /* header overlay olduğundan üst boşluk header yüksekliğini de kapsar.
     min-height YOK: içeriksiz sayfalarda (yalnız başlık) ölü boşluk yaratıyordu. */
  padding: 150px 0 30px;
}
/* Bandı saran tema bölümlerindeki fazladan üst marjı kaldır — band zaten
   150px kompanse boşluk taşır; yoksa üstte anlamsız ekstra boşluk oluşur. */
.mt--50:has(> .mp-title-hero) {
  margin-top: 0 !important;
}
.mp-title-hero .container {
  position: relative;
  z-index: 1;
}
/* Küre — ana sayfadakiyle aynı düzen: sağ üstte, üstten hafif taşar,
   gövdesinin büyük kısmı görünür */
.mp-title-globe {
  position: absolute;
  top: -110px;
  right: -6%;
  /* Band artık içerik kadar (min-height yok) — küre alttan taşmasın diye
     bir tık küçültüldü. */
  width: clamp(260px, 28vw, 400px);
  aspect-ratio: 1;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 767px) {
  .mp-title-globe {
    top: -70px;
    right: -60px;
    width: 260px;
    opacity: 0.3;
  }
}
/* Açık temada küre koyu bir leke gibi durmasın: renkleri açığa çevir
   (invert+hue-rotate ton döngüsünü korur, turuncu marker'lar turuncu kalır)
   ve daha soluk göster. Ana sayfa küresi fotoğraf zemininde olduğundan
   dokunulmaz — bu kural yalnız iç sayfa bandı içindir. */
body.active-light-mode .mp-title-globe {
  filter: invert(1) hue-rotate(180deg);
  opacity: 0.3;
}

/* ---------- HERO FLOAT: havada süzülen foto kartları ---------- */
.hero-float-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  pointer-events: none;
}
.hero-float-card {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  will-change: transform;
}
.hero-float-card img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

/* ---------- PROJE KARTLARI (eşit boyut) ---------- */
.mp-proj-card {
  display: block;
  background: var(--mp-card-bg);
  border: 1px solid var(--mp-card-border);
  border-radius: var(--mp-radius);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.mp-proj-card:hover {
  transform: translateY(-6px);
  border-color: var(--mp-orange);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
}
.mp-proj-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.mp-proj-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.mp-proj-card:hover .mp-proj-thumb img {
  transform: scale(1.06);
}
.mp-proj-body {
  padding: 18px 20px 20px;
}
.mp-proj-body h5 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mp-proj-body .subtitle {
  font-size: 13px;
  color: var(--mp-orange);
  letter-spacing: 0.5px;
}

/* ---------- ÇÖZÜM KARTLARI (kategori listesi) ---------- */
.mp-sol-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--mp-card-bg);
  border: 1px solid var(--mp-card-border);
  border-radius: var(--mp-radius);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.mp-sol-card:hover {
  transform: translateY(-6px);
  border-color: var(--mp-orange);
}
.mp-sol-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.mp-sol-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.mp-sol-card:hover .mp-sol-thumb img {
  transform: scale(1.06);
}
.mp-sol-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mp-sol-body h4 {
  font-size: 19px;
  margin: 0 0 10px;
}
.mp-sol-body p {
  font-size: 14.5px;
  opacity: 0.75;
  margin: 0 0 14px;
  flex: 1;
}
.mp-sol-more {
  color: var(--mp-orange);
  font-weight: 600;
  font-size: 14px;
  transition: letter-spacing 0.25s ease;
}
.mp-sol-more:hover {
  color: var(--mp-orange);
  letter-spacing: 0.5px;
}

/* ---------- DETAY HERO (ürün/çözüm) ---------- */
.mp-detail-hero {
  position: relative;
  border-radius: var(--mp-radius);
  overflow: hidden;
  min-height: clamp(280px, 40vw, 440px);
  display: flex;
  align-items: flex-end;
  /* Overlay header'ın ALTINDAN başla: sarıcı container'ın mt--40'ı ile
     margin-collapse olur → efektif üst boşluk 150px (menüyle bindirme yok). */
  margin-top: 150px;
}
.mp-detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: mpKenBurns 18s ease-in-out infinite alternate;
}
.mp-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 6, 10, 0.9) 0%, rgba(6, 6, 10, 0.35) 55%, rgba(6, 6, 10, 0.15) 100%);
}
.mp-detail-cap {
  position: relative;
  z-index: 1;
  padding: 34px 38px;
}
.mp-detail-cap .eyebrow,
.mp-exp-cap .eyebrow {
  display: inline-block;
  color: var(--mp-orange);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
/* !important: açık temada body.active-light-mode h1{color:#181818} kuralını
   ezmek için — başlık HER temada fotoğraf üzerinde beyaz kalır. */
.mp-detail-cap h1 {
  margin: 0;
  font-size: clamp(28px, 4.5vw, 48px);
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
@keyframes mpKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

/* İçerikten gelen kopya başlık gizli — tek H1 hero'da */
.mp-detail-body h1 {
  display: none;
}
.mp-detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Ekipman sayfası: hover görselleri taşmasın */
.mp-ekipman img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
/* Ekipman görsel değişimi: üzerine gelince aracın ikinci fotoğrafı
   (eski sitedeki Sirv image-main/image-hover davranışının CSS karşılığı) */
.mp-ekipman .figure {
  position: relative;
  display: block;
  margin: 0;
}
.mp-ekipman .figure .image-main {
  display: block;
  width: 100%;
  transition: opacity 0.35s ease;
}
.mp-ekipman .figure .image-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.mp-ekipman .figure:hover .image-hover {
  opacity: 1;
}
.mp-ekipman .figure:hover .image-main {
  opacity: 0;
}

/* ---------- DENEYİM (GALERİ) SAYFASI ---------- */
.mp-exp-hero {
  position: relative;
  min-height: clamp(420px, 62vh, 620px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.mp-exp-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: mpKenBurns 20s ease-in-out infinite alternate;
}
.mp-exp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* alt: başlık okunurluğu · üst: menü okunurluğu */
  background:
    linear-gradient(to bottom, rgba(6, 6, 10, 0.72) 0%, rgba(6, 6, 10, 0) 24%),
    linear-gradient(to top, rgba(6, 6, 10, 0.94) 0%, rgba(6, 6, 10, 0.4) 60%, rgba(6, 6, 10, 0.2) 100%);
}

/* ---------- HEADER: en üstteyken şeffaf overlay (TÜM sayfalar) ----------
   Header sayfanın üzerine biner, zemini şeffaftır; sayfa hero'su/zemini
   menünün arkasında görünür. Scroll'da tema JS .sticky ekler → header
   normal zeminine (koyu/açık) döner. */
.cf-style-missproject {
  position: relative;
  /* BFC: çocukların üst marjı wrapper DIŞINA collapse olamaz. Yoksa detay
     sayfalarındaki 150px marj wrapper'ı (ve içindeki absolute header'ı)
     aşağı iter → üstte boş şerit + menü/görsel bindirmesi oluşur. */
  display: flow-root;
}
.rainbow-header.header-default:not(.sticky) {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  margin-top: 0 !important;
  background: transparent !important;
  backdrop-filter: none;
  box-shadow: none;
}
/* İç sargı (container-fluid) da en üstteyken zeminsiz */
.rainbow-header.header-default:not(.sticky) .container-fluid {
  background: transparent !important;
  box-shadow: none;
}
/* Foto zeminli hero'larda (ana sayfa + proje) menü/logo her temada okunur kalsın */
.cf-style-missproject:has(.mp-exp-hero) .rainbow-header:not(.sticky) .mainmenu > li > a,
.cf-style-missproject:has(.mp-hero-wrap) .rainbow-header:not(.sticky) .mainmenu > li > a {
  color: #fff !important;
}
body.active-light-mode .cf-style-missproject:has(.mp-exp-hero) .rainbow-header:not(.sticky) .logo-dark,
body.active-light-mode .cf-style-missproject:has(.mp-hero-wrap) .rainbow-header:not(.sticky) .logo-dark {
  display: none !important;
}
body.active-light-mode .cf-style-missproject:has(.mp-exp-hero) .rainbow-header:not(.sticky) .logo-light,
body.active-light-mode .cf-style-missproject:has(.mp-hero-wrap) .rainbow-header:not(.sticky) .logo-light {
  display: block !important;
}
.mp-exp-hero .container {
  position: relative;
  z-index: 1;
}
.mp-exp-cap {
  padding: 40px 0 36px;
}
.mp-exp-cap h1 {
  color: #fff !important; /* açık tema h1 rengini ez */
  font-size: clamp(26px, 4vw, 44px);
  max-width: 860px;
  margin: 0 0 22px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.mp-exp-stats {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
.mp-exp-stats .it {
  display: flex;
  flex-direction: column;
  padding-left: 14px;
  border-left: 3px solid var(--mp-orange);
}
.mp-exp-stats .it b {
  font-size: 22px;
  color: #fff;
  line-height: 1.2;
}
.mp-exp-stats .it span {
  font-size: 13px;
  opacity: 0.7;
}

/* Masonry galeri (CSS columns) + lightbox linkleri */
.mp-exp-gallery {
  columns: 3;
  column-gap: 18px;
}
@media (max-width: 991px) { .mp-exp-gallery { columns: 2; } }
@media (max-width: 575px) { .mp-exp-gallery { columns: 1; } }
.mp-exp-gallery a {
  display: block;
  margin-bottom: 18px;
  border-radius: 12px;
  overflow: hidden;
  break-inside: avoid;
}
.mp-exp-gallery img {
  width: 100%;
  display: block;
  transition: transform 0.45s ease, opacity 0.45s ease;
}
.mp-exp-gallery a:hover img {
  transform: scale(1.04);
  opacity: 0.9;
}

/* ---------- İLETİŞİM ---------- */
.mp-contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mp-contact-info .it {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--mp-card-bg);
  border: 1px solid var(--mp-card-border);
  border-radius: var(--mp-radius);
  padding: 18px 20px;
}
.mp-contact-info .ic {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mp-orange-soft);
  color: var(--mp-orange);
  font-size: 20px;
}
.mp-contact-info h5 {
  margin: 0 0 4px;
  font-size: 16px;
}
.mp-contact-info p,
.mp-contact-info a {
  margin: 0;
  font-size: 14.5px;
  opacity: 0.85;
}
.mp-contact-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: var(--mp-radius);
  filter: grayscale(0.9) invert(0.92) contrast(0.9);
}
.mp-contact-form input,
.mp-contact-form textarea {
  width: 100%;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--mp-card-bg);
  border: 1px solid var(--mp-card-border);
  border-radius: 10px;
  color: inherit;
  transition: border-color 0.25s ease;
}
.mp-contact-form input:focus,
.mp-contact-form textarea:focus {
  outline: none;
  border-color: var(--mp-orange);
}
.success-message {
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(46, 160, 67, 0.15);
  border: 1px solid rgba(46, 160, 67, 0.4);
  color: #4ade80;
}
.error-message {
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #f87171;
}

/* ---------- PROJELER HARİTASI (Leaflet) ---------- */
.mp-projects-map {
  height: 480px;
  border-radius: var(--mp-radius);
  overflow: hidden;
  border: 1px solid var(--mp-card-border);
  z-index: 0; /* header/megamenü altında kalsın */
}
/* OSM karosu açık renkli: koyu temada (varsayılan) yalnız karo katmanı ters
   çevrilir — nokta/ipucu filtrelenmez. Açık tema anahtarında filtre kalkar. */
body:not(.active-light-mode) .mp-projects-map .leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.9) saturate(0.4);
}
.mp-projects-map .leaflet-control-attribution {
  font-size: 10px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.75);
}
.mp-projects-map .leaflet-control-attribution a {
  color: inherit;
}
body.active-light-mode .mp-projects-map .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.75);
  color: #333;
}
.mp-map-dot {
  background: transparent;
  border: none;
}
.mp-map-dot-pulse {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mp-orange);
  box-shadow: 0 0 0 rgba(235, 102, 18, 0.55);
  animation: mpPulse 2s infinite;
}
@keyframes mpPulse {
  0% { box-shadow: 0 0 0 0 rgba(235, 102, 18, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(235, 102, 18, 0); }
  100% { box-shadow: 0 0 0 0 rgba(235, 102, 18, 0); }
}
.mp-map-tip {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.mp-map-tip::before {
  display: none;
}
.mp-map-pop {
  background: #14151b;
  border: 1px solid var(--mp-card-border);
  border-radius: 12px;
  overflow: hidden;
  width: 220px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}
.mp-map-pop img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.mp-map-pop-b {
  padding: 10px 12px;
  color: #eee;
  font-size: 13px;
  line-height: 1.45;
}
.mp-map-pop-b strong {
  display: block;
  margin-bottom: 2px;
}

/* SectionHero başlığı h1 oldu (tek-H1 kuralı, 2026-09-29): tema h1'i var(--h1) ile büyütür,
   eski h2 görünümünü koru. */
.mp-title-hero .section-title h1.title { font-size: var(--h2); line-height: 1.23; }
