@import url("../base/variables.5e7fedb82cda.css");
@import url("../base/reset.dae278e6190d.css");
@import url("../base/typography.c84c9b472a75.css");
@import url("./explore.afa603382d46.css");

:root {
  --story-ring: linear-gradient(
    135deg,
    var(--secondary),
    var(--primary),
    #7b3f20
  );
  --nav-w: 72px;
  --sidebar-w: 320px;
}

body.page-explore {
  display: block;
  min-height: 100vh;
  background: var(--bg-main);
  color: var(--text-primary);
  overflow-x: hidden;
}

.left-nav {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: var(--nav-w);
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  gap: 4px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: width 0.3s ease;
}

.left-nav.expanded {
  width: 220px;
  align-items: flex-start;
  padding: 20px 12px;
}

.nav-logo {
  width: 40px;
  height: 40px;
  background: var(--story-ring);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: var(--text-inverse);
  cursor: pointer;
  margin-bottom: 16px;
}

.nav-item {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0 12px;
  position: relative;
  gap: 12px;
}

.left-nav:not(.expanded) .nav-item {
  justify-content: center;
  padding: 0;
}

.nav-item:hover,
.nav-item.active {
  background: var(--bg-muted);
  color: var(--primary);
}

.nav-item i {
  font-size: 20px;
  flex-shrink: 0;
}

.nav-item-label {
  display: none;
  font-size: 14px;
  white-space: nowrap;
}

.left-nav.expanded .nav-item-label {
  display: block;
}

.nav-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--error);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.left-nav.expanded .nav-badge {
  position: static;
  margin-right: auto;
}

.nav-divider {
  width: 80%;
  height: 1px;
  background: var(--border-color);
  margin: 8px 0;
}

.nav-toggle-btn {
  margin-top: auto;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--text-muted);
  cursor: pointer;
}

.app-body {
  margin-right: var(--nav-w);
  display: flex;
  min-height: 100vh;
  transition: margin-right 0.3s ease;
}

.app-body.nav-expanded {
  margin-right: 220px;
}

.feed-col {
  flex: 1;
  max-width: 720px;
  min-width: 0;
  padding: 24px 16px 88px;
  margin: 0 auto;
}

.feed-col__hero {
  margin-bottom: 16px;
  padding: 0 4px;
}

.feed-col__hero-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

.feed-col__hero-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stories-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.stories-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.stories-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.story-item {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-primary);
  flex-shrink: 0;
}

.story-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 3px;
  background: var(--story-ring);
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-ring.add-story {
  background: var(--bg-muted);
}

.story-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
}

.story-name {
  font-size: 12px;
  color: var(--text-secondary);
}

.story-name.you {
  color: var(--primary);
}

.explore-grid,
.explore-grid--feed {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  gap: 24px !important;
  width: 100% !important;
  max-width: 680px !important;
  margin: 0 auto !important;
}

/* ==========================================================================
   🏺 BOGHCHEH - POST CARD DESIGN SYSTEM (فید شبکه اجتماعی)
   ========================================================================== */
.explore-post {
  display: flex;
  flex-direction: column;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, rgba(139, 94, 60, 0.12));
  border-radius: var(--radius-md, 16px);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  width: 100%;
  margin-bottom: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 🏷️ Header: Vendor Profile & Meta */
.explore-post__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card, #ffffff);
  border-bottom: 1px solid rgba(139, 94, 60, 0.06);
  min-height: 60px;
  box-sizing: border-box;
}

.explore-post__vendor-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}

