/**
 * WebTicaret.tr - Forum Composer & SCEditor 3.0.0 WebTicaret Skin
 * Modern compact toolbar, seamless responsive design, attachment dropzone,
 * and canonical BBCode synchronization.
 */

/* ==========================================================================
   1. SCEditor 3.0.0 WebTicaret Custom Skin
   ========================================================================== */
div.sceditor-container,
.sceditor-container {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

div.sceditor-container:focus-within,
.sceditor-container:focus-within {
  border-color: #FF6B0B !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 11, 0.1) !important;
}

/* SCEditor Compact Toolbar */
div.sceditor-toolbar,
.sceditor-toolbar {
  flex-shrink: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 6px 10px !important;
  background: linear-gradient(180deg, #F8FAFD 0%, #F1F5F9 100%) !important;
  border-bottom: 1px solid #E2E8F0 !important;
  user-select: none !important;
  line-height: normal !important;
}

div.sceditor-group,
.sceditor-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  margin: 0 4px 0 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Tiko Emoji Group - Automatically Pushed to the Far Right */
div.sceditor-group:has(.sceditor-button-tiko),
div.sceditor-group-tiko,
.sceditor-group-tiko {
  margin-left: auto !important;
  margin-right: 0 !important;
}

/* Toolbar Buttons */
a.sceditor-button,
.sceditor-button {
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 6px !important;
  color: #334155 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  user-select: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

/* Crucial: Hide text labels inside icon-based buttons, EXCEPT Tiko and Headings */
.sceditor-button:not(.sceditor-button-tiko):not(.sceditor-button-headings).has-icon div {
  display: none !important;
}

/* Div inside non-icon buttons */
.sceditor-button:not(.has-icon) div {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: none !important;
}

.sceditor-button svg {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  fill: currentColor !important;
  margin: 0 !important;
  pointer-events: none !important;
}

.sceditor-button:hover {
  background: #FFF7ED !important;
  border-color: #FF6B0B !important;
  color: #EA580C !important;
}

.sceditor-button:active,
.sceditor-button.active {
  background: #102A4C !important;
  border-color: #102A4C !important;
  color: #FFFFFF !important;
}

.sceditor-button.active svg {
  fill: #FFFFFF !important;
}

.sceditor-button.disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}

/* Custom Headings Dropdown Button: Normal Metin ▾ */
a.sceditor-button-headings,
.sceditor-button-headings {
  width: auto !important;
  min-width: 124px !important;
  height: 32px !important;
  padding: 0 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #102A4C !important;
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
}

.sceditor-button-headings .sceditor-headings-label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 6px !important;
  color: #102A4C !important;
  pointer-events: none !important;
}

.sceditor-button-headings .sceditor-arrow {
  font-size: 10px !important;
  color: #64748B !important;
  margin-left: 4px !important;
}

.sceditor-button-headings:hover {
  background: #FFF7ED !important;
  border-color: #FF6B0B !important;
  color: #EA580C !important;
}

.sceditor-button-headings:hover .sceditor-headings-label {
  color: #FF6B0B !important;
}

/* Custom Tiko Mascot Button - Far Right, Prominent Pill */
a.sceditor-button-tiko,
.sceditor-button-tiko {
  width: auto !important;
  min-width: 114px !important;
  height: 34px !important;
  padding: 0 12px 0 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%) !important;
  border: 1.5px solid #FF6B0B !important;
  border-radius: 20px !important;
  box-shadow: 0 1px 3px rgba(255, 107, 11, 0.18) !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
  text-decoration: none !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

a.sceditor-button-tiko:hover,
.sceditor-button-tiko:hover {
  background: linear-gradient(135deg, #FFEDD5 0%, #FED7AA 100%) !important;
  border-color: #EA580C !important;
  box-shadow: 0 3px 8px rgba(234, 88, 12, 0.28) !important;
  transform: translateY(-1px) !important;
}

a.sceditor-button-tiko:active,
.sceditor-button-tiko:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 3px rgba(234, 88, 12, 0.2) !important;
}

/* Rich JS-injected content structure for Tiko */
.sceditor-tiko-btn-content {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 100% !important;
  pointer-events: none !important;
}

.sceditor-tiko-btn-img {
  width: 22px !important;
  height: 22px !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.sceditor-tiko-btn-label {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #C2410C !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  letter-spacing: 0.2px !important;
}

.sceditor-button-tiko:hover .sceditor-tiko-btn-label {
  color: #9A3412 !important;
}

/* SCEditor Iframe & Textarea Content Area (Root Cause Fix: do NOT force textarea display:block) */
.sceditor-container iframe {
  width: 100% !important;
  box-sizing: border-box !important;
  border: none !important;
  outline: none !important;
  background: #FDFDFE !important;
}

.sceditor-container textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  border: none !important;
  outline: none !important;
  padding: 14px 16px !important;
  background: #FDFDFE !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  color: #1E293B !important;
  resize: vertical !important;
}

/* Ensure the original textarea is hidden when SCEditor is initialized */
textarea[data-sceditor-initialized="1"] {
  display: none !important;
}

/* SCEditor Dropdowns & Popups */
div.sceditor-dropdown {
  position: absolute !important;
  z-index: 1050 !important;
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08) !important;
  padding: 8px !important;
  box-sizing: border-box !important;
  font-family: 'Poppins', sans-serif !important;
}

