/* ACAR HUB — Instagram / TikTok / WhatsApp / Telegram / Facebook birleşik arayüz */

.hub-body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(242, 201, 76, 0.08), transparent 55%),
    #050506;
  color: #f4f1ea;
  font-family: Figtree, system-ui, sans-serif;
}

.hub-body .backdrop,
.hub-body .site-header {
  display: none !important;
}

.hub-shell {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #09090b;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

.hub-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hub-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.hub-brand strong {
  font-family: Cinzel, Figtree, serif;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff6d0 0%, #f2c94c 42%, #c48a12 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hub-logo {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #f2c94c, #b88912);
  color: #1a1404;
  font-size: 0.95rem;
}

.hub-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
  background: #0b0b0b;
  border: 1px solid rgba(242, 201, 76, 0.35);
}

.hub-top-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hub-icon-btn,
.hub-text-btn {
  position: relative;
  border: 0;
  background: none;
  color: inherit;
  min-width: 42px;
  min-height: 42px;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
}

.hub-text-btn {
  min-width: auto;
  color: var(--gold, #f2c94c);
  font-weight: 700;
}

.hub-avatar-link {
  display: block;
  text-decoration: none;
}

.hub-avatar,
.ava {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #1c1c22;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #f2c94c;
  overflow: hidden;
  border: 1px solid rgba(242, 201, 76, 0.35);
}

.hub-avatar svg,
.ava svg {
  display: block;
}

.hub-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff375f;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  font-weight: 800;
}

.hub-main {
  flex: 1;
  min-height: 0;
}

.hub-tab {
  min-height: calc(100dvh - 128px);
}

.hub-tab[hidden] {
  display: none !important;
}

.hub-empty,
.hub-hint {
  color: rgba(244, 241, 234, 0.62);
  text-align: center;
  padding: 28px 16px;
  line-height: 1.45;
}

.hub-hint {
  padding: 6px 0 0;
  font-size: 0.85rem;
  text-align: left;
}

.hub-sec-title {
  margin: 18px 14px 8px;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.55);
}

.hub-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f2c94c, #d4a017);
  color: #1a1404;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.hub-pill-btn.wide {
  width: 100%;
}

.hub-pill-btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hub-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 10, 12, 0.94);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.tab-btn {
  border: 0;
  background: none;
  color: rgba(244, 241, 234, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
}

.tab-btn.on {
  color: #fff;
}

.tab-btn.tab-live.on,
.tab-btn.tab-live .live-orb {
  color: #ff375f;
}

.live-orb {
  font-size: 1.15rem;
  line-height: 22px;
}

/* —— Hikayeler (Instagram) —— */
.story-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 14px 8px;
  scrollbar-width: none;
}

.story-rail::-webkit-scrollbar {
  display: none;
}

.story-item {
  flex: 0 0 74px;
  width: 74px;
  text-align: center;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.story-ring {
  width: 68px;
  height: 68px;
  margin: 0 auto 6px;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #f9ce34, #ee2a7b, #6228d7, #f9ce34);
}

.story-ring.add {
  background: rgba(255, 255, 255, 0.16);
}

.story-ring img,
.story-ring span {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  border: 2px solid #09090b;
}

.story-item small {
  display: block;
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* —— Akış (Facebook / Instagram) —— */
.feed-list {
  display: grid;
  gap: 18px;
  padding: 8px 0 24px;
}

.update-feed-card {
  margin: 0 12px;
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(242, 201, 76, 0.28);
  background: rgba(242, 201, 76, 0.06);
}

.update-feed-card .update-kicker {
  margin: 0 0 4px;
}

.update-feed-card strong {
  display: block;
  margin-bottom: 6px;
  color: #f2c94c;
}

.update-feed-card p {
  margin: 0 0 10px;
  color: rgba(244, 241, 234, 0.8);
  font-size: 0.9rem;
}

.update-feed-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 !important;
}

.post-card {
  background: #0f0f12;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

.post-head strong {
  display: block;
  font-size: 0.95rem;
}

.post-head small {
  color: rgba(244, 241, 234, 0.5);
}

.post-media {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #000;
  display: block;
}

.post-actions {
  display: flex;
  gap: 4px;
  padding: 6px 8px;
}

.act-btn {
  border: 0;
  background: none;
  color: inherit;
  min-height: 40px;
  padding: 0 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border-radius: 10px;
}

.act-btn.liked {
  color: #ff375f;
}

.post-body {
  padding: 0 14px 14px;
}

.post-body p {
  margin: 4px 0 0;
  line-height: 1.4;
}

/* —— Reels (TikTok) —— */
#tab-reels {
  background: #000;
  min-height: calc(100dvh - 118px);
}

.reels-stage {
  height: calc(100dvh - 118px);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

.reel-item {
  position: relative;
  height: calc(100dvh - 118px);
  scroll-snap-align: start;
  background: #000;
}

.reel-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-meta {
  position: absolute;
  left: 14px;
  right: 72px;
  bottom: 22px;
  text-shadow: 0 2px 10px #000;
}

.reel-side {
  position: absolute;
  right: 10px;
  bottom: 80px;
  display: grid;
  gap: 14px;
  justify-items: center;
}

.reel-side button,
.reel-side a {
  width: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: grid;
  place-items: center;
}

/* —— Canlı —— */
.live-hero {
  margin: 14px;
  padding: 16px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 55, 95, 0.22), rgba(242, 201, 76, 0.08)),
    #141418;
}

