/* GAZANCI.COM — Yayınlanan çalışma notları (CMS çıktısı) — v4
   v4: içerik TEK GENİŞLİĞE kilitli değil — ekranın tamamını kullanır;
   iframe yükseklikleri görünüme göre düzen (100dvh) props küçültülmüş. */

.notes-wrap {
  max-width: none;
  margin: 0 auto;
  padding: 14px clamp(10px, 1.2vw, 22px) 40px;
  position: relative;
  z-index: 1;
}

.notes-intro {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px clamp(14px, 1.8vw, 22px);
  margin-bottom: 24px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 1280px;
}
.notes-intro strong { color: var(--text); }

/* ---- bölüm ---- */
.note-sec {
  margin-bottom: 52px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.note-sec.is-in { opacity: 1; transform: none; }

.note-sec__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.note-sec__num {
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  padding-top: 4px;
  min-width: 46px;
  letter-spacing: 0.06em;
  opacity: 0.85;
}
.note-sec__body { flex: 1 1 auto; min-width: 0; }
.note-sec__title {
  font-family: var(--font-heading);
  font-size: 1.32rem;
  letter-spacing: 0.03em;
  margin: 0 0 6px;
  color: var(--text);
}
.note-sec__sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.note-sec__rule {
  height: 1px;
  background: linear-gradient(90deg, var(--border-gold), transparent);
  margin: 12px 0 20px;
}

/* ---- kart ---- */
.note-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: clamp(18px, 2vw, 24px);
  box-shadow: var(--shadow);
}
.note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.note-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.02);
}
.note-chip i { color: var(--gold); font-size: 0.72rem; }

.note-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  line-height: 1.4;
  margin: 0 0 10px;
  color: var(--text);
}
.note-summary {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.75;
  max-width: 1180px;
}
.note-summary:last-child { margin-bottom: 0; }

/* ---- doküman ----
   İçerik artık ekrana göre yükseklik alır; uzun yayınlar kırpılmaz.
   "Tam Ekran" düğmesi belgeyi ekranı kaplar; Esc ile kapanır. */
.note-doc {
  position: relative;
  border: 1px solid rgba(233, 189, 103, 0.22);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.note-docbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.98), rgba(7, 10, 20, 0.94));
  border-bottom: 1px solid rgba(233, 189, 103, 0.18);
}
.note-docbar__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 0;
}
.note-docbar__hint i { color: var(--gold); flex: 0 0 auto; }
.note-docbar__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid rgba(233, 189, 103, 0.35);
  background: rgba(233, 189, 103, 0.08);
  color: #f6d78f;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.note-docbar__btn:hover {
  background: rgba(233, 189, 103, 0.16);
  border-color: rgba(246, 215, 143, 0.6);
  transform: translateY(-1px);
}

.note-frame {
  display: block;
  width: 100%;
  height: max(560px, calc(100dvh - 150px));
  border: 0;
  background: #0b1020;
}
.note-frame--pdf { height: max(640px, calc(100dvh - 130px)); }
.note-frame--txt { height: max(420px, calc(100dvh - 200px)); background: #0f172a; }

/* Tam ekran modu */
.note-doc.is-max {
  position: fixed;
  inset: clamp(10px, 2vw, 24px);
  z-index: 9998;
  border-color: rgba(246, 215, 143, 0.5);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
  background: #04060d;
  overflow: hidden;
}
.note-doc.is-max .note-frame,
.note-doc.is-max .note-frame--pdf,
.note-doc.is-max .note-frame--txt {
  height: calc(100% - 44px); /* docbar 44px */
}
body.note-lock { overflow: hidden; }

/* ---- paylaş ---- */
.note-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.note-share__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 4px;
}
.note-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.8rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.note-share__btn i { font-size: 0.9rem; }
.note-share__btn:hover {
  color: #fff;
  border-color: var(--border-gold);
  background: rgba(233, 189, 103, 0.1);
  transform: translateY(-1px);
}
.note-share__btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.note-share__btn--wa:hover { color: #7ef0b0; border-color: rgba(37, 211, 102, 0.5); background: rgba(37, 211, 102, 0.12); }
.note-share__btn--x:hover { color: #fff; border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.1); }
.note-share__btn--mail:hover { color: var(--gold-light); }
.note-share__btn--web:hover { color: var(--gold-light); }

/* ---- kısa bildirim ---- */
.note-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  z-index: 10000;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-gold);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text);
  font-size: 0.86rem;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  max-width: calc(100vw - 32px);
  text-align: center;
  word-break: break-all;
}
.note-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---- galeri ---- */
.note-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.note-thumb {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #0b1020;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.note-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.note-thumb:hover img { transform: scale(1.05); opacity: 0.85; }
@media (min-width: 1200px) {
  .note-gallery { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* ---- boş / yükleniyor ---- */
.note-empty {
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: var(--radius);
  padding: 26px 22px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  background: rgba(15, 23, 42, 0.35);
}
.note-empty i { color: var(--gold); margin-right: 8px; }
.note-skeleton {
  height: 120px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  background-size: 200% 100%;
  animation: noteShimmer 1.4s infinite linear;
}
@keyframes noteShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---- lightbox ---- */
.note-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(3, 6, 14, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.note-lightbox.is-open { opacity: 1; visibility: visible; }
.note-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
}
.note-lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}
.note-lightbox__close:hover { background: var(--gold); color: #0b1020; }

@media (max-width: 640px) {
  .notes-wrap { padding: 4px 10px 40px; }
  .note-sec__head { gap: 10px; }
  .note-sec__num { min-width: 34px; font-size: 1.2rem; }
  .note-sec__title { font-size: 1.12rem; }
  .note-card { padding: 14px 12px; }
  .note-frame { height: max(440px, calc(100dvh - 250px)); }
  .note-frame--pdf { height: max(520px, calc(100dvh - 230px)); }
  .note-frame--txt { height: max(340px, calc(100dvh - 300px)); }
  .note-docbar__hint span { display: none; }
  .note-gallery { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .note-sec { opacity: 1; transform: none; transition: none; }
  .note-thumb img { transition: none; }
  .note-skeleton { animation: none; }
}
