/* =========================================================
   Hizmet sayfası — post akışı, post penceresi, yükleme formu
   (renk/font değişkenleri css/style.css'ten gelir)
   ========================================================= */

.service-page { background: var(--white); }
body.modal-open, body.drawer-open { overflow: hidden; }
[hidden] { display: none !important; }

/* ---------- Navbar (bu sayfaya özel) ---------- */
.nav-service .nav-links a { font-size: .74rem; }
.admin-only { display: none !important; }
.is-admin .admin-only { display: inline-flex !important; }

.panel-btn {
  align-items: center; height: 38px; padding: 0 1.1rem; border-radius: 999px;
  border: 1px solid var(--gold); color: var(--gold-dark);
  font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  transition: background .3s, color .3s;
}
.panel-btn:hover { background: var(--gold); color: var(--white); }
.add-btn {
  width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--gold); color: var(--white); font-size: .95rem;
  box-shadow: 0 10px 20px -10px rgba(167, 122, 10, .7);
  transition: background .3s, transform .3s var(--ease);
}
.add-btn:hover { background: var(--gold-dark); transform: rotate(90deg); }

.user-chip { display: flex; align-items: center; gap: .3rem; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.user-chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.user-chip button { width: 30px; height: 30px; border-radius: 50%; color: var(--text-soft); font-size: .8rem; }
.user-chip button:hover { color: var(--gold-dark); }

.menu-btn { width: 38px; height: 38px; position: relative; }
.menu-btn span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--gold-dark); border-radius: 2px; }
.menu-btn span:nth-child(1) { top: 13px; }
.menu-btn span:nth-child(2) { top: 19px; right: 14px; }
.menu-btn span:nth-child(3) { top: 25px; }

/* ana sayfanın 1280px hamburger kuralını bu sayfada iptal et: 3 link sığıyor */
@media (max-width: 1280px) {
  .nav-service .hamburger { display: none; }
  .nav-service .nav-links {
    position: static; flex-direction: row; align-items: center;
    background: none; border: 0; padding: 0;
    transform: none; opacity: 1; visibility: visible; z-index: auto;
  }
  .nav-service .nav-links a { padding: .3rem .8rem; font-size: .7rem; }
  .nav-service .nav-links a + a { border-top: 0; border-left: 1px solid var(--line); }
  .nav-service .nav-links a::after { display: block; }
}
@media (max-width: 960px) {
  .nav-service .nav-links { display: none; } /* mobilde hizmetler sağ panelde */
}

/* ---------- Sağ panel (alt hizmetler) ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 140; background: rgba(59, 42, 30, .35);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150;
  width: min(360px, 88vw); background: var(--white);
  border-left: 1px solid var(--line);
  padding: 1.8rem 2rem 2rem; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .5s var(--ease);
  overflow-y: auto;
}
.drawer-open .drawer { transform: none; }
.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.drawer-head .eyebrow { margin: 0; }
.drawer-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); color: var(--text-soft); }
.drawer-close:hover { color: var(--gold-dark); border-color: var(--gold); }

.drawer-services { display: none; flex-direction: column; margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.drawer-services a { padding: .6rem 0; font-family: var(--font-head); font-size: 1.2rem; color: var(--text-soft); }
.drawer-services a.active { color: var(--gold-dark); font-style: italic; }
@media (max-width: 960px) { .drawer-services { display: flex; } }

.drawer-list li + li { border-top: 1px solid var(--line); }
.drawer-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 0; font-size: .95rem; transition: color .3s, padding .3s var(--ease);
}
.drawer-list a:hover { color: var(--gold-dark); padding-left: .4rem; }
.drawer-list small { font-size: .72rem; color: var(--gold); letter-spacing: .1em; }
.drawer-home { margin-top: auto; padding-top: 2rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-soft); }
.drawer-home:hover { color: var(--gold-dark); }

/* ---------- Sayfa başlığı ---------- */
.page-head { padding: calc(var(--nav-h) + 4.5rem) 0 2.5rem; background: var(--parchment); text-align: center; }
.page-head .eyebrow { margin-bottom: 1rem; }
.page-head h1 { font-size: clamp(2.6rem, 5vw, 4rem); font-style: italic; color: var(--text); }
.page-intro { max-width: 520px; margin: 1.2rem auto 0; color: var(--text-soft); }
.demo-note {
  display: inline-flex; gap: .7rem; align-items: center; margin-top: 1.8rem; padding: .7rem 1.2rem;
  border: 1px dashed var(--gold); background: var(--white); font-size: .8rem; color: var(--text-soft);
}
.demo-note i { color: var(--gold); }

/* ---------- Akış ---------- */
.feed { padding: 3rem 0 7rem; }
.feed-loading, .feed-empty { text-align: center; color: var(--text-soft); padding: 4rem 0; }
.feed-empty i { font-size: 2.4rem; color: var(--gold); margin-bottom: 1rem; }

