/* === Genel === */
body.btLightSkin {
  background: #f6f4ef;
}

.port {
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
}

/* === HERO (Üst görsel) === */
.hero-header {
  text-align: center;
}

.hero-sub {
  margin: 12px auto 0;
  max-width: 520px;
  font-size: 14px;
  opacity: 0.9;
}

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(6px);
}

.scroll-hint:hover {
  background: rgba(255,255,255,0.20);
}

/* === Upload Alanı (Kart) === */
.upload-section {
  background: transparent;
  padding: 22px 16px 110px;
  text-align: center;
  margin-bottom: 0;
}

.upload-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 22px 18px;
  max-width: 760px;
  margin: 0 auto;
}

.upload-title h3 {
  margin: 0;
  font-size: 18px;
}

.upload-title p {
  margin: 6px 0 0;
  color: #666;
  font-size: 13px;
}

.upload-form {
  margin-top: 16px;
}

.form-row {
  margin-top: 12px;
}

.input-text{
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: block;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid #e7e2d9;
  background: #fbfaf8;
  outline: none;
}

.input-text:focus {
  border-color: #d4a373;
  box-shadow: 0 0 0 4px rgba(212,163,115,0.18);
}

/* ✅ Not textarea */
.note-textarea{
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: block;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid #e7e2d9;
  background: #fbfaf8;
  outline: none;
  resize: vertical;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.5;
}

.note-textarea:focus{
  border-color: #d4a373;
  box-shadow: 0 0 0 4px rgba(212,163,115,0.18);
}

.btn-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-msg {
  margin-top: 10px;
  color: #b88656;
  font-weight: 600;
  font-size: 13px;
}

/* Dosya info (seçildi) */
.file-info {
  margin: 12px auto 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fbfaf8;
  border: 1px solid #efe7db;
  max-width: 520px;
  cursor: pointer;
}

.file-info .muted {
  color: #888;
  font-size: 12px;
}

.file-info .link {
  margin-left: auto;
  color: #d4a373;
  font-weight: 700;
  font-size: 12px;
}

/* Popup dosya listesi */
.file-popup {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 10px);
  width: min(520px, 92%);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
  z-index: 2000;
  overflow: hidden;
}

.file-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #faf7f1;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.file-popup-head span {
  font-weight: 800;
  color: #b88656;
  font-size: 13px;
}

.file-popup-close {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  color: #777;
  line-height: 1;
}

.file-popup-body {
  padding: 12px 14px;
  max-height: 260px;
  overflow: auto;
  font-size: 13px;
  color: #333;
}

.file-row {
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.06);
}

.file-row:last-child {
  border-bottom: none;
}

.file-more {
  padding-top: 10px;
  color: #777;
  font-weight: 700;
}

/* Progress Bar */
.progress-container {
  width: 100%;
  max-width: 520px;
  margin: 12px auto 0;
  background-color: #eee;
  border-radius: 999px;
  overflow: hidden;
  display: none;
}

.progress-bar {
  width: 0%;
  height: 26px;
  background-color: #d4a373;
  text-align: center;
  line-height: 26px;
  color: white;
  font-size: 13px;
  font-weight: 800;
  transition: width 0.3s ease;
}

/* === Feed “peek” efekti === */
.events {
  position: relative;
  z-index: 3;
  background: #fff;
  margin-top: -86px;
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
  box-shadow: 0 -14px 50px rgba(0,0,0,0.12);
  padding: 34px 0 40px;
}

.feed-head {
  text-align: center;
  margin-bottom: 18px;
}

.feed-head h3 {
  margin: 0;
  font-size: 18px;
}

.feed-head p {
  margin: 6px 0 0;
  color: #666;
  font-size: 13px;
}

/* === Duvar Kartları === */
.wall-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(0,0,0,0.06);
}

.wall-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}

.user-avatar {
  width: 46px;
  height: 46px;
  background: #d4a373;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.user-info h4 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
}

.user-info span {
  font-size: 12px;
  color: #888;
}

.wall-card p {
  margin: 0 0 12px;
  color: #666;
  font-size: 13px;
}

/* ✅ Not görünümü (feed kartında) */
.post-note{
  margin: 10px 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fbf6ef;
  border: 1px solid #efe4d6;
  color: #4a3f35;
  line-height: 1.55;
  font-size: 13px;
}

/* Medya grid */
.media-bundle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}