.explore-post__avatar-wrapper {
  width: 44px;
  height: 44px;
  min-width: 44px;
  max-width: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.explore-post__avatar-wrapper.has-story {
  background: linear-gradient(135deg, #c46a2b, #8B5E3C, #D4A373);
  padding: 2px;
}

.explore-post__avatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  border: 2px solid var(--bg-card, #ffffff);
  box-sizing: border-box;
}

.explore-post__vendor-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  text-align: right;
  flex: 1;
}

.explore-post__vendor-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary, #2b1810);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.explore-post__vendor-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted, #777);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.explore-post__more-options {
  background: none;
  border: none;
  color: var(--text-secondary, #777);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.explore-post__more-options:hover {
  background-color: var(--bg-muted, rgba(139, 94, 60, 0.08));
  color: var(--primary, #8B5E3C);
}

/* 🖼️ Media Wrapper & Badges */
.explore-post__media-wrapper {
  position: relative;
  background: #111111;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.explore-post__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 72vh;
}

.explore-post__video {
  width: 100%;
  max-height: 72vh;
}

.explore-post__badge-category {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(35, 20, 12, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.2px;
}

/* 💬 Content Body & Action Buttons */
.explore-post__content {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card, #ffffff);
}

.explore-post__actions-bar {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 14px;
  padding-bottom: 2px;
}

.explore-post__action-btn {
  background: none;
  border: none;
  padding: 4px;
  font-size: 1.45rem;
  color: var(--text-primary, #2b1810);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s;
  border-radius: 50%;
}

.explore-post__action-btn:hover {
  transform: scale(1.18);
  color: var(--primary, #8B5E3C);
}

.explore-post__action-btn:active {
  transform: scale(0.92);
}

.explore-post__action-btn--save {
  margin-inline-start: auto; /* سمت مخالف در RTL و LTR */
}

.explore-post__action-btn--save.is-saved {
  color: var(--primary, #8B5E3C);
}

.explore-post__action-btn.is-liked i {
  color: #ff334b !important;
  animation: heartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.explore-post__likes-info {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary, #2b1810);
  margin-top: -2px;
}

/* 🛍️ Commerce Price & Cart Box */
.explore-post__commerce-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(139, 94, 60, 0.07), rgba(212, 163, 115, 0.12));
  border: 1px solid rgba(139, 94, 60, 0.18);
  border-radius: var(--radius-sm, 10px);
  padding: 10px 14px;
  margin: 2px 0;
}

.explore-post__price-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary, #8B5E3C);
}

.explore-post__cart-btn {
  background: var(--primary, #8B5E3C);
  color: #ffffff;
  border: none;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(139, 94, 60, 0.25);
  transition: all 0.2s ease;
}

.explore-post__cart-btn:hover {
  background: #724c30;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(139, 94, 60, 0.35);
}

.explore-post__cart-btn:active {
  transform: translateY(0);
}

/* 📝 Caption */
.explore-post__caption {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-primary, #333333);
  margin: 0;
  word-break: break-word;
}

.explore-post__caption-author {
  font-weight: 800;
  color: var(--text-primary, #2b1810);
  margin-inline-end: 6px;
  cursor: pointer;
}

.explore-post__caption-author:hover {
  color: var(--primary, #8B5E3C);
}

/* 💬 Comments */
.explore-post__view-comments {
  background: none;
  border: none;
  padding: 0;
  text-align: right;
  font-size: 0.82rem;
  color: var(--text-muted, #888888);
  cursor: pointer;
  margin-top: -2px;
  transition: color 0.2s;
  width: fit-content;
}

.explore-post__view-comments:hover {
  color: var(--primary, #8B5E3C);
}

/* ✍️ Quick Comment Form */
.explore-post__comment-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color, rgba(139, 94, 60, 0.1));
}

.explore-post__comment-input {
  flex: 1;
  border: 1px solid var(--border-color, rgba(139, 94, 60, 0.2));
  border-radius: 20px;
  padding: 9px 16px;
  font-size: 0.85rem;
  background: var(--bg-main, #faf7f2);
  color: var(--text-primary, #2b1810);
  outline: none;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.explore-post__comment-input:focus {
  border-color: var(--primary, #8B5E3C);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.12);
}

.explore-post__comment-submit {
  border: none;
  background: var(--primary, #8B5E3C);
  color: #ffffff;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.explore-post__comment-submit:hover {
  background: #724c30;
  transform: translateY(-1px);
}

.explore-post__comment-submit:active {
  transform: translateY(0);
}

/* 🌙 Dark Theme Post Styles */
body.theme-dark .explore-post {
  background: #1e1e1c;
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .explore-post__header,
body.theme-dark .explore-post__content {
  background: #1e1e1c;
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .explore-post__avatar {
  border-color: #1e1e1c;
}

body.theme-dark .explore-post__vendor-title,
body.theme-dark .explore-post__caption,
body.theme-dark .explore-post__caption-author,
body.theme-dark .explore-post__likes-info,
body.theme-dark .explore-post__action-btn {
  color: #f1f1f1;
}

body.theme-dark .explore-post__vendor-subtitle,
body.theme-dark .explore-post__view-comments,
body.theme-dark .explore-post__more-options {
  color: #aaa;
}

body.theme-dark .explore-post__commerce-box {
  background: rgba(139, 94, 60, 0.18);
  border-color: rgba(139, 94, 60, 0.35);
}

body.theme-dark .explore-post__comment-input {
  background: #282826;
  border-color: rgba(255, 255, 255, 0.15);
  color: #f1f1f1;
}

body.theme-dark .explore-post__comment-input:focus {
  background: #2f2f2c;
  border-color: var(--primary, #8B5E3C);
}

body.theme-dark .explore-post__comment-form {
  border-top-color: rgba(255, 255, 255, 0.08);
}


.right-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  padding: 24px 16px 88px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-sidebar-card,
.sidebar-card,
.sidebar-footer {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.profile-sidebar-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.profile-sidebar-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--story-ring);
  padding: 2.5px;
}

.profile-sidebar-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2.5px solid var(--bg-card);
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary);
}

.profile-sidebar-info {
  flex: 1;
  min-width: 0;
}

.profile-sidebar-name {
  font-size: 14px;
  font-weight: 700;
}

.profile-sidebar-handle {
  font-size: 12px;
  color: var(--text-muted);
}

.profile-sidebar-switch {
  border: none;
  background: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.sidebar-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}

.sidebar-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
}

.sidebar-see-all {
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 12px;
}

.user-row-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-row-avatar:hover {
  transform: scale(1.08);
}

.user-row-info {
  flex: 1;
  min-width: 0;
}

.user-row-name {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-row-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.user-row-action {
  border: none;
  background: none;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.user-row-action.is-following {
  color: var(--text-muted);
}

.trending-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-sm, 8px);
  transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.trending-tag:hover {
  background-color: var(--bg-muted, rgba(142, 90, 56, 0.07));
  transform: translateX(-3px);
}

.trending-rank {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  width: 16px;
  text-align: center;
}

.trending-tag-info {
  flex: 1;
}

.trending-tag-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  transition: color 0.15s ease;
}

.trending-tag:hover .trending-tag-name {
  color: var(--primary-hover, var(--primary));
}

.trending-tag-count {
  font-size: 12px;
  color: var(--text-muted);
}

.trending-tag-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.sidebar-footer {
  padding: 14px 16px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.8;
}

.sidebar-footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 8px;
}

.top-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  padding: 0 16px;
  z-index: 200;
}

.top-bar-logo {
  flex: 1;
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
}

.top-bar-actions {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: var(--border-color);
  color: var(--primary);
}

.toast-container {
  position: fixed;
  bottom: 95px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10000;
  pointer-events: none;
}

.toast {
  background: linear-gradient(135deg, #4A2E1B 0%, #2E180D 100%);
  color: #FFF8F0;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(196, 106, 43, 0.5);
  box-shadow: 0 10px 28px rgba(36, 18, 10, 0.42), 0 0 18px rgba(196, 106, 43, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  direction: rtl;
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 1100px) {
  .right-sidebar {
    display: none;
  }
  .feed-col {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .left-nav {
    display: none;
  }
  .top-bar {
    display: flex;
  }
  .app-body {
    margin-right: 0;
    padding-top: 56px;
    padding-bottom: 95px;
  }
  .feed-col {
    padding: 12px 8px 95px;
  }
}

.verified-badge {
  color: var(--primary);
}

/* Double-tap heart animation */
.explore-post__double-tap-heart {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 220ms ease,
    transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
}
.explore-post__double-tap-heart.is-animating {
  opacity: 1;
  transform: scale(1);
}
.explore-post__double-tap-heart i {
  font-size: 68px;
  color: rgba(255, 60, 80, 0.95);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Liked state */
.js-like-btn.is-liked i {
  color: #ff4d6d;
}

/* Post menu popup */
.post-menu {
  position: fixed;
  z-index: 1200;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: none;
}
.post-menu[aria-hidden="false"] {
  display: block;
}
.post-menu__inner {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.post-menu__item {
  border: none;
  background: none;
  padding: 10px 12px;
  text-align: right;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-primary);
}
.post-menu__item:hover {
  background: var(--bg-muted);
}
.post-menu__danger {
  color: var(--error);
}
.post-menu__divider {
  height: 1px;
  background: var(--border-color);
  margin: 6px 0;
  border-radius: 2px;
}

/* Modal placeholder for boost */
.modal-placeholder {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1250;
}
.modal-placeholder[aria-hidden="false"] {
  display: flex;
}
.modal-placeholder__inner {
  width: 92%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 18px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
.modal-placeholder__actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

/* Improve image responsiveness and card spacing */
.explore-post__media-wrapper {
  position: relative;
  background: #000;
}
.explore-post__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 76vh;
}

@media (min-width: 1100px) {
  .feed-col {
    max-width: 920px;
  }
}

/* Auto-scroll target highlight pulse */
.highlight-post {
  animation: postHighlightGlow 2.5s ease-in-out forwards;
  outline: 3px solid var(--primary, #8B5E3C) !important;
  outline-offset: 4px;
  box-shadow: 0 8px 32px rgba(139, 94, 60, 0.35) !important;
  border-radius: 14px;
  transition: all 0.3s ease;
}

@keyframes postHighlightGlow {
  0% {
    transform: scale(0.985);
    box-shadow: 0 0 0 0 rgba(139, 94, 60, 0.7);
  }
  25% {
    transform: scale(1.015);
    box-shadow: 0 0 35px 8px rgba(139, 94, 60, 0.5);
  }
  60% {
    transform: scale(1.005);
    box-shadow: 0 0 20px 4px rgba(139, 94, 60, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }
}

/* ==========================================================================
   Close Button Position Fix (جلوگیری از هم‌پوشانی با دکمه فالو در راست‌چین)
   ========================================================================== */
.explore-desktop-modal__close-btn {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  left: auto !important;
  z-index: 30 !important;
}

/* ======================================================
   STORY VIEWER & TRAY STYLES (FEED PAGE)
====================================================== */
.story-item.viewed .story-ring {
  background: var(--border-color) !important;
}

.explore-post__avatar-wrapper.has-story {
  position: relative;
  padding: 2.5px;
  border-radius: 50%;
  background: var(--story-ring);
  display: inline-flex;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.explore-post__avatar-wrapper.has-story:hover {
  transform: scale(1.06);
}

.explore-post__avatar-wrapper.has-story .explore-post__avatar {
  border: 2px solid var(--bg-card);
}

.explore-post__avatar-wrapper.has-story.viewed {
  background: var(--border-color) !important;
}

.story-viewer,
.story-viewer * {
  box-sizing: border-box;
}

.story-viewer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  background: #000;
  direction: rtl;
  overflow: hidden;
}

.story-viewer.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1;
}

.story-bg-blur {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(40px) brightness(0.25) saturate(1.3);
  z-index: 1;
  transition: background-image 0.5s ease-in-out;
  pointer-events: none;
}

.story-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 2;
  background: #000;
}

@media (min-width: 768px) {
  .story-content {
    max-width: 430px;
    height: calc(100vh - 40px);
    margin: 20px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
}

.story-progress-bars {
  display: flex;
  gap: 5px;
  padding: 16px 16px 8px;
  z-index: 20;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.story-progress-item {
  flex: 1;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  overflow: hidden;
}

.story-progress-inner {
  height: 100%;
  width: 0%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
  transition: width 0.1s linear;
}

.story-header {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: #fff;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.story-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.story-header-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 1.5px;
  background: var(--story-ring);
}

.story-header-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #000;
}

.story-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.story-header-name {
  font-size: 13.5px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.story-header-time {
  font-size: 11px;
  opacity: 0.85;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.story-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 25;
  pointer-events: auto;
}

.story-header-play-pause,
.story-close {
  position: relative;
  z-index: 30;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.story-close {
  font-size: 18px;
  line-height: 1;
}

.story-header-play-pause:hover,
.story-close:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

.story-media-wrapper {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.story-tap-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  z-index: 6;
  cursor: pointer;
}

.story-tap-prev {
  right: 0;
}

.story-tap-next {
  left: 0;
}

.story-media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-media img,
.story-media video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: none;
}

.story-viewer.show img,
.story-viewer.show video {
  display: block;
}

.story-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 32px;
  z-index: 7;
  pointer-events: none;
}

.story-caption-overlay {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(15, 15, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 10px 14px;
  color: #fff;
  z-index: 8;
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
  direction: rtl;
  max-height: 90px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: bottom 0.2s ease;
}

.story-caption-overlay.has-pill-below {
  bottom: 84px;
}

.story-caption-overlay p {
  margin: 0;
  white-space: pre-line;
  word-break: break-word;
}

.story-product-pill {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(18, 18, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 8;
  direction: rtl;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, background 0.2s ease;
}

.story-product-pill:hover {
  background: rgba(28, 28, 28, 0.98);
  transform: translateY(-2px);
}

.story-product-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.story-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-product-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.story-product-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-product-pricing {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-product-price {
  font-size: 12px;
  font-weight: 600;
  color: #e0a364;
}

.story-product-badge {
  background: linear-gradient(135deg, #e53935, #d81b60);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
}

.story-product-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: #fff;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(139, 94, 60, 0.35);
}

.story-product-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.04);
}

.story-footer {
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  width: 100%;
  box-sizing: border-box;
}

.story-reply-wrapper {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.story-reply-input {
  width: 100%;
  height: 44px;
  padding: 0 46px 0 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
  font-size: 13.5px;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
  text-align: right;
  box-sizing: border-box;
}

.story-reply-input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.story-reply-input:focus {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.story-reply-btn {
  position: absolute;
  left: 5px;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: var(--primary, #8b5e3c);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.6);
  flex-shrink: 0;
}

.story-reply-wrapper.has-text .story-reply-btn {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.story-reply-btn:hover {
  filter: brightness(1.15);
  transform: scale(1.08);
}

.story-share-direct-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
}

.story-share-direct-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.story-follow {
  height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  border: none;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(139, 94, 60, 0.3);
  flex-shrink: 0;
  white-space: nowrap;
}

.story-follow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 94, 60, 0.5);
  filter: brightness(1.1);
}

/* ==========================================================================
   Desktop Modal Comment Capsule & Commerce Bar
   ========================================================================== */
.explore-desktop-modal__comment-form {
  margin-top: 10px;
  width: 100%;
}

.explore-desktop-modal__comment-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-surface, #f5f4f0);
  border: 1px solid var(--border-color, rgba(139, 94, 60, 0.2));
  border-radius: 24px;
  padding: 4px 6px 4px 14px;
  transition: all 0.25s ease;
  width: 100%;
  box-sizing: border-box;
}

body.theme-dark .explore-desktop-modal__comment-input-wrap {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.explore-desktop-modal__comment-input-wrap:focus-within {
  border-color: var(--primary, #8b5e3c);
  box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.15);
  background: #ffffff;
}

body.theme-dark .explore-desktop-modal__comment-input-wrap:focus-within {
  background: rgba(255, 255, 255, 0.1);
  border-color: #d4a373;
  box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.18);
}

.explore-desktop-modal__comment-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text-primary, #1e1e1c);
  padding: 6px 4px;
  text-align: right;
}

body.theme-dark .explore-desktop-modal__comment-input {
  color: #fff;
}

.explore-desktop-modal__comment-input::placeholder {
  color: var(--text-muted, #999);
  font-size: 0.84rem;
}

.explore-desktop-modal__comment-submit {
  background: var(--primary, #8b5e3c);
  border: none;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(139, 94, 60, 0.25);
  flex-shrink: 0;
}

.explore-desktop-modal__comment-submit:hover {
  background: var(--secondary, #a36d44);
  transform: scale(1.03);
}

.explore-desktop-modal__comment-submit:active {
  transform: scale(0.96);
}

body.theme-dark .explore-desktop-modal__comment-submit {
  background: #d4a373;
  color: #1a1a1a;
}

/* 🎯 افکت فوکوس و انیمیشن هنگام هدایت از صفحه اصلی */
.explore-post.post-focus-highlight {
  box-shadow: 0 0 0 3px var(--secondary, #d97706), 0 12px 30px -5px rgba(217, 119, 6, 0.3) !important;
  border-color: var(--secondary, #d97706) !important;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  animation: postPulseHighlight 2.5s ease-out;
}

@keyframes postPulseHighlight {
  0% {
    transform: scale(0.99);
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7);
  }
  30% {
    transform: scale(1.01);
    box-shadow: 0 0 0 6px rgba(217, 119, 6, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0);
  }
}

.btn-focus-pulse {
  animation: btnPulse 1.2s infinite ease-in-out;
  color: var(--secondary, #d97706) !important;
}

@keyframes btnPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   Feed Empty State (وضعیت خالی فید شبکه‌اجتماعی)
   ========================================================================== */
.explore-feed-empty {
  text-align: center;
  padding: 64px 24px;
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--border-color, #E8DFD8);
  border-radius: 20px;
  margin: 16px 0 32px;
  box-shadow: 0 4px 20px rgba(139, 94, 60, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  width: 100%;
}

.explore-feed-empty__icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(184, 115, 51, 0.12), rgba(139, 94, 60, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary, #B87333);
  font-size: 32px;
  box-shadow: 0 4px 14px rgba(184, 115, 51, 0.15);
}

.explore-feed-empty__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary, #2A2421);
  margin-bottom: 10px;
  font-family: inherit;
}

.explore-feed-empty__desc {
  font-size: 0.95rem;
  color: var(--text-secondary, #8A6D58);
  max-width: 440px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.explore-feed-empty__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-feed-empty-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--secondary, #D9822B), var(--primary, #B87333));
  color: #FFFFFF !important;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(184, 115, 51, 0.28);
  transition: all 0.2s ease;
}

.btn-feed-empty-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(184, 115, 51, 0.38);
  color: #FFFFFF !important;
}

.btn-feed-empty-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--bg-muted, #F9F6F0);
  color: var(--text-primary, #4A3E37) !important;
  border: 1px solid var(--border-color, #E8DFD8);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-feed-empty-secondary:hover {
  background: #EFE9E2;
  color: var(--primary, #B87333) !important;
}