.sub-section { padding-top: 3.5rem; scroll-margin-top: calc(var(--nav-h) + 1rem); }
.sub-head { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 1.8rem; }
.sub-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--gold-dark); }
.sub-line { flex: 1; height: 1px; background: var(--line); }
.sub-add {
  display: inline-flex; align-items: center; gap: .4rem; padding: .45rem 1rem; border-radius: 999px;
  border: 1px dashed var(--gold); color: var(--gold-dark); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
}
.sub-add:hover { background: var(--parchment); }
.sub-empty { color: var(--text-soft); font-style: italic; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.post-card {
  position: relative; aspect-ratio: 1; overflow: hidden; cursor: pointer;
  background: linear-gradient(145deg, var(--parchment), var(--wheat));
  border: 1px solid var(--line);
}
.post-card img, .post-card video {
  width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease);
}
.post-card:hover img, .post-card:hover video { transform: scale(1.05); }
.card-badges { position: absolute; top: .8rem; right: .8rem; display: flex; gap: .5rem; color: var(--white); font-size: .95rem; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .5)); z-index: 2; }
.card-hover {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1.2rem;
  background: linear-gradient(to top, rgba(59, 42, 30, .7), transparent 55%);
  color: var(--white); font-size: .85rem; text-align: left; line-height: 1.5;
  opacity: 0; transition: opacity .4s;
}
.card-hover span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card:hover .card-hover, .post-card:focus-visible .card-hover { opacity: 1; }

/* ---------- Pencereler (ortak) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 2rem;
  opacity: 0; transition: opacity .3s;
}
.modal.open { opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(35, 25, 17, .82); }
.modal-close { position: absolute; top: 1.2rem; right: 1.4rem; z-index: 2; color: var(--white); font-size: 1.6rem; }

/* ---------- Post penceresi ---------- */
.post-view {
  position: relative; z-index: 1;
  width: min(1100px, 100%); height: min(680px, 100%);
  display: grid; grid-template-columns: 1.4fr 1fr;
  background: var(--white); overflow: hidden;
  transform: translateY(16px) scale(.98); transition: transform .4s var(--ease);
}
.modal.open .post-view, .modal.open .add-form { transform: none; }

.pv-media { position: relative; background: #1d140d; min-height: 0; }
.pv-track {
  height: 100%; display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.pv-track::-webkit-scrollbar { display: none; }
.pv-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; display: grid; place-items: center; }
.pv-slide img, .pv-slide video { width: 100%; height: 100%; object-fit: contain; }
.pv-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .88); color: var(--text); font-size: .85rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25); transition: background .3s;
}
.pv-nav:hover { background: var(--white); color: var(--gold-dark); }
.pv-nav.prev { left: 1rem; }
.pv-nav.next { right: 1rem; }
.pv-dots { position: absolute; bottom: 1rem; left: 0; right: 0; display: flex; justify-content: center; gap: .4rem; pointer-events: none; }
.pv-dots button { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .5); pointer-events: auto; transition: background .3s, transform .3s; }
.pv-dots button.active { background: var(--gold-metal); transform: scale(1.3); }

.pv-side { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); }
.pv-head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.pv-head strong { display: block; font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; }
.pv-head span { font-size: .72rem; letter-spacing: .08em; color: var(--gold-dark); }
.pv-avatar { width: 44px; height: 44px; object-fit: contain; border: 1px solid var(--line); border-radius: 50%; padding: 4px; }
.pv-tools { margin-left: auto; display: flex; gap: .2rem; }
.pv-tool { width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; color: var(--text-soft); font-size: .9rem; transition: background .3s, color .3s; }
.pv-tool:hover { color: var(--gold-dark); background: var(--parchment); }
.pv-delete:hover { color: #a13d2d; background: #f8ecea; }

.pv-body { flex: 1; overflow-y: auto; padding: 1.2rem; }
.pv-caption { white-space: pre-line; }
.pv-date { display: block; margin: .6rem 0 1.2rem; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); }

