/* 100tik v0.97.4.11 — Single listing status + contrast hardening */

.tik64-status-line{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin:10px 0 12px;
}
.tik64-status-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:32px;
  padding:6px 13px;
  border-radius:999px;
  border:1px solid transparent;
  font-size:12px;
  line-height:1.4;
  font-weight:800;
  letter-spacing:-.01em;
}
.tik64-status-badge.is-pending{background:#fff7dc;color:#865500;border-color:#f4c95d;box-shadow:0 0 0 3px rgba(245,158,11,.08)}
.tik64-status-badge.is-draft{background:#eef2f7;color:#334155;border-color:#cbd5e1}
.tik64-status-badge.is-rejected{background:#fff0f1;color:#b4232c;border-color:#f3a4aa}
.tik64-status-badge.is-expired{background:#fff2e8;color:#9a4700;border-color:#f2b37a}
.tik64-status-badge.is-deleted{background:#f4f4f5;color:#52525b;border-color:#d4d4d8}
.tik64-status-badge.is-inactive{background:#f1f5f9;color:#475569;border-color:#cbd5e1}

.tik64-state .tik64-state-status{font-weight:800!important}
.tik64-state.is-pending .tik64-state-status{color:#a16207!important}
.tik64-state.is-rejected .tik64-state-status{color:#b4232c!important}
.tik64-state.is-expired .tik64-state-status{color:#c05621!important}

/* خوانایی متادیتاهای Single Post در Light Mode */
.tik-single-wrapper .tik-post-type-badge,
.tik-post-type-badge{
  color:#25364a!important;
  -webkit-text-fill-color:#25364a!important;
  background:#edf3f8!important;
  border:1px solid #c4d2df!important;
  opacity:1!important;
  font-weight:750!important;
}
.tik-single-wrapper .tik-post-type-badge i,
.tik-post-type-badge i{color:#486985!important;-webkit-text-fill-color:#486985!important;opacity:1!important}

.tik-single-wrapper .tik-subject-activity,
.tik-subject-activity{
  color:#174ea6!important;
  -webkit-text-fill-color:#174ea6!important;
  background:#eef6ff!important;
  border:1px solid #b8d6fb!important;
  opacity:1!important;
  font-weight:700!important;
}
.tik-single-wrapper .tik-subject-activity i,
.tik-subject-activity i{color:#2563b8!important;-webkit-text-fill-color:#2563b8!important;opacity:1!important}

.tik-single-wrapper .tik-category-chips .tik-chip:not(.tik-chip-primary):not(.tik-chip-vip):not(.tik-chip-free),
.tik-category-chips .tik-chip:not(.tik-chip-primary):not(.tik-chip-vip):not(.tik-chip-free){
  color:#27384b!important;
  -webkit-text-fill-color:#27384b!important;
  background:#f3f6f9!important;
  border:1px solid #cad6e2!important;
  opacity:1!important;
  font-weight:700!important;
}
.tik-category-chips .tik-chip:not(.tik-chip-primary):not(.tik-chip-vip):not(.tik-chip-free) i{
  color:#45627e!important;
  -webkit-text-fill-color:#45627e!important;
  opacity:1!important;
}

/* Dark mode: پشتیبانی از سه روش فعلی انتخاب تم در پروژه */
html[data-theme="dark"] .tik64-status-badge.is-pending,
body.dark .tik64-status-badge.is-pending,
.dark-mode .tik64-status-badge.is-pending{background:#3a2b09;color:#ffd870;border-color:#8f6917;box-shadow:0 0 0 3px rgba(245,158,11,.10)}
html[data-theme="dark"] .tik64-status-badge.is-draft,
body.dark .tik64-status-badge.is-draft,
.dark-mode .tik64-status-badge.is-draft{background:#263448;color:#e6edf6;border-color:#40536a}
html[data-theme="dark"] .tik64-status-badge.is-rejected,
body.dark .tik64-status-badge.is-rejected,
.dark-mode .tik64-status-badge.is-rejected{background:#421d27;color:#ffb4bd;border-color:#81404d}
html[data-theme="dark"] .tik64-status-badge.is-expired,
body.dark .tik64-status-badge.is-expired,
.dark-mode .tik64-status-badge.is-expired{background:#412818;color:#ffc18d;border-color:#825437}
html[data-theme="dark"] .tik64-status-badge.is-deleted,
html[data-theme="dark"] .tik64-status-badge.is-inactive,
body.dark .tik64-status-badge.is-deleted,
body.dark .tik64-status-badge.is-inactive,
.dark-mode .tik64-status-badge.is-deleted,
.dark-mode .tik64-status-badge.is-inactive{background:#273346;color:#d8e2ef;border-color:#41516a}

html[data-theme="dark"] .tik64-state.is-pending .tik64-state-status,
body.dark .tik64-state.is-pending .tik64-state-status,
.dark-mode .tik64-state.is-pending .tik64-state-status{color:#ffd870!important}
html[data-theme="dark"] .tik64-state.is-rejected .tik64-state-status,
body.dark .tik64-state.is-rejected .tik64-state-status,
.dark-mode .tik64-state.is-rejected .tik64-state-status{color:#ffb4bd!important}
html[data-theme="dark"] .tik64-state.is-expired .tik64-state-status,
body.dark .tik64-state.is-expired .tik64-state-status,
.dark-mode .tik64-state.is-expired .tik64-state-status{color:#ffc18d!important}

html[data-theme="dark"] .tik-post-type-badge,
body.dark .tik-post-type-badge,
.dark-mode .tik-post-type-badge{
  color:#edf5ff!important;
  -webkit-text-fill-color:#edf5ff!important;
  background:#1d3047!important;
  border-color:#3a5875!important;
  opacity:1!important;
}
html[data-theme="dark"] .tik-post-type-badge i,
body.dark .tik-post-type-badge i,
.dark-mode .tik-post-type-badge i{color:#b9d7f4!important;-webkit-text-fill-color:#b9d7f4!important}

html[data-theme="dark"] .tik-subject-activity,
body.dark .tik-subject-activity,
.dark-mode .tik-subject-activity{
  color:#c7dcff!important;
  -webkit-text-fill-color:#c7dcff!important;
  background:#172b46!important;
  border-color:#365d89!important;
  opacity:1!important;
}
html[data-theme="dark"] .tik-subject-activity i,
body.dark .tik-subject-activity i,
.dark-mode .tik-subject-activity i{color:#9fc5ff!important;-webkit-text-fill-color:#9fc5ff!important}

html[data-theme="dark"] .tik-category-chips .tik-chip:not(.tik-chip-primary):not(.tik-chip-vip):not(.tik-chip-free),
body.dark .tik-category-chips .tik-chip:not(.tik-chip-primary):not(.tik-chip-vip):not(.tik-chip-free),
.dark-mode .tik-category-chips .tik-chip:not(.tik-chip-primary):not(.tik-chip-vip):not(.tik-chip-free){
  color:#edf3fa!important;
  -webkit-text-fill-color:#edf3fa!important;
  background:#1d2d40!important;
  border-color:#3c526b!important;
  opacity:1!important;
}
html[data-theme="dark"] .tik-category-chips .tik-chip:not(.tik-chip-primary):not(.tik-chip-vip):not(.tik-chip-free) i,
body.dark .tik-category-chips .tik-chip:not(.tik-chip-primary):not(.tik-chip-vip):not(.tik-chip-free) i,
.dark-mode .tik-category-chips .tik-chip:not(.tik-chip-primary):not(.tik-chip-vip):not(.tik-chip-free) i{
  color:#b9cee4!important;
  -webkit-text-fill-color:#b9cee4!important;
}

@media (prefers-color-scheme:dark){
  html:not([data-theme="light"]) .tik-post-type-badge{color:#edf5ff!important;-webkit-text-fill-color:#edf5ff!important;background:#1d3047!important;border-color:#3a5875!important}
  html:not([data-theme="light"]) .tik-subject-activity{color:#c7dcff!important;-webkit-text-fill-color:#c7dcff!important;background:#172b46!important;border-color:#365d89!important}
  html:not([data-theme="light"]) .tik-category-chips .tik-chip:not(.tik-chip-primary):not(.tik-chip-vip):not(.tik-chip-free){color:#edf3fa!important;-webkit-text-fill-color:#edf3fa!important;background:#1d2d40!important;border-color:#3c526b!important}
}

@media (max-width:480px){
  .tik64-status-line{margin:8px 0 10px}
  .tik64-status-badge{font-size:11px;min-height:30px;padding:5px 11px}
}


/* ============================================================
   v0.97.4.13 — Manager action matrix + Persian labels readability
   ============================================================ */
.tik64-actions[data-manager-actions="1"] .approve-btn{
  background:linear-gradient(135deg,#16a34a,#059669)!important;
  color:#fff!important;-webkit-text-fill-color:#fff!important;
  border-color:rgba(5,150,105,.42)!important;
}
.tik64-actions[data-manager-actions="1"] .approve-btn i{color:#fff!important;-webkit-text-fill-color:#fff!important}
.tik64-actions[data-manager-actions="1"] form{margin:0;min-width:0}

/* Dark section header must always use a light foreground, including light site theme. */
.tik-single-wrapper .tik-specs-section>h2,
.tik-single-wrapper .tik-specs-section>h2 i,
.tik-single-wrapper .tik-specs-section>h2 span,
.tik-single-wrapper .tik-section-header-bar .tik-section-header-text,
.tik-single-wrapper .tik-section-header-bar .tik-header-icon{
  color:#f8fbff!important;
  -webkit-text-fill-color:#f8fbff!important;
  opacity:1!important;
  text-shadow:0 1px 2px rgba(0,0,0,.18);
}

/* Contact labels: keep service names readable in both themes. */
.tik-single-wrapper .tik-contact-email .tik-contact-icon{background:#eef2ff!important}
.tik-single-wrapper .tik-contact-email .tik-contact-icon i{color:#4f46e5!important}
.tik-single-wrapper .tik-contact-label{opacity:1!important}

/* Sharing buttons now have localized text, not icon-only controls. */
.tik-single-wrapper .tik-v21-share .tik-share-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;width:100%}
.tik-single-wrapper .tik-v21-share .tik-share-btn{
  min-height:38px!important;width:100%!important;box-sizing:border-box!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
  padding:8px 10px!important;text-decoration:none!important;white-space:nowrap!important;font-size:11px!important;font-weight:700!important;
}
.tik-single-wrapper .tik-v21-share .tik-share-btn span{color:inherit!important;-webkit-text-fill-color:currentColor!important;font:inherit!important}
.tik-single-wrapper .tik-v21-share .tik-share-email{background:linear-gradient(135deg,#64748b,#475569)!important;color:#fff!important}
.tik-single-wrapper .tik-v21-share .tik-share-email i{color:#fff!important}

@media(max-width:480px){
  .tik-single-wrapper .tik-v21-share .tik-share-grid{grid-template-columns:1fr 1fr!important}
  .tik64-actions[data-manager-actions="1"]{grid-template-columns:1fr 1fr!important}
}
