/* Sphere-style Post UI Styles */
/* ============================================ */
/* Brand colors: Teal #0891b2 → Green #06d6a0 */

/* Modal Base */
.fb-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.fb-modal.active {
  display: flex;
}

.fb-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
}

.fb-modal-content {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--surface) 100%);
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 28px 0 rgba(8, 145, 178, 0.15), 0 2px 4px 0 rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(8, 145, 178, 0.2);
}

/* Modal Header */
.fb-post-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-bottom: 1px solid rgba(8, 145, 178, 0.2);
  position: relative;
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.1) 0%, rgba(6, 214, 160, 0.1) 100%);
}

.fb-post-modal-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

.fb-modal-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(8, 145, 178, 0.2);
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.fb-modal-close:hover {
  background: rgba(8, 145, 178, 0.4);
  color: white;
}

/* Modal Body */
.fb-post-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* User Row */
.fb-post-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.fb-post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.fb-post-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fb-post-user-name {
  font-weight: 600;
  color: white;
  font-size: 0.9375rem;
}

.fb-visibility-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(8, 145, 178, 0.15);
  border: none;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s;
}

.fb-visibility-btn:hover {
  background: rgba(8, 145, 178, 0.3);
}

/* Compose Area */
.fb-post-compose-area {
  border-radius: 8px;
  transition: all 0.3s;
  padding: 8px;
  min-height: 100px;
}

.fb-post-compose-area.fb-has-background {
  min-height: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 12px;
  padding: 24px;
}

.fb-post-textarea {
  width: 100%;
  min-height: 100px;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  font-family: inherit;
  resize: none;
  outline: none;
}

.fb-post-textarea::placeholder {
  color: var(--text-secondary);
}

.fb-has-background .fb-post-textarea {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
}

.fb-has-background .fb-post-textarea::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

/* Meta Badges */
.fb-post-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.fb-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(8, 145, 178, 0.15);
  border-radius: 16px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

/* Toolbar */
.fb-post-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 8px;
}

.fb-toolbar-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.fb-toolbar-btn:hover {
  background: rgba(8, 145, 178, 0.15);
}

.fb-aa-btn {
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
              linear-gradient(135deg, #0891b2, #06d6a0) border-box;
  border-radius: 8px;
}

.fb-aa-gradient {
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(135deg, #0891b2, #06d6a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Background Picker */
.fb-background-picker {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: rgba(8, 145, 178, 0.15);
  border-radius: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.fb-bg-option {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-bg-option:hover {
  transform: scale(1.1);
}

.fb-bg-option.active {
  border-color: #0891b2;
}

/* Emoji Picker */
.fb-emoji-picker {
  position: absolute;
  bottom: 140px;
  right: 16px;
  width: 320px;
  max-height: 350px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 28px 0 rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.fb-emoji-section {
  padding: 12px;
  overflow-y: auto;
  flex: 1;
}

.fb-emoji-section-title {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 600;
}

.fb-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}

.fb-emoji-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-emoji-btn:hover {
  background: rgba(8, 145, 178, 0.15);
  transform: scale(1.15);
}

.fb-emoji-categories {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
  overflow-x: auto;
}

.fb-emoji-cat-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.15s;
  opacity: 0.6;
  flex-shrink: 0;
}

.fb-emoji-cat-btn:hover {
  background: rgba(8, 145, 178, 0.15);
  opacity: 1;
}

.fb-emoji-cat-btn.active {
  background: rgba(8, 145, 178, 0.15);
  opacity: 1;
}

/* Add to Your Post */
.fb-add-to-post {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 12px;
}

.fb-add-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: white;
}

.fb-add-buttons {
  display: flex;
  gap: 4px;
}

.fb-add-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-add-btn:hover {
  background: rgba(8, 145, 178, 0.15);
}

.fb-add-btn svg {
  width: 24px;
  height: 24px;
}

/* Add More Menu - Floating */
.fb-add-more-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 400px;
  max-height: 70vh;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--surface) 100%);
  border: 1px solid rgba(8, 145, 178, 0.3);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 10001;
  overflow: hidden;
}

.fb-add-more-menu:not(.hidden) {
  display: flex;
}

.fb-add-more-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(8, 145, 178, 0.2);
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.15) 0%, rgba(6, 214, 160, 0.15) 100%);
}

.fb-add-more-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin: 0;
  flex: 1;
}

.fb-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(8, 145, 178, 0.2);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.fb-back-btn:hover {
  background: rgba(8, 145, 178, 0.4);
}

.fb-back-btn svg {
  width: 20px;
  height: 20px;
}

.fb-add-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px;
  overflow-y: auto;
}

.fb-add-more-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: rgba(8, 145, 178, 0.08);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.fb-add-more-item:hover {
  background: rgba(8, 145, 178, 0.2);
}