/* SCEditor Link Insertion Dropdown Dialog */
div.sceditor-dropdown.sceditor-insertlink {
  width: 330px !important;
  max-width: calc(100vw - 32px) !important;
  padding: 16px 18px 18px !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 35px -8px rgba(15, 23, 42, 0.16), 0 8px 16px -6px rgba(15, 23, 42, 0.08) !important;
  box-sizing: border-box !important;
  animation: sceditorDropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes sceditorDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

div.sceditor-dropdown.sceditor-insertlink::before {
  content: '🔗 Bağlantı Ekle';
  display: block !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #102A4C !important;
  letter-spacing: -0.01em !important;
  padding-bottom: 10px !important;
  margin-bottom: 14px !important;
  border-bottom: 1px solid #F1F5F9 !important;
}

div.sceditor-dropdown.sceditor-insertlink > div {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin-bottom: 12px !important;
}

div.sceditor-dropdown.sceditor-insertlink > div:last-child {
  margin-bottom: 0 !important;
  margin-top: 6px !important;
}

div.sceditor-dropdown.sceditor-insertlink label {
  display: block !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  letter-spacing: 0.01em !important;
}

div.sceditor-dropdown.sceditor-insertlink input[type="text"] {
  display: block !important;
  width: 100% !important;
  height: 38px !important;
  padding: 0 12px !important;
  background: #F8FAFC !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-family: inherit !important;
  color: #0F172A !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
}

div.sceditor-dropdown.sceditor-insertlink input[type="text"]::placeholder {
  color: #94A3B8 !important;
  font-size: 12.5px !important;
}

div.sceditor-dropdown.sceditor-insertlink input[type="text"]:focus {
  background: #FFFFFF !important;
  border-color: #FF6B0B !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 11, 0.14) !important;
}

div.sceditor-dropdown.sceditor-insertlink input.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 38px !important;
  padding: 0 16px !important;
  background: linear-gradient(135deg, #FF6B0B 0%, #EA580C 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.28) !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
}

div.sceditor-dropdown.sceditor-insertlink input.button:hover {
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%) !important;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35) !important;
  transform: translateY(-1px) !important;
}

div.sceditor-dropdown.sceditor-insertlink input.button:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 3px rgba(234, 88, 12, 0.2) !important;
}

/* Headings Dropdown Menu */
.sceditor-headings-menu {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 150px;
}

.sceditor-heading-item {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #102A4C;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
}

.sceditor-heading-item:hover {
  background: #FFF7ED;
  color: #EA580C;
}

.sceditor-heading-item--p {
  font-size: 13px;
  font-weight: 500;
}

.sceditor-heading-item--h2 {
  font-size: 14.5px;
  font-weight: 700;
  border-bottom: 1px dashed #F1F5F9;
}

.sceditor-heading-item--h3 {
  font-size: 13.5px;
  font-weight: 600;
}

/* Tiko Emoji Picker inside SCEditor */
.sceditor-tiko-picker {
  width: 320px;
  max-width: 90vw;
}

.sceditor-tiko-head {
  margin-bottom: 8px;
}

.sceditor-tiko-search {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 12.5px;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
}

