/* ==========================================================================
   🏺 BOGHCHEH DESIGN SYSTEM - DESKTOP SIDEBAR COMPONENT
   Ultra-Modern, Glassmorphic, Aesthetic Navigation Sidebar
   ========================================================================== */
@import url("instagram-uploader.8eedb4a87aeb.css");

.desktop-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 70px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-card, #ffffff);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-left: 1px solid var(--border-color, rgba(139, 94, 60, 0.12));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0 12px 0;
  z-index: 1050;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.03);
  transition: background-color 0.3s ease, border-color 0.3s ease;
  user-select: none;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.desktop-sidebar::-webkit-scrollbar {
  display: none;
}

/* 🎨 Logo Branding */
.desktop-sidebar__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 38px;
  padding: 4px 6px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: rgba(139, 94, 60, 0.05);
  border: 1px solid rgba(139, 94, 60, 0.12);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
}

.desktop-sidebar__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(139, 94, 60, 0.12));
  transition: transform 0.25s ease;
}

.desktop-sidebar__logo:hover {
  transform: scale(1.08);
  background: rgba(139, 94, 60, 0.1);
  border-color: rgba(139, 94, 60, 0.3);
  box-shadow: 0 4px 14px rgba(139, 94, 60, 0.16);
}

.desktop-sidebar__logo:hover .desktop-sidebar__logo-img {
  transform: scale(1.05);
}

body.theme-dark .desktop-sidebar__logo,
html[data-theme="dark"] .desktop-sidebar__logo {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

body.theme-dark .desktop-sidebar__logo:hover,
html[data-theme="dark"] .desktop-sidebar__logo:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* 🧭 Navigation Section */
.desktop-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  align-items: center;
  flex: 1;
  overflow: visible;
  padding: 2px 0;
}

/* 🔘 Navigation Item */
.desktop-sidebar__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text-secondary, #6c757d);
  font-size: 1.25rem;
  border-radius: 12px;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
}