.fb-add-more-icon {
  font-size: 1.5rem;
}

.fb-add-more-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Modal Footer */
.fb-post-modal-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.fb-post-btn {
  width: 100%;
  padding: 10px 16px;
  background: rgba(8, 145, 178, 0.15);
  border: none;
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: not-allowed;
  transition: all 0.2s;
}

.fb-post-btn:not(:disabled) {
  background: linear-gradient(135deg, #0891b2 0%, #06d6a0 100%);
  color: #fff;
  cursor: pointer;
}

.fb-post-btn:not(:disabled):hover {
  background: linear-gradient(135deg, #0ea5c9 0%, #10dca8 100%);
}

/* Visibility Dropdown - Floating */
.fb-visibility-dropdown {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 320px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--surface) 100%);
  border: 1px solid rgba(8, 145, 178, 0.3);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 10001;
  overflow: hidden;
}

.fb-visibility-dropdown:not(.hidden) {
  display: block;
}

.fb-visibility-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(8, 145, 178, 0.15);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.fb-visibility-option:last-child {
  border-bottom: none;
}

.fb-visibility-option:hover {
  background: rgba(8, 145, 178, 0.15);
}

.fb-visibility-option svg {
  color: var(--text-secondary);
  width: 24px;
  height: 24px;
}

.fb-vis-label {
  display: block;
  font-weight: 600;
  color: white;
  font-size: 0.9375rem;
}

.fb-vis-desc {
  display: block;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  margin-top: 2px;
}

/* Sub-modals (Feeling, Location, Tag, GIF) - FLOATING OVERLAY PANELS */
.fb-sub-modal {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 420px;
  max-height: 70vh;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--surface) 100%);
  border: 1px solid rgba(8, 145, 178, 0.3);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(8, 145, 178, 0.1);
  z-index: 10001;
  overflow: hidden;
}

.fb-sub-modal:not(.hidden) {
  display: flex;
}

/* Backdrop for sub-modals */
.fb-sub-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
}

.fb-sub-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(8, 145, 178, 0.2);
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.15) 0%, rgba(6, 214, 160, 0.15) 100%);
}

.fb-sub-modal-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin: 0;
  flex: 1;
}

.fb-sub-modal .fb-back-btn {
  width: 36px;
  height: 36px;
  background: rgba(8, 145, 178, 0.2);
  border-radius: 50%;
}

.fb-sub-modal .fb-back-btn:hover {
  background: rgba(8, 145, 178, 0.4);
}

.fb-sub-modal .fb-back-btn svg {
  width: 20px;
  height: 20px;
}

/* Feeling Picker */
.fb-feeling-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(8, 145, 178, 0.2);
}

.fb-feeling-tab {
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.fb-feeling-tab:hover {
  background: rgba(8, 145, 178, 0.15);
}

.fb-feeling-tab.active {
  background: linear-gradient(135deg, #0891b2 0%, #06d6a0 100%);
  color: #fff;
}

.fb-feelings-grid, .fb-activities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.fb-feeling-item, .fb-activity-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.fb-feeling-item:hover, .fb-activity-item:hover {
  background: rgba(8, 145, 178, 0.15);
}

.fb-feeling-emoji, .fb-activity-emoji {
  font-size: 1.75rem;
}

.fb-feeling-label, .fb-activity-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Location Picker */
.fb-location-search, .fb-tag-search, .fb-gif-search {
  width: calc(100% - 32px);
  margin: 16px;
  padding: 12px 16px;
  background: rgba(8, 145, 178, 0.15);
  border: none;
  border-radius: 20px;
  color: white;
  font-size: 0.9375rem;
  outline: none;
}

.fb-location-search::placeholder, .fb-tag-search::placeholder, .fb-gif-search::placeholder {
  color: var(--text-secondary);
}

.fb-location-results {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.fb-location-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  width: 100%;
  background: rgba(8, 145, 178, 0.08);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  color: white;
  font-size: 0.9375rem;
}

.fb-location-item:hover {
  background: rgba(8, 145, 178, 0.2);
}

.fb-loc-icon {
  font-size: 1.25rem;
}

/* Tag People */
.fb-selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px;
  min-height: 24px;
}

.fb-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #0891b2 0%, #06d6a0 100%);
  border-radius: 16px;
  color: #fff;
  font-size: 0.875rem;
}

