/* ══════════════════════════════════════════════════════════════════════════
   Sile Cancer — Custom Styles
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --teal:      #0B6E6E;
  --teal-mid:  #0E9090;
  --teal-dark: #084F4F;
  --teal-lite: #E6F7F7;
  --navy:      #0D2137;
  --navy2:     #163552;
  --amber:     #C07B0A;
  --amber-lit: #FEF9ED;
  --slate:     #3A5570;
  --muted:     #7A95A8;
  --line:      #DDE8EE;
  --line2:     #F0F6FA;
  --paper:     #FAFEF8;
}

/* ── Fonts ── */
.font-ethiopic { font-family: 'Noto Sans Ethiopic', sans-serif; }
.font-arabic   { font-family: 'Noto Sans Arabic', sans-serif; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--teal-lite); border-radius: 4px; }

/* ── Nav links ── */
.nav-link {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover     { background: var(--teal-lite); color: var(--teal); }
.nav-link-active    { background: var(--teal-lite); color: var(--teal); }

/* ── Hero ── */
.grid-overlay {
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 40px 40px;
}

.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #12B8B8;
  animation: pls 2s ease-in-out infinite;
}
@keyframes pls { 0%,100%{opacity:1} 50%{opacity:.4} }

.lang-pill {
  padding: 5px 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  cursor: default;
  transition: all .15s;
}

/* ── Section headings ── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal);
  margin-bottom: 6px;
}
.section-eyebrow::before {
  content: '';
  width: 16px; height: 2px;
  background: var(--teal);
}
.section-heading {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--navy);
  letter-spacing: -.3px;
  font-weight: 600;
}
.section-subtext {
  font-size: 13px;
  color: var(--slate);
  margin-top: 5px;
  max-width: 520px;
}

/* ── Buttons ── */
.btn-generate {
  background: linear-gradient(135deg, var(--teal), var(--teal-mid));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 12px 22px;
  box-shadow: 0 4px 14px rgba(11,110,110,.25);
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-generate:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--teal-mid), #12B8B8);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(11,110,110,.3);
}
.btn-generate:disabled {
  background: var(--muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  background: var(--teal);
  color: #fff;
  border: none; border-radius: 10px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; text-decoration: none;
  transition: all .15s;
}
.btn-hero-primary:hover {
  background: var(--teal-mid);
  transform: translateY(-2px);
}

.btn-hero-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.8);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: all .15s;
}
.btn-hero-ghost:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
}

.btn-action {
  padding: 7px 14px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--slate);
  cursor: pointer;
  transition: all .12s;
}
.btn-action:hover          { border-color: var(--teal); color: var(--teal); }
.btn-action-primary        { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-action-primary:hover  { background: var(--teal-mid); color: #fff; }

.btn-translate {
  padding: 10px 20px;
  background: var(--teal);
  color: #fff;
  border: none; border-radius: 9px;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.btn-translate:hover:not(:disabled) {
  background: var(--teal-mid);
  transform: translateY(-1px);
}
.btn-translate:disabled { background: var(--muted); cursor: not-allowed; }

/* ── Form elements ── */
.form-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--slate);
  margin-bottom: 4px;
}
.form-select {
  width: 100%;
  padding: 9px 28px 9px 10px;
  border: 2px solid var(--line);
  border-radius: 9px;
  font-size: 13px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A95A8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  outline: none;
  transition: border-color .15s;
}
.form-select:focus { border-color: var(--teal); }

/* ── Selector buttons ── */
.sel-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border: 2px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
  transition: all .12s;
  background: #fff;
}
.sel-btn:hover  { border-color: var(--teal); color: var(--teal); }
.sel-btn-on     { background: var(--teal-lite) !important; border-color: var(--teal) !important; color: var(--teal) !important; }

.sel-btn-wide {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border: 2px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
  transition: all .12s;
  background: #fff;
}
.sel-btn-wide:hover { border-color: var(--teal); color: var(--teal); }

/* ── Cards ── */
.cancer-card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  transition: all .15s;
  display: flex;
  flex-direction: column;
}
.cancer-card:hover {
  border-color: rgba(11,110,110,.25);
  box-shadow: 0 4px 16px rgba(11,110,110,.08);
  transform: translateY(-2px);
}

.info-card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  transition: all .15s;
}
.info-card:hover {
  border-color: rgba(11,110,110,.2);
  box-shadow: 0 4px 14px rgba(11,110,110,.07);
}

/* ── Content text ── */
.content-text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--navy);
  white-space: pre-wrap;
  font-family: 'Nunito', 'Noto Sans Ethiopic', 'Noto Sans Arabic', sans-serif;
}
.content-text.rtl {
  direction: rtl;
  text-align: right;
  font-family: 'Noto Sans Arabic', sans-serif;
}
.content-text.eth {
  font-family: 'Noto Sans Ethiopic', 'Nunito', sans-serif;
}

/* ── Translation cards ── */
.translation-card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}
.translation-header {
  background: linear-gradient(135deg, var(--teal-lite), #fff);
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.translation-body {
  padding: 18px;
}

/* ── Loading dots ── */
.dot-bounce {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-mid);
  animation: bounce-dot .7s ease-in-out infinite;
}
@keyframes bounce-dot {
  0%,80%,100% { transform: scale(.8); opacity: .5; }
  40%         { transform: scale(1.2); opacity: 1; }
}
@keyframes pulse-icon {
  0%,100% { opacity:.6; transform:scale(.95); }
  50%     { opacity:1;  transform:scale(1); }
}

/* ── Warn banner ── */
.warn-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--amber-lit);
  border: 1.5px solid rgba(192,123,10,.2);
  border-radius: 12px;
  padding: 14px 18px;
}