.sceditor-tiko-search:focus {
  border-color: #FF6B0B;
}

.sceditor-tiko-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
}

.sceditor-tiko-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.12s ease;
  padding: 0;
}

.sceditor-tiko-item:hover {
  background: #FFF7ED;
  border-color: #FF6B0B;
  transform: scale(1.1);
}

.sceditor-tiko-item img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.sceditor-tiko-empty {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 12px;
  color: #64748B;
  padding: 16px 0;
}

/* Image Dialog Popup */
.sceditor-image-dialog {
  width: 300px;
  max-width: 90vw;
  padding: 4px;
}

.sceditor-image-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 6px;
}

.sceditor-tab-btn {
  flex: 1;
  padding: 6px 10px;
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.12s ease;
}

.sceditor-tab-btn.is-active {
  background: #FFF7ED;
  color: #C2410C;
}

/* ==========================================================================
   2. Composer Shell & Header Cards
   ========================================================================== */
.composer-shell-card {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.composer-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E2E8F0;
}

.composer-header-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.composer-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #FFF7ED;
  color: #FF6B0B;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.composer-header-title {
  font-size: 18px;
  font-weight: 700;
  color: #102A4C;
  margin: 0 0 2px 0;
  line-height: 1.3;
}

.composer-header-desc {
  font-size: 13px;
  color: #64748B;
  margin: 0;
  line-height: 1.4;
}

.btn-composer-preview-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #2563EB;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-composer-preview-top:hover {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #1D4ED8;
}

/* ==========================================================================
   3. Quoted Post Preview Box
   ========================================================================== */
.quote-preview-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-left: 4px solid #FF6B0B;
  border-radius: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #7C2D12;
}

.quote-preview-discard {
  background: none;
  border: none;
  color: #EF4444;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 4px;
  transition: background-color 0.12s ease;
}

.quote-preview-discard:hover {
  background: #FEE2E2;
}

/* ==========================================================================
   4. Composer Hints & Counter Bar
   ========================================================================== */
.composer-hint-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 0 2px;
  font-size: 12px;
  color: #64748B;
  margin-top: 4px;
}

.composer-hint-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.composer-counter-badge {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #64748B;
}

/* ==========================================================================
   5. Modern Attachment Card & Compact Bar
   ========================================================================== */
.wt-attachment-compact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1px dashed #CBD5E1;
  border-radius: 8px;
  margin-top: 12px;
  margin-bottom: 8px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.wt-attachment-compact-bar:hover {
  border-color: #94A3B8;
  background: #F8FAFC;
}

.wt-attachment-compact-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  flex-wrap: wrap;
}

.wt-attachment-compact-label {
  font-weight: 600;
  color: #102A4C;
}

.wt-attachment-compact-hint {
  font-size: 11.5px;
  color: #64748B;
}

.wt-attachment-btn-compact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #102A4C;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.wt-attachment-btn-compact:hover {
  border-color: #FF6B0B;
  color: #FF6B0B;
  background: #FFF7ED;
}

.wt-attachment-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 16px;
  margin-top: 14px;
  margin-bottom: 18px;
}

.wt-attachment-dropzone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 18px;
  background: #FFFFFF;
  border: 1.5px dashed #CBD5E1;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.wt-attachment-dropzone:hover,
.wt-attachment-dropzone.is-dragover {
  border-color: #FF6B0B;
  background: #FFFBF7;
}

.wt-attachment-dropzone__info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 240px;
}

.wt-attachment-dropzone__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #FFF7ED;
  color: #FF6B0B;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wt-attachment-dropzone__title {
  font-size: 13.5px;
  font-weight: 700;
  color: #102A4C;
  margin-bottom: 2px;
}

.wt-attachment-dropzone__subtitle {
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.4;
}

.wt-attachment-btn-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  color: #102A4C;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.wt-attachment-btn-select:hover {
  background: #F8FAFC;
  border-color: #FF6B0B;
  color: #FF6B0B;
}

.wt-uploaded-files-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.wt-attachment-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  gap: 12px;
}

.wt-attachment-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wt-attachment-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #102A4C;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.wt-attachment-item-size {
  font-size: 11.5px;
  color: #64748B;
}

.wt-attachment-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wt-attachment-action-btn {
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  transition: all 0.12s ease;
}