.desktop-sidebar__item:hover {
  background-color: var(--bg-muted, rgba(139, 94, 60, 0.08));
  color: var(--primary, #8B5E3C);
  transform: translateY(-2px) scale(1.05);
  z-index: 20;
}

/* 🌟 Active State Indicator */
.desktop-sidebar__item.active {
  color: var(--primary, #8B5E3C);
  background: linear-gradient(135deg, rgba(139, 94, 60, 0.14), rgba(212, 163, 115, 0.18));
  box-shadow: 0 4px 10px rgba(139, 94, 60, 0.12);
  font-weight: 800;
}

.desktop-sidebar__item.active::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  width: 3.5px;
  height: 20px;
  background: var(--primary, #8B5E3C);
  border-radius: 4px 0 0 4px;
  box-shadow: 0 0 8px rgba(139, 94, 60, 0.4);
}

/* 🏷️ Tooltip Bubble */
.desktop-sidebar__item .sidebar-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: rgba(30, 20, 15, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
              visibility 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 9999;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.desktop-sidebar__item .sidebar-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(30, 20, 15, 0.96);
}

.desktop-sidebar__item:hover .sidebar-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* 🔴 Glowing Notification Badges */
.desktop-sidebar__badge-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.desktop-sidebar__badge {
  position: absolute;
  top: -2px;
  right: -3px;
  width: 8px;
  height: 8px;
  background-color: var(--error, #e63946);
  border-radius: 50%;
  border: 2px solid var(--bg-card, #ffffff);
  box-shadow: 0 0 6px rgba(230, 57, 70, 0.5);
  animation: sidebarBadgePulse 2s infinite;
}

@keyframes sidebarBadgePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.85;
  }
}

/* 🛒 Shopping Cart Badge & Counter */
.desktop-sidebar__cart-badge.cart-badge-count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--error, #e63946), #d90429);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  box-shadow: 0 2px 6px rgba(230, 57, 70, 0.45);
  border: 2px solid var(--bg-card, #ffffff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-sizing: border-box;
  font-family: inherit;
  z-index: 2;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.desktop-sidebar__item:hover .desktop-sidebar__cart-badge {
  transform: scale(1.12);
  border-color: var(--bg-muted, #f8f9fa);
}

.desktop-sidebar__cart-badge.cart-badge-count[style*="inline-block"],
.desktop-sidebar__cart-badge.cart-badge-count[style*="display: block"] {
  display: inline-flex !important;
}

/* 👤 User Avatar Item */
.desktop-sidebar__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(139, 94, 60, 0.2);
  transition: all 0.22s ease;
}

.desktop-sidebar__item:hover .desktop-sidebar__avatar,
.desktop-sidebar__item.active .desktop-sidebar__avatar {
  border-color: var(--primary, #8B5E3C);
  box-shadow: 0 0 0 2px rgba(139, 94, 60, 0.2);
  transform: scale(1.08);
}

/* ⚙️ Bottom Actions Section */
.desktop-sidebar__bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  align-items: center;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color, rgba(139, 94, 60, 0.15));
  flex-shrink: 0;
}

/* ==========================================================================
   📱 Responsive & Layout Isolation
   ========================================================================== */
@media (max-width: 767px) {
  .desktop-sidebar {
    display: none !important;
  }
}

@media (min-width: 768px) {
  body.has-desktop-sidebar,
  body.page-explore,
  body.page-feed,
  body.page-reels,
  body.page-direct,
  body.page-profile,
  body.page-settings {
    padding-right: 70px;
  }
}

@media (min-width: 768px) and (max-height: 780px) {
  .desktop-sidebar {
    padding: 10px 0 8px 0;
  }
  .desktop-sidebar__logo {
    height: 36px;
    margin-bottom: 8px;
  }
  .desktop-sidebar__nav {
    gap: 6px;
  }
  .desktop-sidebar__item {
    width: 42px;
    height: 42px;
    font-size: 1.18rem;
    border-radius: 11px;
  }
  .desktop-sidebar__item.active::after {
    right: -14px;
    height: 18px;
  }
  .desktop-sidebar__avatar {
    width: 27px;
    height: 27px;
  }
  .desktop-sidebar__bottom {
    padding-top: 8px;
    gap: 6px;
  }
}

@media (min-width: 768px) and (max-height: 660px) {
  .desktop-sidebar {
    padding: 6px 0 6px 0;
  }
  .desktop-sidebar__logo {
    height: 32px;
    margin-bottom: 6px;
  }
  .desktop-sidebar__nav {
    gap: 4px;
  }
  .desktop-sidebar__item {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    border-radius: 9px;
  }
  .desktop-sidebar__item.active::after {
    right: -16px;
    height: 16px;
  }
  .desktop-sidebar__avatar {
    width: 24px;
    height: 24px;
  }
  .desktop-sidebar__bottom {
    padding-top: 6px;
    gap: 4px;
  }
}

/* ==========================================================================
   🏺 BOGHCHEH - SIDE DRAWERS (جستجو و اعلان‌ها)
   ========================================================================== */
.side-drawer {
  position: fixed;
  top: 0;
  right: 70px;
  width: 397px;
  height: 100vh;
  height: 100dvh;
  background-color: var(--bg-card, rgba(255, 255, 255, 0.96));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-color, rgba(139, 94, 60, 0.15));
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.06);
  z-index: 1040;
  transform: translateX(calc(100% + 80px));
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
  display: flex;
  flex-direction: column;
}