.live-hero h2 {
  margin: 4px 0;
  font-size: 1.25rem;
}

.live-hero p {
  margin: 0;
  color: rgba(244, 241, 234, 0.65);
}

.live-kicker {
  margin: 0;
  color: #ff375f;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.live-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px 18px;
}

.live-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #141418;
  border-radius: 16px;
  overflow: hidden;
  min-height: 120px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.live-card .pill {
  display: inline-block;
  background: #ff375f;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* —— Sohbet (WhatsApp + Telegram) —— */
.tab-chat {
  min-height: calc(100dvh - 118px);
}

.chat-layout {
  display: grid;
  min-height: calc(100dvh - 118px);
}

.chat-list-pane,
.chat-thread-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chat-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 12px 0;
}

.chat-tab {
  flex: 1;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: #16161c;
  color: inherit;
  font-weight: 700;
  cursor: pointer;
}

.chat-tab.on {
  background: #f2c94c;
  color: #1a1404;
}

.chat-new {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
}

.chat-new input,
.chat-composer input,
.sheet-form input,
.sheet-form textarea {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #16161c;
  color: inherit;
  padding: 0 12px;
  font: inherit;
}

.thread-row {
  width: 100%;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 10px 14px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.thread-row.on {
  background: rgba(242, 201, 76, 0.08);
}

.thread-row strong {
  display: block;
}

.thread-row small {
  color: rgba(244, 241, 234, 0.55);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unread-badge {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #25d366;
  color: #062;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.chat-thread-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #111217;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-thread-head small {
  display: block;
  color: #25d366;
  font-size: 0.75rem;
}

.chat-back {
  display: none;
  font-size: 1.4rem;
}

.chat-bubbles {
  flex: 1;
  overflow: auto;
  padding: 12px;
  background:
    radial-gradient(circle at 20% 10%, rgba(37, 211, 102, 0.05), transparent 40%),
    #0b1410;
  min-height: 240px;
}

.bubble {
  max-width: 82%;
  padding: 8px 11px;
  border-radius: 14px;
  margin: 0 0 8px;
  line-height: 1.35;
  clear: both;
}

.bubble.mine {
  float: right;
  background: #1f6b4a;
  border-bottom-right-radius: 4px;
}

.bubble.theirs {
  float: left;
  background: #1c2420;
  border-bottom-left-radius: 4px;
}

.bubble small {
  display: block;
  opacity: 0.65;
  font-size: 0.7rem;
  margin-top: 4px;
}

.chat-composer {
  display: flex;
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: #111217;
}

/* —— Profil (Instagram) —— */
.prof-hero {
  padding: 16px 16px 8px;
}

.prof-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
}

.prof-ava {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(242, 201, 76, 0.45);
  background: #16161c;
}

.prof-counts {
  display: flex;
  justify-content: space-around;
  text-align: center;
}
.prof-counts a {
  color: inherit;
  text-decoration: none;
}

.prof-counts strong {
  display: block;
  font-size: 1.15rem;
}

.prof-counts span {
  font-size: 0.75rem;
  color: rgba(244, 241, 234, 0.55);
}

.prof-bio {
  margin: 12px 0;
}

.prof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 16px;
}

