/* Post Share Floating Bar - Floating share buttons styling */

.post-share-floating .share-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-primary) 6%, #fff);
  border: 1.5px solid color-mix(in srgb, var(--theme-primary) 14%, rgba(15,23,42,0.08));
  box-shadow: 0 4px 12px rgba(2,6,23,0.05);
  color: var(--theme-primary);
  transition: all .18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.post-share-floating .share-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.post-share-floating .share-icon:hover {
  transform: translateY(-4px) scale(1.08);
  background: color-mix(in srgb, var(--theme-primary) 18%, #fff);
  border-color: color-mix(in srgb, var(--theme-primary) 32%, rgba(15,23,42,0.08));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--theme-primary) 24%, rgba(2,6,23,0.15));
}

.post-share-floating .share-icon:active {
  transform: translateY(-1px) scale(0.98);
}

.post-share-floating .share-icon:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--theme-primary) 52%, transparent);
  outline-offset: 3px;
}

/* Facebook: use official blue */
.post-share-floating .share-icon.fb {
  color: #1877F2;
}

.post-share-floating .share-icon.fb:hover {
  background: color-mix(in srgb, #1877F2 18%, #fff);
  border-color: color-mix(in srgb, #1877F2 32%, rgba(15,23,42,0.08));
  box-shadow: 0 8px 24px color-mix(in srgb, #1877F2 24%, rgba(2,6,23,0.15));
}

/* WhatsApp: use official green on hover */
.post-share-floating .share-icon.wa {
  color: #15c6a3;
}

.post-share-floating .share-icon.wa:hover {
  color: #25D366;
  background: color-mix(in srgb, #25D366 18%, #fff);
  border-color: color-mix(in srgb, #25D366 32%, rgba(15,23,42,0.08));
  box-shadow: 0 8px 24px color-mix(in srgb, #25D366 24%, rgba(2,6,23,0.15));
}

/* Pinterest: red button with rounded background - smaller SVG */
.post-share-floating .share-icon.pin {
  background: color-mix(in srgb, #E60023 8%, #fff) !important;
  border: 1.5px solid color-mix(in srgb, #E60023 20%, rgba(15,23,42,0.08)) !important;
}

.post-share-floating .share-icon.pin svg {
  width: 38px !important;
  height: 38px !important;
}

/* Facebook: 1 step bigger */
.post-share-floating .share-icon.fb svg {
  width: 32px !important;
  height: 32px !important;
}

/* WhatsApp: 2-3 steps bigger */
.post-share-floating .share-icon.wa svg {
  width: 38px !important;
  height: 38px !important;
}

.post-share-floating .share-icon.pin:hover {
  background: color-mix(in srgb, #E60023 16%, #fff) !important;
  border-color: color-mix(in srgb, #E60023 32%, rgba(15,23,42,0.08)) !important;
  box-shadow: 0 8px 24px rgba(230, 0, 35, 0.25) !important;
  filter: none;
}

/* Optional special button style if .ing is ever re-enabled */
.post-share-floating .share-icon.ing {
  background: var(--theme-secondary) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.post-share-floating .share-icon.ing svg {
  color: #fff !important;
  fill: currentColor !important;
}

/* Mobile inline bar: keep WhatsApp theme color */
.post-share-inline-mobile .ms-inline.wa {
  color: #15c6a3;
}

/* Mobile: show desktop-like share pills under author (non-sticky) */
.post-share-inline-mobile {
  display: none;
}

@media (max-width: 880px), (hover: none) and (pointer: coarse) {
  .post-share-floating {
    display: none !important;
  }

  .post-share-inline-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: fit-content;
    margin: 10px auto 0;
    padding: 12px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 12px 32px rgba(2,6,23,0.10), 0 0 1px rgba(15,23,42,0.12);
    backdrop-filter: blur(12px) saturate(150%);
  }

  .post-share-inline-mobile .ms-inline {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--theme-primary) 6%, #fff);
    border: 1.5px solid color-mix(in srgb, var(--theme-primary) 14%, rgba(15,23,42,0.08));
    box-shadow: 0 4px 12px rgba(2,6,23,0.05);
    color: var(--theme-primary);
    cursor: pointer;
    transition: all .18s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    padding: 0;
    outline: none;
    appearance: none;
  }

  .post-share-inline-mobile .ms-inline svg {
    width: 28px;
    height: 28px;
    display: block;
  }

  .post-share-inline-mobile .ms-inline:hover {
    transform: translateY(-3px) scale(1.06);
    background: color-mix(in srgb, var(--theme-primary) 18%, #fff);
    border-color: color-mix(in srgb, var(--theme-primary) 32%, rgba(15,23,42,0.08));
    box-shadow: 0 8px 24px color-mix(in srgb, var(--theme-primary) 24%, rgba(2,6,23,0.15));
  }

  .post-share-inline-mobile .ms-inline:active {
    transform: translateY(-1px) scale(0.98);
  }

  .post-share-inline-mobile .ms-inline:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--theme-primary) 52%, transparent);
    outline-offset: 3px;
  }

  /* Hide text labels visually (keep for a11y) */
  .post-share-inline-mobile .ms-inline span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  /* Per-network styling (match desktop floating) */
  .post-share-inline-mobile .ms-inline.fb {
    color: #1877F2;
  }

  .post-share-inline-mobile .ms-inline.fb:hover {
    background: color-mix(in srgb, #1877F2 18%, #fff);
    border-color: color-mix(in srgb, #1877F2 32%, rgba(15,23,42,0.08));
    box-shadow: 0 8px 24px color-mix(in srgb, #1877F2 24%, rgba(2,6,23,0.15));
  }

  .post-share-inline-mobile .ms-inline.pin {
    background: color-mix(in srgb, #E60023 8%, #fff) !important;
    border: 1.5px solid color-mix(in srgb, #E60023 20%, rgba(15,23,42,0.08)) !important;
    color: #E60023;
  }

  .post-share-inline-mobile .ms-inline.pin svg {
    width: 34px;
    height: 34px;
  }

  .post-share-inline-mobile .ms-inline.pin:hover {
    background: color-mix(in srgb, #E60023 16%, #fff) !important;
    border-color: color-mix(in srgb, #E60023 32%, rgba(15,23,42,0.08)) !important;
    box-shadow: 0 8px 24px rgba(230, 0, 35, 0.25) !important;
  }

  .post-share-inline-mobile .ms-inline.wa {
    color: #15c6a3;
  }

  .post-share-inline-mobile .ms-inline.wa svg {
    width: 34px;
    height: 34px;
  }

  .post-share-inline-mobile .ms-inline.story {
    color: var(--theme-secondary, var(--secondary-color));
  }
}
/* ===== POST SHARE MOBILE ===== */
.post-share-mobile {
  display: none;
  width: 100%;
  margin-top: 12px;
  gap: 10px;
  align-items: center;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.post-share-mobile .share-icon {
  height: 42px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: #6b7280;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
}

.post-share-mobile .share-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.post-share-mobile .share-icon .label {
  color: inherit;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-share-mobile .share-icon:active {
  transform: translateY(0) scale(0.99);
}

.post-share-mobile .share-icon:hover {
  transform: translateY(-1px);
}

.post-share-mobile .share-icon.fb {
  color: #1877F2;
}

.post-share-mobile .share-icon.pin {
  color: #E60023;
}

.post-share-mobile .share-icon.wa {
  color: var(--theme-primary, #15c6a3);
}

.post-share-mobile .share-icon.story {
  color: #FF9800;
}

@media (max-width: 880px), (hover: none) and (pointer: coarse) {
  .post-share-mobile {
    display: grid !important;
  }

  .post-share-floating {
    display: none !important;
  }
}

/* Daraldıkça 2 üst 2 alt (yazılar sığsın) */
@media (max-width: 520px) {
  .post-share-mobile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Çok dar ekranlarda tek satır korunurken daha kompakt */
@media (max-width: 380px) {
  .post-share-mobile {
    gap: 8px;
  }

  .post-share-mobile .share-icon {
    padding: 0 8px;
    font-size: 12px;
  }

  .post-share-mobile .share-icon svg {
    width: 16px;
    height: 16px;
  }
}

/* Mobilde post içi boşlukları azalt (başlık/author/share + paragraf) */
@media (max-width: 880px) {
  main article.post-article {
    padding: 14px !important;
  }

  .post-header {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 8px !important;
  }

  .post-header-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  main article.post-article h1 {
    margin-bottom: 10px !important;
  }

  .post-author-meta {
    gap: 10px !important;
    margin-top: 6px !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .author-meta {
    gap: 4px !important;
  }

  .meta-small {
    margin-top: 0 !important;
  }

  .post-share-mobile {
    margin-top: 2px !important;
    margin-bottom: 18px !important;
  }

  .post-content p {
    margin-bottom: 10px !important;
  }
}