.fb-tag-chip button {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.fb-tag-chip button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.fb-chip-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.fb-tag-results {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 16px;
}

.fb-tag-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.fb-tag-item:hover {
  background: rgba(8, 145, 178, 0.15);
}

.fb-tag-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.fb-tag-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fb-tag-name {
  font-weight: 600;
  color: white;
  font-size: 0.9375rem;
}

.fb-tag-username {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.fb-tag-hint {
  color: var(--text-secondary);
  text-align: center;
  padding: 24px;
  font-size: 0.9375rem;
}

/* GIF Picker */
.fb-gif-results {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 16px;
}

.fb-gif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.fb-gif-item {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.fb-gif-item:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

.fb-gif-hint {
  color: var(--text-secondary);
  text-align: center;
  padding: 24px;
  font-size: 0.9375rem;
}

/* Media Preview */
.fb-media-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
}

.fb-media-item {
  position: relative;
  aspect-ratio: 1;
}

.fb-media-item img, .fb-media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-remove-media {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.fb-remove-media:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Media Editing Tools */
.fb-media-editing-tools {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 12px;
  margin-top: 12px;
  border: 1px solid rgba(8, 145, 178, 0.2);
}

.fb-editing-tools-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.fb-editing-tools-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.fb-edit-tool-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(8, 145, 178, 0.15);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.fb-edit-tool-btn:hover {
  background: rgba(8, 145, 178, 0.25);
}

.fb-edit-tool-btn.active {
  background: rgba(8, 145, 178, 0.3);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.fb-edit-tool-btn svg {
  fill: currentColor;
}

.fb-editing-filters {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

.fb-filters-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fb-filter-options {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.fb-filter-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 56px;
}

.fb-filter-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.fb-filter-btn.active {
  border-color: var(--accent-color);
  background: rgba(8, 145, 178, 0.15);
}

.fb-filter-preview {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f5576c 100%);
}

.fb-filter-btn span {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.fb-filter-btn.active span {
  color: var(--accent-color);
}

/* GIF Preview */
.fb-gif-preview {
  position: relative;
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
}

.fb-gif-preview img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.fb-remove-gif {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.fb-remove-gif:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Toast Notifications */
.fb-toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fb-toast {
  padding: 12px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: white;
  font-size: 0.9375rem;
  box-shadow: 0 12px 28px 0 rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
}

.fb-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.fb-toast-success {
  border-color: #06d6a0;
}

.fb-toast-error {
  border-color: #ef4444;
}

/* ============================================
   COMPACT FEED COMPOSER
   ============================================ */

.fb-feed-composer {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--surface) 100%);
  border: 1px solid rgba(8, 145, 178, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.fb-feed-composer-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fb-feed-composer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.fb-feed-composer-input {
  flex: 1;
  padding: 10px 16px;
  background: rgba(8, 145, 178, 0.15);
  border: none;
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.fb-feed-composer-input:hover {
  background: var(--text-secondary);
}

.fb-feed-composer-actions {
  display: flex;
  justify-content: space-around;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
}

.fb-feed-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.fb-feed-action:hover {
  background: rgba(8, 145, 178, 0.15);
}

.fb-feed-action svg {
  width: 24px;
  height: 24px;
}

.fb-feed-action.fb-live svg { color: #0891b2; }
.fb-feed-action.fb-photo svg { color: #06d6a0; }
.fb-feed-action.fb-feeling svg { color: #10dca8; }

/* ============================================
   STORIES CAROUSEL (Enhanced)
   ============================================ */

.fb-stories-section {
  margin-bottom: 16px;
}

.fb-stories-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.fb-stories-container::-webkit-scrollbar {
  display: none;
}

.fb-story-card {
  flex-shrink: 0;
  width: 112px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--bg-secondary);
  transition: all 0.2s;
}

.fb-story-card:hover {
  transform: scale(1.02);
}

.fb-story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-story-card.fb-create-story {
  display: flex;
  flex-direction: column;
}

.fb-create-story-img {
  height: 140px;
}

.fb-create-story-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--bg-secondary);
}

.fb-create-story-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0891b2 0%, #06d6a0 100%);
  border: 4px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -18px;
  color: #fff;
  font-size: 1.25rem;
}

.fb-create-story-text {
  font-size: 0.8125rem;
  color: white;
  font-weight: 600;
}

.fb-story-avatar {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid #0891b2;
  object-fit: cover;
}

.fb-story-name {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .fb-modal-content {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .fb-emoji-picker {
    width: 100%;
    left: 0;
    right: 0;
    bottom: 60px;
    border-radius: 12px 12px 0 0;
  }

  /* Floating panels on mobile - still floating, not fullscreen */
  .fb-sub-modal,
  .fb-add-more-menu,
  .fb-visibility-dropdown {
    width: 95%;
    max-width: none;
    max-height: 80vh;
  }

  .fb-add-more-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fb-feelings-grid, .fb-activities-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fb-location-results {
    grid-template-columns: 1fr;
  }

  .fb-gif-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fb-feed-composer-actions {
    flex-wrap: wrap;
  }

  .fb-feed-action span {
    display: none;
  }
}

/* Hidden utility class */
.hidden {
  display: none !important;
}

/* ============================================
   NEW FEATURE MODALS (Poll, Event, Life Update, etc.)
   ============================================ */

/* Poll Creator */
#fb-poll-modal .fb-poll-option input:focus,
#fb-event-modal input:focus,
#fb-event-modal textarea:focus,
#fb-life-update-modal input:focus,
#fb-life-update-modal textarea:focus,
#fb-job-modal input:focus,
#fb-job-modal textarea:focus,
#fb-job-modal select:focus,
#fb-fundraiser-modal input:focus,
#fb-fundraiser-modal textarea:focus,
#fb-fundraiser-modal select:focus,
#fb-live-modal input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(8, 145, 178, 0.4);
}

/* Life Update Type Buttons Hover Effect */
#fb-life-update-modal button:hover {
  background: rgba(8, 145, 178, 0.2) !important;
  transform: scale(1.02);
}

/* Job Type Select Styling */
#fb-job-modal select option,
#fb-fundraiser-modal select option {
  background: var(--bg-secondary);
  color: white;
}

/* Live Video Preview Container */
#fb-live-modal video {
  border-radius: 12px;
}

/* Fundraiser Category Badges */
.fb-fundraiser-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(245, 83, 61, 0.2);
  border-radius: 16px;
  color: #f5533d;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Poll Preview in Post */
.fb-poll-preview {
  background: rgba(8, 145, 178, 0.1);
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
}

.fb-poll-preview-question {
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
  font-size: 1rem;
}

.fb-poll-preview-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(8, 145, 178, 0.15);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.fb-poll-preview-option:hover {
  background: rgba(8, 145, 178, 0.25);
}

.fb-poll-preview-option-radio {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(8, 145, 178, 0.5);
  border-radius: 50%;
}

.fb-poll-preview-option-text {
  color: white;
  font-size: 0.9375rem;
}

/* Job Post Card Styling */
.fb-job-card {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.1) 0%, rgba(6, 214, 160, 0.1) 100%);
  border: 1px solid rgba(8, 145, 178, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
}

.fb-job-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.fb-job-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0891b2 0%, #06d6a0 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.fb-job-card-title {
  font-weight: 700;
  color: white;
  font-size: 1.125rem;
}

.fb-job-card-company {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.fb-job-card-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.fb-job-card-apply {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, #0891b2 0%, #06d6a0 100%);
  border-radius: 8px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9375rem;
}

.fb-job-card-apply:hover {
  opacity: 0.9;
}

/* Fundraiser Progress Bar */
.fb-fundraiser-progress {
  background: rgba(8, 145, 178, 0.2);
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
  margin: 12px 0;
}

.fb-fundraiser-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #f5533d 0%, #ff6b6b 100%);
  border-radius: 8px;
  transition: width 0.5s ease;
}

.fb-fundraiser-stats {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.fb-fundraiser-raised {
  font-weight: 600;
  color: #f5533d;
}

/* Event Card in Feed */
.fb-event-card {
  background: linear-gradient(135deg, rgba(240, 40, 73, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
  border: 1px solid rgba(240, 40, 73, 0.2);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 12px;
}

.fb-event-card-header {
  background: linear-gradient(135deg, #f02849 0%, #ff6b6b 100%);
  padding: 12px 16px;
  color: white;
}

.fb-event-card-date {
  font-size: 0.875rem;
  opacity: 0.9;
}

.fb-event-card-name {
  font-weight: 700;
  font-size: 1.125rem;
}

.fb-event-card-body {
  padding: 16px;
}

.fb-event-card-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.fb-event-card-rsvp {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.fb-event-card-rsvp button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
}

.fb-event-card-rsvp .going {
  background: linear-gradient(135deg, #0891b2 0%, #06d6a0 100%);
  color: white;
}

.fb-event-card-rsvp .interested {
  background: rgba(8, 145, 178, 0.15);
  color: white;
}

/* Life Update Special Post Styling */
.fb-life-update-post {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.15) 0%, rgba(6, 214, 160, 0.15) 100%);
  border: 2px solid rgba(8, 145, 178, 0.3);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin: 12px 0;
}

.fb-life-update-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.fb-life-update-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.fb-life-update-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

.fb-life-update-date {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 8px;
}

/* Collaborator Badge Style */
.fb-collaborator-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(8, 145, 178, 0.15);
  border-radius: 16px;
  color: #06d6a0;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Mobile Responsiveness for New Modals */
@media (max-width: 768px) {
  #fb-poll-modal,
  #fb-event-modal,
  #fb-life-update-modal,
  #fb-live-modal,
  #fb-collaborator-modal,
  #fb-job-modal,
  #fb-fundraiser-modal {
    width: 95%;
    max-height: 85vh;
  }

  .fb-add-more-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  #fb-life-update-modal .fb-sub-modal > div:last-child > div {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