.comments { border-top: 1px solid var(--line); padding-top: 1rem; }
.comments-empty { color: var(--text-soft); font-size: .85rem; font-style: italic; }
.comment { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem 0; }
.c-avatar { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.c-initial { display: grid; place-items: center; background: var(--wheat); color: var(--gold-dark); font-family: var(--font-head); }
.c-body { flex: 1; font-size: .88rem; line-height: 1.55; }
.c-body strong { font-weight: 600; color: var(--text); }
.c-body time { font-size: .7rem; color: var(--text-soft); }
.c-delete { color: var(--text-soft); font-size: .8rem; opacity: .6; }
.c-delete:hover { opacity: 1; color: #a13d2d; }

.comment-form { display: flex; border-top: 1px solid var(--line); }
.comment-form input { flex: 1; min-width: 0; border: 0; padding: 1.1rem 1.2rem; font: inherit; color: var(--text); background: none; outline: none; }
.comment-form button { padding: 0 1.2rem; font-weight: 600; font-size: .8rem; letter-spacing: .08em; color: var(--gold-dark); }
.comment-form button:hover { color: var(--gold); }
.comment-login {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  border-top: 1px solid var(--line); padding: 1.1rem; font-size: .82rem; color: var(--gold-dark);
}
.comment-login:hover { background: var(--parchment); }

/* ---------- Yeni post formu ---------- */
.add-form {
  position: relative; z-index: 1;
  width: min(560px, 100%); max-height: 100%; overflow-y: auto;
  background: var(--white); padding: 2rem 2.2rem;
  transform: translateY(16px); transition: transform .4s var(--ease);
}
.add-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.add-head h3 { margin: 0; font-size: 1.8rem; }
.modal-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); color: var(--text-soft); }

.field { display: block; margin-bottom: 1.1rem; }
.field span { display: block; margin-bottom: .4rem; font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); background: var(--parchment);
  font: inherit; color: var(--text); outline: none; transition: border-color .3s, background .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: var(--white); }
.field textarea { resize: vertical; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: 1.8rem 1rem; border: 1px dashed var(--gold); background: var(--parchment);
  text-align: center; cursor: pointer; transition: background .3s;
}
.dropzone.over, .dropzone:hover { background: #f4ecd7; }
.dropzone input { display: none; }
.dropzone i { font-size: 1.8rem; color: var(--gold); }
.dropzone strong { font-weight: 500; }
.dropzone span { font-size: .75rem; color: var(--text-soft); }

.previews { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: 1rem; }
.previews-hint { margin-top: 1rem; font-size: .75rem; color: var(--text-soft); }
.previews-hint strong { color: var(--gold-dark); }
.previews li {
  position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line);
  cursor: grab; transition: opacity .2s, transform .2s var(--ease), box-shadow .2s;
}
.previews li:active { cursor: grabbing; }
.previews li.dragging { opacity: .35; }
.previews li.drop-target { box-shadow: 0 0 0 2px var(--gold); transform: scale(1.04); }
.previews li:first-child { border: 2px solid var(--gold); }
.previews img, .previews video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

.pv-order, .pv-new {
  position: absolute; top: 4px; left: 4px; padding: 1px 7px; border-radius: 999px;
  font-size: .6rem; font-weight: 600; letter-spacing: .06em;
  background: rgba(255, 255, 255, .92); color: var(--text);
}
.previews li:first-child .pv-order { background: var(--gold); color: var(--white); }
.pv-new { top: auto; bottom: 8px; left: 4px; background: var(--text); color: var(--parchment); }
.pv-type { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--white); font-size: .9rem; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .6)); }

.pv-remove {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); font-size: .7rem; color: var(--text);
}
.pv-remove:hover { background: #a13d2d; color: var(--white); }
.pv-move {
  position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: flex-end; gap: 3px; padding: 0 4px;
  opacity: 0; transition: opacity .2s;
}
.previews li:hover .pv-move, .previews li:focus-within .pv-move { opacity: 1; }
.pv-move button {
  width: 22px; height: 22px; border-radius: 50%; font-size: .6rem;
  background: rgba(255, 255, 255, .92); color: var(--text);
}
.pv-move button:hover:not(:disabled) { background: var(--gold); color: var(--white); }
.pv-move button:disabled { opacity: .35; cursor: default; }
@media (hover: none) { .pv-move { opacity: 1; } } /* dokunmatik ekranda oklar hep görünür */
.pv-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p, 0) * 100%); background: var(--gold); transition: width .2s; }

.form-msg { min-height: 1.4em; margin: 1rem 0 .6rem; font-size: .82rem; color: var(--text-soft); }
.btn-solid { width: 100%; background: var(--gold); color: var(--white); }
.btn-solid::before { background: var(--gold-dark); }
.btn-solid:disabled { opacity: .6; cursor: wait; }

/* ---------- Alt başlık açıklaması (örn. Hydrafacial) ---------- */
.sub-desc { max-width: 640px; margin: -.8rem 0 1.6rem; color: var(--text-soft); font-size: .92rem; }

/* ---------- Lazer: mahremiyet + paket kartları ---------- */
.private-page .add-btn { display: none !important; }

.privacy-card {
  display: flex; gap: 1.6rem; align-items: flex-start;
  max-width: 860px; margin: 3rem auto 4rem; padding: 2.2rem 2.4rem;
  background: var(--parchment); border: 1px solid var(--line); border-left: 2px solid var(--gold);
}
.privacy-icon {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 1px solid var(--line);
  color: var(--gold); font-size: 1.2rem;
}
.privacy-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .7rem; font-style: italic; }
.privacy-card p { color: var(--text-soft); }