/* ── Disclaimer box ── */
.disclaimer-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--amber-lit);
  border: 1.5px solid rgba(192,123,10,.2);
  border-radius: 10px;
  padding: 12px 16px;
}

/* ── Toast ── */
#toast {
  animation: toast-in .25s ease-out;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Sidebar panel shorthand (used in generator.html) ── */
.sidebar-panel {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
}
.panel-title {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

/* ── Individual lang translate button ── */
.lang-trans-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  color: var(--slate);
  cursor: pointer;
  transition: all .12s;
  background: #fff;
}
.lang-trans-btn:hover    { border-color: var(--teal); color: var(--teal); }
.lang-trans-btn.done     { background: var(--teal-lite); border-color: var(--teal); color: var(--teal); }
.lang-trans-btn.loading  { opacity: .5; cursor: default; }

/* ── Share modal ── */
.share-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(13,33,55,.45);
  backdrop-filter: blur(3px);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  animation: fade-in .18s ease-out;
}
@keyframes fade-in { from{opacity:0} to{opacity:1} }

.share-modal {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  width: 90%; max-width: 400px;
  box-shadow: 0 20px 60px rgba(13,33,55,.22);
  animation: slide-up .22s ease-out;
}
@keyframes slide-up { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

.share-modal-title {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 20px; font-weight: 700;
  color: var(--navy); margin-bottom: 4px;
}
.share-modal-sub {
  font-size: 12px; color: var(--muted); margin-bottom: 20px;
}

.share-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 18px;
}

.share-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 8px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-size: 11px; font-weight: 700;
  color: var(--slate);
  cursor: pointer;
  transition: all .14s;
  text-decoration: none;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.share-btn .share-icon { font-size: 28px; line-height: 1; }

.share-btn-wa     { border-color: #25D366; }
.share-btn-wa:hover { background: #25D366; color: #fff; border-color: #25D366; }
.share-btn-tg     { border-color: #229ED9; }
.share-btn-tg:hover { background: #229ED9; color: #fff; border-color: #229ED9; }
.share-btn-fb     { border-color: #1877F2; }
.share-btn-fb:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.share-btn-tw     { border-color: #000; }
.share-btn-tw:hover { background: #000; color: #fff; border-color: #000; }
.share-btn-li     { border-color: #0A66C2; }
.share-btn-li:hover { background: #0A66C2; color: #fff; border-color: #0A66C2; }
.share-btn-link   { border-color: var(--teal); }
.share-btn-link:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

.share-close-btn {
  width: 100%;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 13px; font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all .12s;
}
.share-close-btn:hover { border-color: var(--teal); color: var(--teal); }

/* small inline share icon button used in action bar and translation card header */
.btn-share {
  padding: 7px 14px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 8px;
  font-size: 12px; font-weight: 700;
  color: var(--slate);
  cursor: pointer;
  transition: all .12s;
}
.btn-share:hover { border-color: #25D366; color: #25D366; }

/* ── Print styles ── */
@media print {
  .nav, .footer, .gen-sidebar, .oc-actions, #translationsSection,
  .btn-action, #btnGenerate, aside { display: none !important; }
  body { background: #fff !important; }
  .content-text { font-size: 13px; }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .section-heading { font-size: 22px; }
}

/* ── Formatted article text ── */
.rich p { margin: 0 0 .85em; }
.rich p:last-child { margin-bottom: 0; }
.rich ul { list-style: disc; padding-left: 1.4em; margin: .4em 0 .85em; }
.rich ol { list-style: decimal; padding-left: 1.4em; margin: .4em 0 .85em; }
.rich li { margin: .2em 0; }
.rich a { color: var(--teal); text-decoration: underline; }
.rich img { max-width: 100%; height: auto; border-radius: 12px; margin: .6em 0; }
.rich figure { margin: .6em 0; }
.rich h3 { font-size: 1.1em; font-weight: 700; margin: .8em 0 .4em; }
.rich blockquote { border-left: 3px solid var(--teal); padding-left: .9em; color: var(--slate); }
.rich a.pdf-link {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  background: var(--teal-lite); border: 1.5px solid rgba(11,110,110,.25);
  border-radius: 10px; padding: 6px 12px; font-weight: 700;
}
.rich a.pdf-link:hover { background: var(--teal); color: #fff; }

/* ── Formatting bar (editor) ── */
.rt-wrap { border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.rt-wrap:focus-within { border-color: var(--teal); }
.rt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--line2); border-radius: 8px 8px 0 0; }
.rt-bar button { min-width: 30px; height: 28px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 700; color: var(--slate); background: #fff; border: 1px solid var(--line); }
.rt-bar button:hover { border-color: var(--teal); color: var(--teal); }
.rt-bar .rt-color { min-width: 22px; width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.rt-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.rt-area { padding: 12px 14px; font-size: 14px; line-height: 1.8; outline: none; color: var(--navy); }
.rt-area:empty::before { content: attr(data-placeholder); color: #9CA3AF; }