.media-item {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.media-item img, .media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* +X overlay */
.more-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 33.33%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  pointer-events: none;
}

/* === Responsive: Mobil / PC farklı === */
@media (min-width: 992px) {
  .upload-card {
    padding: 26px 24px;
  }

  .upload-title h3,
  .feed-head h3 {
    font-size: 20px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .events {
    margin-top: -96px;
  }
}

@media (max-width: 480px) {
  .upload-section {
    padding-bottom: 120px;
  }

  .btn-row {
    gap: 8px;
  }

  .events {
    margin-top: -70px;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
  }
}

/* Feed içeriğini ortala */
#wallContainer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.wall-card {
  width: 100%;
  max-width: 760px;
}

/* ✅ Daha modern, yumuşak butonlar */
.upload-card .btBtn{
  border: none !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  box-shadow: 0 10px 22px rgba(0,0,0,0.08) !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

/* Dosya Seç (soft) */
.upload-card .btBtn.btBtnDefaultType{
  background: #f3eee6 !important;
  color: #4a3f35 !important;
}

/* Yükle (accent) */
.upload-card .btBtn.btBtnAccentColor{
  background: #d4a373 !important;
  color: #fff !important;
}

/* Hover / Active */
.upload-card .btBtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.10) !important;
  opacity: 0.98;
}

.upload-card .btBtn:active{
  transform: translateY(0px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08) !important;
}

.upload-card .btBtn:disabled{
  opacity: .55 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 480px){
  .upload-card .btBtn{
    width: 100% !important;
    max-width: 260px;
  }
}

/* Davetiye'ye dön butonu (Hero sağ üst) */
#bt_section697abb9d43c8b {
  position: relative;
}

.back-invite{
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 50;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 14px;
  border-radius: 999px;

  background: rgba(0,0,0,0.35);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .2px;
  text-decoration: none;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);

  transition: transform .12s ease, background .12s ease, opacity .12s ease;
}

.back-invite:hover{
  background: rgba(0,0,0,0.45);
  transform: translateY(-1px);
}

.back-invite:active{
  transform: translateY(0);
}

@media (max-width: 520px){
  .back-invite{
    top: 12px;
    right: 12px;
    padding: 9px 12px;
    font-size: 12px;
  }
}

/* Default (PC+tablet) */
#bt_section697abb9d43c8b{
  background-image: url("/pictures/galeri_banner.jpg");
  background-size: cover !important;
  background-position: left center !important;
  background-repeat: no-repeat !important;
}

/* 575px altı */
@media (max-width: 575px){
  #bt_section697abb9d43c8b{
    background-image: url("/pictures/galeri_banner_slim.jpg") !important;
    background-position: right center !important;
  }
}

/* =========================
   HERO (Mobil dahil): ekranı tamamen kaplasın
   - Açıklama + buton en altta sabit
   - Buton: alttan 50px
========================= */

#bt_section697abb9d43c8b{
  height: 100svh !important;     /* ✅ min-height değil, gerçek yükseklik */
  min-height: 100svh !important;
  position: relative !important;
  display: block !important;
}

/* Hero içeriği: başlık yukarıya yakın kalsın */
#bt_section697abb9d43c8b .hero-header{
  position: static !important;   /* ✅ absolute’lar section’a göre hesaplanacak */
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
  padding: 50px 0px 0px !important; /* altta açıklama+buton için boşluk */
}

/* Başlık grubunu kontrol 
#bt_section697abb9d43c8b .btSuperTitle{
  margin-top: clamp(18px, 6vh, 52px) !important;
}*/

/* Açıklama: butonun üstünde */
#bt_section697abb9d43c8b .hero-sub{
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: 120px !important;      /* ✅ butondan yukarı */
  width: min(360px, 92%) !important;
  margin: 0 !important;
  line-height: 1.45 !important;
}

/* Feed’e göz at: en altta, alttan 50px */
#bt_section697abb9d43c8b .scroll-hint{
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: 50px !important;
  margin: 0 !important;
}

/* Çok kısa ekranlar */
@media (max-height: 700px){
  #bt_section697abb9d43c8b .hero-header{
    padding-top: 70px !important;
    padding-bottom: 150px !important;
  }
  #bt_section697abb9d43c8b .hero-sub{
    bottom: 110px !important;
  }
  #bt_section697abb9d43c8b .scroll-hint{
    bottom: 40px !important;
  }
}

