/* ==========================================================================
   STORYBOOST & DIAMOND PRO - DEMUREGRAM AESTHETIC DARK DESIGN SYSTEM
   ========================================================================== */

/* 1. Modal Dialog & Shell */
.storyboost-modal {
  background: #121212 !important;
  color: #f3f4f6 !important;
  border: 1px solid #262626 !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85) !important;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.storyboost-modal .modal-header {
  border-bottom: 1px solid #222222 !important;
  padding: 18px 24px !important;
}

.storyboost-modal .modal-title {
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  font-size: 1.15rem;
}

.storyboost-modal .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.storyboost-modal .btn-close:hover {
  opacity: 1;
}

/* 2. Ads Story Banner */
.ads-story-banner {
  background: rgba(255, 107, 0, 0.08) !important;
  border: 1px solid rgba(255, 107, 0, 0.25) !important;
  border-radius: 16px !important;
}

.ads-story-banner .font-weight-bold {
  color: #ffffff !important;
  font-weight: 600;
}

.ads-story-banner small {
  color: #9ca3af !important;
}

/* 3. Text Story Canvas & Color Swatches */
.story-textarea {
  background: #1a1a1c !important;
  border: 1px solid #333338 !important;
  color: #ffffff !important;
  border-radius: 16px !important;
  resize: none;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.story-textarea:focus {
  border-color: #ff6b00 !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2) !important;
  outline: none;
}

.story-textarea::placeholder {
  color: #6b7280 !important;
}

.color-picker-bar {
  padding: 4px 2px;
}

.color-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  margin-right: 10px;
  cursor: pointer;
  display: inline-block;
  border: 2px solid transparent;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.color-circle:hover {
  transform: scale(1.2);
}

.color-circle.active {
  border-color: #ffffff !important;
  transform: scale(1.22);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.character-count {
  color: #9ca3af !important;
  font-size: 0.85rem;
  font-weight: 500;
}

/* 4. Upload Tiles */
.upload-tile {
  background: #18181a !important;
  border: 2px dashed #303036 !important;
  border-radius: 18px !important;
  cursor: pointer;
  color: #f3f4f6 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.upload-tile:hover {
  background: rgba(255, 107, 0, 0.06) !important;
  border-color: #ff6b00 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.15);
}

.tile-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 107, 0, 0.12) !important;
  color: #ff6b00 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.upload-tile:hover .tile-icon-circle {
  transform: scale(1.1);
  background: rgba(255, 107, 0, 0.22) !important;
}

.upload-tile span.font-weight-bold {
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 600;
}

.upload-tile small {
  color: #9ca3af !important;
}

/* 5. Music Picker Dropdown */
.music-picker-select {
  background: #18181a !important;
  border: 1px solid #303036 !important;
  border-radius: 16px !important;
}

.music-picker-select .input-group-prepend {
  color: #ff6b00 !important;
  font-weight: 600;
}

.music-picker-select select {
  color: #ffffff !important;
  background: transparent !important;
}

.music-picker-select select option {
  background: #18181a !important;
  color: #ffffff !important;
}

/* 6. Action Buttons */
.btn-gradient-publish {
  background: linear-gradient(135deg, #ff6b00 0%, #ff3366 50%, #d946ef 100%) !important;
  border: none !important;
  border-radius: 9999px !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 18px rgba(255, 107, 0, 0.4) !important;
  transition: all 0.25s ease !important;
}

.btn-gradient-publish:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.6) !important;
  color: #ffffff !important;
}

.storyboost-modal .btn-light {
  background: #242426 !important;
  border: 1px solid #38383e !important;
  color: #e5e7eb !important;
  border-radius: 9999px !important;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.storyboost-modal .btn-light:hover {
  background: #323236 !important;
  color: #ffffff !important;
}

/* 7. Floating Reactions Bar on Story Viewer */
.storyboost-reaction-bar {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 18, 18, 0.65) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 30px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 1050;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.storyboost-emoji-btn {
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.storyboost-emoji-btn:hover {
  transform: scale(1.35) translateY(-3px);
}
