/* BudunOS feed post variants
 * Body: bos-post-v-{id}
 * Card: .post.bos-post.bos-post--{id}
 */

/* ---------- soft — identity (current sidebar.css) ---------- */
body.bos-post-v-soft .post.bos-post {
  /* default soft card styles */
}

/* ---------- Compact card ---------- */
body.bos-post-v-compact .post.bos-post.bos-post--compact {
  margin-bottom: 10px !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 22px -18px rgba(20, 24, 32, 0.14) !important;
}

body.bos-post-v-compact .post.bos-post .post-header {
  gap: 10px;
  padding: 10px 12px 4px !important;
}

body.bos-post-v-compact .post.bos-post .post-avatar {
  flex-basis: 34px;
  width: 34px;
  height: 34px;
}

body.bos-post-v-compact .post.bos-post .post-avatar-picture {
  min-width: 34px !important;
  min-height: 34px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
}

body.bos-post-v-compact .post.bos-post .post-meta {
  min-height: 34px;
  padding: 1px 32px 0 0 !important;
}

body.bos-post-v-compact .post.bos-post .post-author {
  font-size: 12.5px !important;
}

body.bos-post-v-compact .post.bos-post .post-time {
  font-size: 11px !important;
}

body.bos-post-v-compact .post.bos-post .post-header .dropdown-toggle {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

body.bos-post-v-compact .post.bos-post .post-text {
  padding: 2px 12px 6px !important;
  font-size: 13.5px !important;
}

body.bos-post-v-compact .post.bos-post .post-stats {
  padding: 0 12px 6px !important;
  font-size: 10.5px !important;
  gap: 8px;
}

body.bos-post-v-compact .post.bos-post .post-actions {
  padding: 4px 6px 6px !important;
  gap: 1px;
}

body.bos-post-v-compact .post.bos-post .post-actions .action-btn {
  min-height: 30px;
  padding: 4px 6px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
}

body.bos-post-v-compact .post.bos-post .post-footer {
  padding: 10px 12px 12px !important;
  border-radius: 0 0 14px 14px !important;
}

/* ---------- Frost card (glass) ---------- */
body.bos-post-v-glass .post.bos-post.bos-post--glass {
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow:
    0 16px 48px -26px rgba(20, 24, 32, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
}

body.bos-post-v-glass .post.bos-post .post-actions {
  border-top-color: rgba(233, 235, 239, 0.65) !important;
  background: transparent;
}

body.bos-post-v-glass .post.bos-post .post-footer {
  background: rgba(250, 251, 252, 0.55) !important;
  border-top-color: rgba(233, 235, 239, 0.65) !important;
}

body.bos-post-v-glass .post.bos-post .action-dropdown-menu {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.bos-post-v-glass .post.bos-post .post-avatar .online-dot {
  border-color: rgba(255, 255, 255, 0.9) !important;
}

body.night-mode.bos-post-v-glass .post.bos-post.bos-post--glass,
html[data-bs-theme="dark"].bos-post-v-glass .post.bos-post.bos-post--glass {
  background: rgba(30, 37, 43, 0.78) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    0 16px 48px -22px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body.night-mode.bos-post-v-glass .post.bos-post .post-footer,
html[data-bs-theme="dark"].bos-post-v-glass .post.bos-post .post-footer {
  background: rgba(255, 255, 255, 0.04) !important;
}

/* ---------- Ink card ---------- */
body.bos-post-v-ink .post.bos-post.bos-post--ink {
  --bos-post-ink: #f0f3f6;
  --bos-post-muted: #8b949e;
  --bos-post-line: rgba(255, 255, 255, 0.1);
  --bos-post-soft: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: #141a20 !important;
  box-shadow: 0 18px 48px -24px rgba(0, 0, 0, 0.55) !important;
  color: #f0f3f6;
}

body.bos-post-v-ink .post.bos-post .post-author,
body.bos-post-v-ink .post.bos-post .post-text {
  color: #f0f3f6 !important;
}

body.bos-post-v-ink .post.bos-post .post-time,
body.bos-post-v-ink .post.bos-post .post-time a,
body.bos-post-v-ink .post.bos-post .post-stats,
body.bos-post-v-ink .post.bos-post .post-stats .pointer {
  color: #8b949e !important;
}

body.bos-post-v-ink .post.bos-post .post-time a:hover,
body.bos-post-v-ink .post.bos-post .post-stats .pointer:hover {
  color: #fff !important;
}

body.bos-post-v-ink .post.bos-post .post-time .btn-group .btn {
  color: #8b949e !important;
}

body.bos-post-v-ink .post.bos-post .post-header .dropdown-toggle {
  color: #8b949e;
}

body.bos-post-v-ink .post.bos-post .post-header .dropdown-toggle:hover,
body.bos-post-v-ink .post.bos-post .post-header .dropdown-toggle.show {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.bos-post-v-ink .post.bos-post .post-avatar .online-dot {
  border-color: #141a20 !important;
}

body.bos-post-v-ink .post.bos-post .post-actions {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

body.bos-post-v-ink .post.bos-post .post-actions .action-btn {
  color: #c9d1d9 !important;
}

body.bos-post-v-ink .post.bos-post .post-actions .action-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

body.bos-post-v-ink .post.bos-post .post-actions .action-icon,
body.bos-post-v-ink .post.bos-post .post-actions .svg-container.action-icon,
body.bos-post-v-ink .post.bos-post .post-actions .reaction-btn-icon {
  color: #fff !important;
  fill: #fff !important;
}

body.bos-post-v-ink .post.bos-post .post-actions .svg-container.action-icon *,
body.bos-post-v-ink .post.bos-post .post-actions .svg-container.action-icon path,
body.bos-post-v-ink .post.bos-post .post-actions .action-icon path {
  color: #fff !important;
  fill: #fff !important;
}

body.bos-post-v-ink .post.bos-post .post-actions .reaction-btn-icon .fa,
body.bos-post-v-ink .post.bos-post .post-actions .reaction-btn-icon i {
  color: #fff !important;
}

body.bos-post-v-ink .post.bos-post .post-footer {
  background: #0f1419 !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

body.bos-post-v-ink .post.bos-post .action-dropdown-menu {
  background: #1a2229 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.bos-post-v-ink .post.bos-post .action-dropdown-menu .dropdown-item {
  color: #f0f3f6 !important;
}

body.bos-post-v-ink .post.bos-post .action-dropdown-menu .dropdown-item:hover,
body.bos-post-v-ink .post.bos-post .action-dropdown-menu .dropdown-item:focus {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
}

body.bos-post-v-ink .post.bos-post .action-dropdown-menu .dropdown-item .svg-container,
body.bos-post-v-ink .post.bos-post .action-dropdown-menu .dropdown-item .main-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

body.bos-post-v-ink .post.bos-post .action-dropdown-menu .dropdown-item .svg-container *,
body.bos-post-v-ink .post.bos-post .action-dropdown-menu .dropdown-item .main-icon * {
  fill: #fff !important;
}

body.bos-post-v-ink .post.bos-post .action-dropdown-menu .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.bos-post-v-ink .post.bos-post.boosted {
  border-color: color-mix(in srgb, #ffa412 45%, rgba(255, 255, 255, 0.1)) !important;
}

/* ---------- Accent rail ---------- */
body.bos-post-v-rail .post.bos-post.bos-post--rail {
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 32px -22px rgba(20, 24, 32, 0.16) !important;
  border-left: 3px solid color-mix(in srgb, var(--link-color) 72%, #fff) !important;
}

body.bos-post-v-rail .post.bos-post.bos-post--rail:has(.dropdown-menu.show),
body.bos-post-v-rail .post.bos-post.bos-post--rail:has(.dropdown.show) {
  overflow: visible !important;
}

body.bos-post-v-rail .post.bos-post .post-header {
  padding: 14px 14px 6px 12px !important;
}

body.bos-post-v-rail .post.bos-post .post-text {
  padding: 2px 14px 8px 12px !important;
}

body.bos-post-v-rail .post.bos-post .post-stats {
  padding: 2px 14px 8px 12px !important;
  justify-content: flex-start;
}

body.bos-post-v-rail .post.bos-post .post-actions {
  margin: 0 10px 10px !important;
  padding: 4px !important;
  border: 1px solid var(--bos-post-line) !important;
  border-radius: 14px !important;
  background: var(--bos-post-soft) !important;
  gap: 2px;
}

body.bos-post-v-rail .post.bos-post .post-actions .action-btn {
  border-radius: 11px !important;
  min-height: 36px;
}

body.bos-post-v-rail .post.bos-post .post-actions .action-btn:hover {
  background: #fff !important;
}

body.bos-post-v-rail .post.bos-post .post-footer {
  margin: 0;
  border-radius: 0 !important;
  background: #fafbfc !important;
}

body.bos-post-v-rail .post.bos-post.boosted {
  border-left-color: #ffa412 !important;
}

body.night-mode.bos-post-v-rail .post.bos-post .post-actions,
html[data-bs-theme="dark"].bos-post-v-rail .post.bos-post .post-actions {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode.bos-post-v-rail .post.bos-post .post-actions .action-btn:hover,
html[data-bs-theme="dark"].bos-post-v-rail .post.bos-post .post-actions .action-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

/* AI credit packages (buy modal) */
.bos-ai-pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 575px) {
  .bos-ai-pkg-grid {
    grid-template-columns: 1fr;
  }
}

.bos-ai-pkg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 14px 12px 12px;
  border: 1px solid #e6ecf5;
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bos-ai-pkg-card:hover {
  border-color: color-mix(in srgb, var(--link-color, #5e72e4) 40%, transparent);
}

.bos-ai-pkg-card.is-active {
  border-color: var(--link-color, #5e72e4);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color, #5e72e4) 16%, transparent);
}

.bos-ai-pkg-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: #111;
  color: #fff;
}

.bos-ai-pkg-name {
  font-size: 14px;
  color: #111;
}

.bos-ai-pkg-credits {
  font-size: 12px;
  color: #858b95;
}

.bos-ai-pkg-price {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--link-color, #5e72e4);
}

.bos-ai-pkg-save {
  font-size: 11px;
  font-weight: 650;
  color: #1a7f37;
}

body.night-mode .bos-ai-pkg-card {
  background: var(--card-dark-hover, #2b3843);
  border-color: var(--card-dark-divider, #2e3f4d);
}

body.night-mode .bos-ai-pkg-name {
  color: #fff;
}