/* =========================
   iOS Safari: parallax/fixed background bug fix
   (scroll sonrası bozulmayı engeller)
========================= */
@supports (-webkit-touch-callout: none) {
  /* iOS Safari hedefi */

  /* Tema parallax/fixed davranışı */
  #bt_section697abb9d43c8b,
  #bt_section697abb9d43c8b .btParallax,
  #bt_section697abb9d43c8b .wBackground,
  #bt_section697abb9d43c8b .btBackground {
    background-attachment: scroll !important; /* fixed kapat */
    transform: none !important;
    will-change: auto !important;
  }

  /* Arka planı stabil hale getir */
  #bt_section697abb9d43c8b {
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }
}

@supports (-webkit-touch-callout: none) {
  #bt_section697abb9d43c8b .wBackground {
    position: absolute !important;
    inset: 0 !important;
  }
}

/* Sağ üst aksiyon butonu (like / delete) */
.btn-like-post,
.btn-delete-post{
  border: none;
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .12s ease, opacity .12s ease;
}

.btn-like-post{
  background: #f3eee6;
  color: #4a3f35;
}

.btn-like-post i{
  color: #c65a5a;
}

.btn-like-post:active,
.btn-delete-post:active{
  transform: translateY(0);
}

.btn-like-post:hover,
.btn-delete-post:hover{
  transform: translateY(-1px);
  opacity: .98;
}

.btn-like-post:disabled{
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.btn-like-post.is-liked{
  opacity: .65;
  cursor: not-allowed;
  transform: none !important;
}

/* =========================
   Magnific Popup — Video/iframe fix
========================= */
.mfp-iframe-holder .mfp-content {
  max-width: 90vw;
  width: 90vw;
  margin: auto;
}

.mfp-iframe-scaler {
  width: 100%;
  padding-top: 56.25%;
  height: 0;
  overflow: hidden;
}

.mfp-iframe-scaler iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  border: 0;
}

.mfp-iframe-holder .mfp-close {
  top: -36px;
  right: 0;
  color: #fff;
  font-size: 28px;
  opacity: .85;
}

@media (max-width: 768px) {
  /* Video popup tam genişlik, alt boşluk ok butonları için */
  .mfp-iframe-holder {
    padding-top: 0 !important;
    padding-bottom: 64px !important;
  }

  .mfp-iframe-holder .mfp-content {
    max-width: 100vw;
    width: 100vw;
    margin: 0;
  }

  .mfp-container {
    padding: 0 !important;
  }

  /* Kapatma butonu — sol üst köşe, küçük yuvarlak */
  .mfp-iframe-holder .mfp-close {
    top: 6px !important;
    right: 6px !important;
    left: auto !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 22px !important;
    text-align: center !important;
    background: rgba(0,0,0,.65) !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    color: #fff !important;
  }

  /* Navigasyon okları — video ALTINA taşı */
  .mfp-arrow {
    top: auto !important;
    bottom: 10px !important;
    margin-top: 0 !important;
    width: 48px !important;
    height: 48px !important;
    background: rgba(0,0,0,.55) !important;
    border-radius: 50% !important;
    opacity: 1 !important;
  }

  .mfp-arrow-left  { left: 24px !important; }
  .mfp-arrow-right { right: 24px !important; }

  /* Ok ikonlarını basitleştir */
  .mfp-arrow::before,
  .mfp-arrow::after { display: none !important; }

  .mfp-arrow-left::after {
    display: block !important;
    content: "‹" !important;
    color: #fff !important;
    font-size: 32px !important;
    line-height: 48px !important;
    text-align: center !important;
    margin: 0 !important;
    border: none !important;
    width: 48px !important;
  }

  .mfp-arrow-right::after {
    display: block !important;
    content: "›" !important;
    color: #fff !important;
    font-size: 32px !important;
    line-height: 48px !important;
    text-align: center !important;
    margin: 0 !important;
    border: none !important;
    width: 48px !important;
  }
}


/* =========================
   Drive iframe — Mobilde player kontrollerini küçült
   Iframe fiziksel olarak büyük, sonra scale ile küçültülüyor.
   Video alanı responsive olduğu için boyutu değişmez,
   pixel-sized kontrol butonları küçülür.
========================= */
@media (max-width: 768px) {
  #videoModalIframe {
    width: 143% !important;
    height: 143% !important;
    transform: scale(0.7);
    transform-origin: top left;
  }
}
