/* Embed layout overrides for social feed shortcode */
.social-feed-embed {
  position: relative;
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--bg-primary);
}

.social-feed-embed {
  --bg-primary: #fffbfc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #fff5f7;
  --bg-hover: #ffe8ed;
  --border-color: #f8d7dd;
  --text-primary: #4a2c32;
  --text-secondary: #8b6a70;
  --text-link: #c62f5a;
  --primary: #e91e63;
  --primary-light: #f48fb1;
  --primary-dark: #c2185b;
  --heart-red: #ff1744;
  --accent-rose: #e91e63;
  --accent-pink: #f06292;
  --accent-coral: #ff6b6b;
  --accent-gold: #ffd700;
  --story-gradient: linear-gradient(135deg, #ff6b6b, #e91e63, #c2185b, #ad1457);
  --floral-gradient: linear-gradient(135deg, #fff5f7 0%, #ffe0e6 50%, #ffd1dc 100%);
  --rose-gradient: linear-gradient(135deg, #e91e63, #f06292, #ff8a80);
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow-soft: 0 2px 20px rgba(233, 30, 99, 0.1);
  --shadow-card: 0 4px 30px rgba(233, 30, 99, 0.08);
}

.social-feed-embed * {
  box-sizing: border-box;
}

.social-feed-embed a {
  text-decoration: none;
  color: inherit;
}

.social-feed-embed button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

.modal-msg-content img {
  display: block;
  max-width: 70%;
}

.modal-msg-grid-item img {
  max-width: 100%;
}

.social-feed-embed .social-feed-layout {
  display: flex;
  align-items: flex-start;
}

.social-feed-mobile-header {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.social-feed-mobile-header .mobile-header-logo {
  font-family: 'Segoe Script', 'Brush Script MT', cursive;
  font-size: 18px;
  color: var(--primary);
  white-space: nowrap;
}

.social-feed-mobile-header .mobile-header-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 13px;
}

.social-feed-mobile-header .mobile-header-search i {
  font-size: 14px;
  color: var(--text-secondary);
}

.social-feed-mobile-header .mobile-header-notifications {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.social-feed-mobile-header .mobile-header-notifications i {
  font-size: 16px;
}

.social-feed-embed [data-social-feed-sidebar] {
  flex: 0 0 var(--sidebar-width);
  width: var(--sidebar-width);
}

.social-feed-embed .sidebar {
  position: fixed;
  top: var(--social-feed-header-offset, 0px);
  left: 0;
  right: auto;
  bottom: 0;
  align-self: flex-start;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 8px 12px 20px;
  color: var(--text-primary);
  height: 100vh;
}

.social-feed-embed .main-content {
  margin-left: 0;
  flex: 1;
  min-height: auto;
}

.social-feed-embed .nav-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.social-feed-embed .nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 8px;
  color: var(--text-primary);
  transition: background 0.2s;
}

.social-feed-embed .nav-item:hover {
  background: var(--bg-hover);
}

.social-feed-embed .nav-item.active {
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-hover);
}

.social-feed-embed .nav-item i {
  font-size: 24px;
  width: 24px;
  text-align: center;
}

.social-feed-embed .nav-item span {
  font-size: 16px;
}

.social-feed-embed .nav-item .badge {
  margin-left: auto;
  background: var(--heart-red);
  color: #ffffff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 10px;
}

.social-feed-embed .nav-profile img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.social-feed-embed .logo {
  padding: 25px 12px 20px;
  font-family: 'Segoe Script', 'Brush Script MT', cursive;
  font-size: 22px;
  font-weight: 400;
  color: var(--primary);
}

.social-feed-embed .right-sidebar {
  /* top: var(--social-feed-header-offset, 0px); */
}

@media (max-width: 768px) {
  .social-feed-embed {
    --mobile-bottom-bar-height: 64px;
    --mobile-header-height: 56px;
  }

  .social-feed-mobile-header {
    position: fixed;
    top: var(--admin-bar-height, 0px);
    left: 0;
    right: 0;
    height: var(--mobile-header-height);
    display: flex;
    z-index: 130;
  }

  .social-feed-embed [data-social-feed-sidebar] {
    flex: 0 0 auto;
    width: 0;
  }

  .social-feed-embed .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 120;
    width: 100%;
    height: var(--mobile-bottom-bar-height);
    flex-basis: auto;
    padding: 6px 12px 10px;
    border-right: 0;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -8px 24px rgba(233, 30, 99, 0.12);
  }

  .social-feed-embed .logo {
    display: none;
  }

  .social-feed-embed .logo span {
    display: none;
  }

  .social-feed-embed .more-menu {
    display: none;
  }

  .social-feed-embed .nav-menu {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    width: 100%;
  }

  .social-feed-embed .nav-menu::-webkit-scrollbar {
    display: none;
  }

  .social-feed-embed .nav-item {
    flex: 0 0 auto;
    min-width: 56px;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 10px;
  }

  .social-feed-embed .nav-item span,
  .social-feed-embed .nav-item .badge {
    display: none;
  }

  .social-feed-embed .nav-item-search,
  .social-feed-embed .nav-item-notifications {
    display: none;
  }

  .social-feed-embed .nav-item i {
    font-size: 22px;
  }

  .social-feed-embed .nav-profile img {
    width: 22px;
    height: 22px;
  }

  .social-feed-embed .main-content {
    padding-bottom: calc(var(--mobile-bottom-bar-height) + 16px);
    padding-top: calc(var(--mobile-header-height));
  }

  .social-feed-embed .messages-btn {
    bottom: calc(var(--mobile-bottom-bar-height) + 16px);
  }
}