.wt-attachment-action-btn:hover {
  border-color: #FF6B0B;
  color: #FF6B0B;
}

.wt-attachment-action-btn--delete {
  color: #EF4444;
  border-color: #FECACA;
}

.wt-attachment-action-btn--delete:hover {
  background: #FEE2E2;
  border-color: #EF4444;
  color: #B91C1C;
}

/* ==========================================================================
   6. Ek Seçenekler (Extra Options) Grid
   ========================================================================== */
.composer-extra-section {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 16px 18px;
  margin-top: 18px;
  margin-bottom: 20px;
}

.composer-extra-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #102A4C;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #EDF2F7;
}

.composer-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 18px;
}

.composer-option-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background-color 0.12s ease;
  user-select: none;
}

.composer-option-item:hover {
  background: #F1F5F9;
}

.composer-option-checkbox {
  margin: 3px 0 0 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #FF6B0B;
  flex-shrink: 0;
}

.composer-option-title {
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.35;
}

.composer-option-desc {
  font-size: 11.5px;
  color: #64748B;
  margin-top: 2px;
  line-height: 1.35;
}

/* ==========================================================================
   7. Composer Action Bar & Action Buttons
   ========================================================================== */
.composer-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  margin-top: 20px;
  border-top: 1px solid #E2E8F0;
}

.composer-action-left,
.composer-action-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-composer-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-composer-preview-btn:hover {
  background: #E2E8F0;
  color: #1E293B;
  border-color: #94A3B8;
}

.btn-composer-draft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-composer-draft:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  color: #1E293B;
}

.btn-composer-submit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #FF6B0B 0%, #EA580C 100%);
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255, 107, 11, 0.28);
  transition: all 0.15s ease;
}

.btn-composer-submit:hover {
  background: linear-gradient(135deg, #FF7D26 0%, #F97316 100%);
  box-shadow: 0 4px 12px rgba(255, 107, 11, 0.38);
  transform: translateY(-1px);
}

.btn-composer-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(255, 107, 11, 0.2);
}

.btn-cancel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  background: #F1F5F9;
  color: #475569;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.btn-cancel:hover {
  background: #E2E8F0;
  color: #1E293B;
}

/* ==========================================================================
   8. Community Rules Banner
   ========================================================================== */
.composer-rules-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 12.5px;
  color: #475569;
  margin-top: 18px;
}

.composer-rules-banner__main,
.composer-rules-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 240px;
}

.composer-rules-banner__icon {
  font-size: 16px;
  flex-shrink: 0;
}

.composer-rules-banner__link,
.composer-rules-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: #2563EB;
  text-decoration: none;
  font-size: 12.5px;
  white-space: nowrap;
  transition: color 0.12s ease;
}

.composer-rules-banner__link:hover,
.composer-rules-link:hover {
  color: #1D4ED8;
  text-decoration: underline;
}

/* ==========================================================================
   9. Notifications (Toast Alerts)
   ========================================================================== */
.forum-notice-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  pointer-events: none;
}

.forum-notice {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #2563EB;
  font-size: 13px;
  color: #102A4C;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.forum-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.forum-notice--success {
  border-left-color: #10B981;
}

.forum-notice--error {
  border-left-color: #EF4444;
}

.forum-notice--info {
  border-left-color: #FF6B0B;
}

.forum-notice__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.forum-notice--success .forum-notice__icon {
  background: #D1FAE5;
  color: #065F46;
}

.forum-notice--error .forum-notice__icon {
  background: #FEE2E2;
  color: #991B1B;
}

.forum-notice--info .forum-notice__icon {
  background: #FFF7ED;
  color: #C2410C;
}

.forum-notice__text {
  flex: 1;
  line-height: 1.4;
}

.forum-notice__close {
  background: none;
  border: none;
  font-size: 18px;
  color: #94A3B8;
  cursor: pointer;
  padding: 0 4px;
}

/* ==========================================================================
   10. Topic Create / Form Specifics
   ========================================================================== */
.topic-type-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
}

.topic-type-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

#pollDetailsBox summary,
#seoAccordion summary {
  user-select: none;
}

#pollDetailsBox summary:hover span,
#seoAccordion summary:hover span {
  color: #FF6B0B;
}