.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; align-items: stretch; }
.package-card {
  position: relative; display: flex; flex-direction: column;
  padding: 2.4rem 2rem 2rem; background: var(--white); border: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity 1.1s var(--ease);
}
.package-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -35px rgba(59, 42, 30, .35); }
.package-card::before { /* gold köşe detayı */
  content: ''; position: absolute; top: -1px; left: -1px; width: 48px; height: 48px;
  border-top: 2px solid var(--gold); border-left: 2px solid var(--gold);
}
.package-badge {
  align-self: flex-start; margin-bottom: 1.2rem; padding: .3rem .9rem; border-radius: 999px;
  background: var(--parchment); border: 1px solid var(--line);
  font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark);
}
.package-card h3 { font-size: 1.9rem; margin-bottom: .6rem; }
.package-text { color: var(--text-soft); font-size: .9rem; margin-bottom: 1.4rem; }
.region-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 2rem; }
.region-list li {
  padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .78rem; color: var(--text);
}
.package-btn { margin-top: auto; gap: .5rem; }

.package-notice {
  max-width: 720px; margin: 3rem auto 0; padding: 1.1rem 1.4rem; text-align: center;
  border: 1px dashed var(--gold); font-size: .9rem; color: var(--text-soft);
}
.package-notice strong { color: var(--gold-dark); }
.package-notice em { font-style: normal; font-weight: 600; color: var(--text); }

@media (max-width: 960px) {
  .package-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .privacy-card { flex-direction: column; gap: 1rem; padding: 1.6rem 1.4rem; margin: 2rem 0 3rem; }
  .package-card { padding: 2rem 1.5rem 1.6rem; }
}

/* ---------- Onay penceresi ---------- */
.confirm-modal { z-index: 350; } /* post penceresinin üstünde */
.confirm-box {
  position: relative; z-index: 1; width: min(400px, 100%);
  padding: 2.2rem 2rem 1.8rem; background: var(--white); text-align: center;
  border-top: 2px solid var(--gold);
  transform: translateY(12px) scale(.97); transition: transform .35s var(--ease);
}
.confirm-modal.open .confirm-box { transform: none; }
.confirm-icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1rem;
  border-radius: 50%; background: #f8ecea; color: #a13d2d; font-size: 1.3rem;
}
.confirm-box h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.confirm-box p { color: var(--text-soft); font-size: .88rem; line-height: 1.7; }
.confirm-actions { display: flex; gap: .7rem; margin-top: 1.8rem; }
.confirm-actions .btn { flex: 1; padding: .9rem 1rem; }
.btn-danger { border-color: #a13d2d; background: #a13d2d; color: var(--white); }
.btn-danger::before { background: #822f22; }
.btn-danger:hover { color: var(--white); }

/* ---------- Bildirim ---------- */
.toast {
  position: fixed; left: 50%; bottom: 2rem; z-index: 400;
  transform: translate(-50%, 20px); opacity: 0; visibility: hidden;
  padding: .9rem 1.4rem; background: var(--text); color: var(--parchment);
  font-size: .85rem; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .4);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Kısa footer ---------- */
.footer-slim { padding-top: 3.5rem; }
.footer-slim-inner { display: flex; flex-direction: column; align-items: center; gap: .9rem; text-align: center; padding-bottom: 3rem; }
.footer-slim-inner .brand { margin-bottom: .8rem; }
.footer-slim-inner .brand-logo { height: 64px; }
.footer-slim-inner i { color: var(--gold-metal); margin-right: .4rem; }
.footer-slim-inner strong { color: var(--gold-metal); font-weight: 500; }
.footer-slim-inner .socials { margin-top: .6rem; }
.footer-slim-inner .socials i { margin: 0; color: inherit; }

/* ---------- Duyarlı ---------- */
@media (max-width: 960px) {
  .post-grid { gap: .8rem; }
  .modal { padding: 0; }
  .post-view { height: 100%; grid-template-columns: 1fr; grid-template-rows: minmax(0, 55%) minmax(0, 1fr); }
  .pv-side { border-left: 0; border-top: 1px solid var(--line); }
  .modal-close { top: .6rem; right: .8rem; z-index: 5; font-size: 1.3rem; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, .45); }
  .add-form { height: 100%; max-height: none; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .is-admin .panel-btn { display: none !important; }
  .is-admin .nav-service .brand-text { display: none; } /* admin butonlarına yer aç */ /* mobilde yer yok; ileride panel menüsüne taşınacak */
  .sub-head { gap: .8rem; }
  .card-hover { display: none; }
  .add-form { padding: 1.5rem 1.2rem; }
  .previews { grid-template-columns: repeat(3, 1fr); }
}