.prof-grid img,
.prof-grid video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #111;
  display: block;
}

/* —— Overlay / sheet —— */
.hub-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #000;
}

.hub-overlay.sheet {
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hub-overlay[hidden],
.hub-notify-panel[hidden] {
  display: none !important;
}

.sheet-card {
  width: min(560px, 100%);
  max-height: 88dvh;
  overflow: auto;
  background: #121217;
  border-radius: 22px 22px 0 0;
  padding: 14px 14px calc(16px + env(safe-area-inset-bottom, 0px));
}

.hub-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.sheet-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.sheet-form.col {
  flex-direction: column;
}

.compose-kinds {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.compose-kind {
  flex: 1;
  min-height: 38px;
  border-radius: 999px;
  border: 0;
  background: #1c1c24;
  color: inherit;
  font-weight: 700;
  cursor: pointer;
}

.compose-kind.on {
  background: #f2c94c;
  color: #1a1404;
}

.overlay-close {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: 12px;
  z-index: 2;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 12px;
  font-weight: 700;
  cursor: pointer;
}

#story-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.story-overlay-meta {
  position: absolute;
  left: 16px;
  top: calc(18px + env(safe-area-inset-top, 0px));
  font-weight: 800;
  text-shadow: 0 2px 8px #000;
}

.story-hit {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42%;
  border: 0;
  background: none;
  cursor: pointer;
}

.story-hit.left { left: 0; }
.story-hit.right { right: 0; }

.story-progress {
  position: absolute;
  top: calc(8px + env(safe-area-inset-top, 0px));
  left: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
  z-index: 2;
}

.story-progress i {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.story-progress i b {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}

.hub-notify-panel {
  position: absolute;
  right: 10px;
  top: 62px;
  z-index: 50;
  width: min(340px, 92vw);
  max-height: 60vh;
  overflow: auto;
  background: #14141a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 10px;
}

.notify-row {
  display: block;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: inherit;
  text-decoration: none;
}

.notify-row.unread {
  background: rgba(242, 201, 76, 0.08);
}

.search-block {
  margin-top: 12px;
}

.search-block a,
.search-block button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 0;
  color: inherit;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.gate-banner {
  margin: 10px 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(242, 201, 76, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25d366;
  margin-right: 4px;
}

@media (max-width: 820px) {
  .chat-layout.open-thread .chat-list-pane {
    display: none;
  }
  .chat-layout:not(.open-thread) .chat-thread-pane {
    display: none;
  }
  .chat-back {
    display: inline-flex;
  }
}

@media (min-width: 821px) {
  .hub-body {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: stretch;
    padding: 16px 24px 16px 20px;
  }
  .hub-shell {
    width: min(430px, 100%);
    margin-left: 0;
    margin-right: auto;
    min-height: calc(100dvh - 32px);
    max-height: calc(100dvh - 32px);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    position: relative;
  }
  .hub-shell.wide {
    width: min(920px, 96vw);
  }
  .hub-tabbar {
    position: absolute;
    border-radius: 0 0 28px 28px;
  }
  .chat-layout {
    grid-template-columns: 320px 1fr;
  }
  .hub-notify-panel {
    right: 18px;
  }
}

@media (min-width: 821px) {
  #tab-reels,
  .reels-stage,
  .reel-item {
    height: calc(100dvh - 150px);
    max-height: 760px;
  }
}

.okey-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin: 0 0 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #146644, #0c3d29);
  border: 1px solid rgba(231, 196, 90, 0.35);
  color: #f4efe3;
  text-decoration: none;
}
.okey-banner-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f7f1e3;
  color: #c4161c;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
}
.okey-banner strong,
.okey-banner small {
  display: block;
}
.okey-banner small {
  color: #cfe0d7;
  margin-top: 2px;
}
.okey-banner .hub-pill-btn {
  margin-left: auto;
}