body.theme-dark .side-drawer,
html[data-theme="dark"] .side-drawer {
  background-color: rgba(30, 30, 28, 0.96);
  border-left-color: rgba(255, 255, 255, 0.1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

body.theme-earthy .side-drawer {
  background-color: rgba(92, 58, 33, 0.96);
  border-left-color: rgba(212, 163, 115, 0.2);
}

.side-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.side-drawer__header {
  padding: 22px 20px;
  border-bottom: 1px solid var(--border-color, rgba(139, 94, 60, 0.12));
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.side-drawer__header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary, #2b1810);
}

body.theme-dark .side-drawer__header h3 {
  color: #f1f1f1;
}

.side-drawer__header button {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-secondary, #6c757d);
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
}

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

.side-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.side-drawer__search-input-wrap {
  position: relative;
  margin-bottom: 24px;
}

.side-drawer__search-input-wrap input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border-color, rgba(139, 94, 60, 0.2));
  border-radius: var(--radius-sm, 10px);
  background-color: var(--bg-main, #f9f6f0);
  padding: 0 42px 0 14px;
  outline: none;
  font-size: 0.92rem;
  color: var(--text-primary, #2b1810);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

body.theme-dark .side-drawer__search-input-wrap input {
  background-color: #262624;
  color: #f1f1f1;
  border-color: rgba(255, 255, 255, 0.15);
}

.side-drawer__search-input-wrap input:focus {
  border-color: var(--primary, #8B5E3C);
  box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.15);
}

.side-drawer__search-input-wrap i {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--text-muted, #999);
  pointer-events: none;
}

.side-drawer__section h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--text-primary, #2b1810);
}

body.theme-dark .side-drawer__section h4 {
  color: #ddd;
}

.recent-searches {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-searches li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8px;
  font-size: 0.88rem;
  color: var(--text-secondary, #666);
  border-radius: 8px;
  transition: background-color 0.2s;
}

.recent-searches li:hover {
  background-color: var(--bg-muted, rgba(139, 94, 60, 0.06));
}

.recent-searches .clear-btn {
  background: none;
  border: none;
  color: var(--text-muted, #999);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.2s;
}

.recent-searches .clear-btn:hover {
  color: var(--error, #e63946);
}

/* Notifications Items */
.notif-group h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted, #888);
  margin: 0 0 12px 0;
  border-bottom: 1px solid var(--border-color, rgba(139, 94, 60, 0.12));
  padding-bottom: 6px;
}

.notif-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color, rgba(221, 211, 199, 0.4));
}

.notif-avatar {
  font-size: 1.8rem;
  color: var(--primary, #8B5E3C);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-text {
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-primary, #2b1810);
}

body.theme-dark .notif-text {
  color: #ddd;
}

.notif-time {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted, #999);
  margin-top: 3px;
}

.notif-media img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-color, rgba(139, 94, 60, 0.15));
  flex-shrink: 0;
}

.notif-item .follow-btn,
.notif-item .btn-follow-back {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--border-color, rgba(139, 94, 60, 0.2));
  background: var(--bg-main, #f9f6f0);
  color: var(--text-primary, #2b1810);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.notif-item .follow-btn:hover,
.notif-item .btn-follow-back:hover {
  background: var(--primary, #8B5E3C);
  color: #ffffff;
  border-color: var(--primary, #8B5E3C);
}

.notif-item .follow-btn.is-following,
.notif-item .btn-follow-back.is-following {
  background: rgba(139, 94, 60, 0.12);
  color: var(--primary, #8B5E3C);
  border-color: rgba(139, 94, 60, 0.3);
}

@media (max-width: 991px) {
  .side-drawer {
    width: 320px;
  }
}

@media (max-width: 767px) {
  .side-drawer {
    right: 0;
    width: 100%;
    z-index: 1050;
    transform: translateX(100%);
  }
  .side-drawer.is-open {
    transform: translateX(0);
  }
}

/* ==========================================================================
   🎨 THEME POPOVER
   ========================================================================== */
.theme-popover {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.theme-popover.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.theme-popover__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.theme-popover__content {
  position: relative;
  background-color: var(--bg-card, #ffffff);
  width: 90%;
  max-width: 380px;
  border-radius: var(--radius-md, 14px);
  padding: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border-color, rgba(139, 94, 60, 0.15));
  z-index: 10;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.theme-dark .theme-popover__content {
  background-color: #1e1e1c;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f1f1;
}

.theme-popover.is-open .theme-popover__content {
  transform: scale(1);
}

.theme-popover h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 18px 0;
  color: var(--text-primary, #2b1810);
  text-align: center;
}

body.theme-dark .theme-popover h4 {
  color: #f1f1f1;
}

.theme-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.theme-opt-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm, 10px);
  background-color: var(--bg-main, #f9f6f0);
  border: 1px solid var(--border-color, rgba(139, 94, 60, 0.15));
  color: var(--text-secondary, #555);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: right;
  width: 100%;
  box-sizing: border-box;
}

body.theme-dark .theme-opt-btn {
  background-color: #262624;
  border-color: rgba(255, 255, 255, 0.1);
  color: #ccc;
}

.theme-opt-btn:hover {
  border-color: var(--primary, #8B5E3C);
  background-color: rgba(139, 94, 60, 0.05);
}

.theme-opt-btn.active {
  background-color: rgba(139, 94, 60, 0.12);
  border-color: var(--primary, #8B5E3C);
  color: var(--primary, #8B5E3C);
  font-weight: 700;
}

.color-preview {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

/* ==========================================================================
   ➕ CREATE POST MODAL
   ========================================================================== */
.create-post-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.create-post-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.create-post-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.create-post-modal__content {
  position: relative;
  background-color: var(--bg-card, #ffffff);
  width: 92%;
  max-width: 680px;
  min-height: 480px;
  border-radius: var(--radius-md, 14px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border-color, rgba(139, 94, 60, 0.15));
  z-index: 10;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.theme-dark .create-post-modal__content {
  background-color: #1e1e1c;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f1f1;
}

.create-post-modal.is-open .create-post-modal__content {
  transform: translateY(0) scale(1);
}

.create-post-modal__header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-color, rgba(139, 94, 60, 0.12));
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.create-post-modal__header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary, #2b1810);
}

body.theme-dark .create-post-modal__header h3 {
  color: #f1f1f1;
}

.create-post-modal__header button {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-secondary, #6c757d);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
}

.create-post-modal__header button:hover {
  background-color: var(--bg-muted, rgba(139, 94, 60, 0.08));
  color: var(--primary, #8B5E3C);
}

.create-post-modal__body {
  display: none;
  flex: 1;
  padding: 24px;
}

.create-post-modal__body.active {
  display: flex;
  flex-direction: column;
}

/* Step 1: Upload Dropzone */
.upload-dropzone {
  flex: 1;
  border: 2px dashed var(--border-color, rgba(139, 94, 60, 0.25));
  border-radius: var(--radius-md, 12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  transition: all 0.22s ease;
  cursor: pointer;
  background-color: var(--bg-main, #faf7f2);
}

body.theme-dark .upload-dropzone {
  background-color: #242422;
  border-color: rgba(255, 255, 255, 0.15);
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--primary, #8B5E3C);
  background: rgba(139, 94, 60, 0.06);
  transform: scale(1.005);
}

.upload-icon {
  font-size: 3.8rem;
  color: var(--primary, #8B5E3C);
  opacity: 0.7;
  margin-bottom: 16px;
  transition: transform 0.2s, opacity 0.2s;
}

.upload-dropzone:hover .upload-icon {
  transform: translateY(-4px);
  opacity: 1;
}

.upload-dropzone p {
  font-size: 0.95rem;
  color: var(--text-secondary, #666);
  margin-bottom: 20px;
  line-height: 1.6;
}

body.theme-dark .upload-dropzone p {
  color: #bbb;
}

.upload-btn {
  background-color: var(--primary, #8B5E3C);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: var(--radius-sm, 8px);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-btn:hover {
  background-color: #724c30;
  box-shadow: 0 4px 12px rgba(139, 94, 60, 0.3);
}

/* Step 2: Editor Form Layout */
.post-editor-layout {
  display: flex;
  gap: 20px;
  height: 100%;
}

@media (max-width: 575px) {
  .post-editor-layout {
    flex-direction: column;
  }
}

.editor-media-preview {
  flex: 1;
  background-color: var(--bg-muted, #eee);
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  max-height: 320px;
}

.editor-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editor-details-form {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  max-height: 400px;
  padding-left: 6px;
}

.editor-details-form textarea {
  width: 100%;
  border: 1px solid var(--border-color, rgba(139, 94, 60, 0.2));
  border-radius: var(--radius-sm, 8px);
  background-color: var(--bg-main, #faf7f2);
  padding: 10px;
  outline: none;
  font-size: 0.88rem;
  resize: none;
  font-family: inherit;
  box-sizing: border-box;
}

.editor-details-form select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border-color, rgba(139, 94, 60, 0.2));
  border-radius: var(--radius-sm, 8px);
  background-color: var(--bg-main, #faf7f2);
  padding: 0 10px;
  outline: none;
  box-sizing: border-box;
}

.inline-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
}

.product-fields {
  background-color: var(--bg-main, #faf7f2);
  border: 1px solid var(--border-color, rgba(139, 94, 60, 0.15));
  border-radius: var(--radius-sm, 8px);
  padding: 14px;
}

.form-row {
  display: flex;
  gap: 10px;
}

.product-fields input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--border-color, rgba(139, 94, 60, 0.2));
  border-radius: var(--radius-sm, 8px);
  background-color: var(--bg-card, #ffffff);
  padding: 0 10px;
  outline: none;
  box-sizing: border-box;
}

.share-submit-btn {
  background: linear-gradient(135deg, var(--primary, #8B5E3C), var(--secondary, #D4A373));
  color: #ffffff;
  padding: 12px;
  border-radius: var(--radius-sm, 8px);
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
  transition: opacity 0.2s;
}

.share-submit-btn:hover {
  opacity: 0.92;
}

/* Step 3: Success Screen */
.success-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.success-icon-wrap {
  font-size: 5rem;
  color: var(--success, #2a9d8f);
  margin-bottom: 20px;
  animation: scalePop 0.4s ease;
}

@keyframes scalePop {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.success-screen h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary, #2b1810);
  margin-bottom: 8px;
}

.success-screen p {
  color: var(--text-secondary, #666);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.success-close-btn {
  background-color: var(--bg-muted, rgba(139, 94, 60, 0.12));
  color: var(--primary, #8B5E3C);
  padding: 10px 24px;
  border-radius: var(--radius-sm, 8px);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.success-close-btn:hover {
  background-color: var(--primary, #8B5E3C);
  color: #ffffff;
}

