/* site.css — unified palette & components (extracted from existing inline styles) */

/* ---- Theme ---- */
:root{
  --bg:#020617;
  --card:#111827;
  --text:#e5e7eb;
  --muted:#38bdf8;
  --accent:#38bdf8;
  --accent-soft:rgba(56,189,248,0.12);
  --border:rgba(255,255,255,0.08);
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.45;
}

/* ---- Layout ---- */
.container{
  max-width:1350px;
  margin:0 auto;
  padding:24px 16px;
}
.container-sm{
  max-width:860px;
  margin:0 auto;
  padding:40px 20px;
}

/* ---- Typography ---- */
h1{font-size:1.8rem;margin:0 0 10px}
h2{font-size:1.35rem;margin:36px 0 16px}
h3{margin:0 0 8px;font-size:1.1rem}
p{margin:8px 0;color:var(--muted)}
.small{font-size:.95rem;color:var(--muted)}

/* ---- Cards / Sections ---- */
.hero{
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:16px;
  padding:28px;
}
.hero p{max-width:900px}

.features{margin-top:12px}
.features ul{padding-left:18px;margin:8px 0}
.features li{margin-bottom:6px;font-size:.95rem}
.features a{color:var(--accent);text-decoration:none}
.features a:hover{text-decoration:underline}

/* ---- Pricing ---- */
.pricing{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;
  margin-top:20px;
}

.plan{
  background:var(--card);
  border:1px solid var(--accent);
  border-radius:14px;
  padding:20px;
  display:flex;
  flex-direction:column;
}

.plan ul{padding-left:16px;margin:6px 0 10px}
.plan li{margin-bottom:6px;font-size:.9rem;color:var(--muted)}

/* Keep the first price row pinned to bottom for plans with shorter lists */
.plan .price-row:first-of-type{margin-top:auto}

/* ---- Price rows ---- */
.price-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:6px 0;
  border-top:1px dashed var(--border);
  font-size:.9rem;
}
.price-row:first-of-type{border-top:none}
.price-value{color:var(--accent);font-weight:600}

/* ---- Buttons ---- */
.btn{
  background:transparent;
  border:1px solid var(--accent);
  color:var(--accent);
  padding:8px 10px;      /* як у index.htm */
  border-radius:8px;     /* як у index.htm */
  font-size:.8rem;       /* як у index.htm */
  cursor:pointer;
  text-decoration:none;
  display:inline-block;
  text-align:center;
}
.btn:hover{background:var(--accent);color:var(--bg)}

/* Великі кнопки для форм (реєстрація / resend) */
.btn--lg{padding:8px 16px;border-radius:10px;font-size:.9rem}
/* Кнопки у формах мають бути компактні, ширина — по тексту */
.btn--form{margin-top:22px}
.btn--auto{width:auto;  align-self:flex-start;
}


/* Якщо колись знадобиться кнопка на всю ширину */
.btn--block{display:block;width:100%}

/* ---- Forms ---- */
form{margin-top:20px}
label{
  display:block;
  margin-top:14px;
  font-size:.9rem;
  color:var(--muted);
}

input{
  width:100%;
  padding:10px 12px;
  margin-top:6px;
  border-radius:8px;
  border:1px solid var(--border);
  background:#fffbd1; /* as in current register form */
  color:#0b1220;
  font-size:.95rem;

  display:block;
}
input:focus{outline:none;border-color:var(--accent)}

.form-narrow input{width:50%}

/* honeypot */
.hp{display:none !important}

/* ---- Notices ---- */
.notice{
  margin-top:10px;
  padding:10px 12px;
  border-radius:10px;
  background:rgba(255,255,255,0.03);
  border:1px solid var(--border);
  color:var(--muted);
  font-size:.85rem;
}
.notice--plain{
  padding:0;
  border:none;
  background:transparent;
}
.notice--hidden{display:none}

/* ---- Footer ---- */
.footer{
  margin-top:28px;
  text-align:center;
  font-size:.9rem;
}
.footer a{
  color:var(--accent);
  text-decoration:none;
  margin:0 12px;
}
.footer a:hover{text-decoration:underline}

/* ---- Language switch ---- */
.lang-switch{
  position:absolute;
  top:16px;
  right:24px;
  display:flex;
  gap:10px;
  z-index:100;
}

.lang-switch .lang{
  font-size:1.3rem;
  text-decoration:none;
  opacity:.55;
  transition:opacity .15s ease, transform .15s ease;
}
.lang-switch .lang:hover{opacity:1;transform:scale(1.1)}
html[lang="uk"] .lang.ua,
html[lang="en"] .lang.en{
  opacity:1;
  cursor:default;
  transform:none;
}


/* ==== Disabled form controls: pale-yellow instead of grey ==== */
select:disabled,
select[disabled] {
  background-color: #FFFFE7 !important;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important; /* Safari/Chrome */
  opacity: 1 !important; /* prevent greying */
  filter: none !important;
  cursor: not-allowed;
}

/* If the UA applies its own native appearance for disabled selects, this helps */
select:disabled {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* ==== Table header styling (planets_editor) ==== */

table thead th {
  color: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  border-bottom: 2px solid var(--accent) !important;
  background: rgba(56,189,248,0.06);
}

table thead th:first-child {
  border-left: 1px solid var(--accent) !important;
}

table thead th:last-child {
  border-right: 1px solid var(--accent) !important;
}

/* Якщо DataTables додає свої класи */
table.dataTable thead th {
  color: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  border-bottom: 2px solid var(--accent) !important;
  background: rgba(56,189,248,0.06) !important;
}

/* Стрілочки сортування */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
  color: var(--accent) !important;
}

/* ===== PLANETS EDITOR TABLE FIX ===== */

/* Відступ таблиці від поля пошуку */
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 10px;
}

.dataTables_wrapper table.dataTable {
  margin-top: 10px !important;
}

/* Блакитні заголовки */
.dataTables_wrapper table.dataTable thead th {
  color: var(--accent) !important;
  border-top: 2px solid var(--accent) !important;
  border-bottom: 2px solid var(--accent) !important;
  border-right: 1px solid var(--accent) !important;
  border-left: 1px solid var(--accent) !important;
  background: rgba(56,189,248,0.08) !important;
}

/* Щоб крайні комірки мали вертикальну лінію */
.dataTables_wrapper table.dataTable thead th:first-child {
  border-left: 2px solid var(--accent) !important;
}

.dataTables_wrapper table.dataTable thead th:last-child {
  border-right: 2px solid var(--accent) !important;
}

/* Стрілочки сортування */
.dataTables_wrapper table.dataTable thead .sorting,
.dataTables_wrapper table.dataTable thead .sorting_asc,
.dataTables_wrapper table.dataTable thead .sorting_desc {
  color: var(--accent) !important;
}

/* Рельєфний заголовок редактора */
h1 {
    color: #ffffff;
    letter-spacing: 1px;

    /* Блакитний "бордер" навколо тексту */
    -webkit-text-stroke: 1px #2BB9FF;

    /* Рельєф (виступаючий ефект) */
    text-shadow:
        0 1px 0 #0a1a2f,
        0 2px 0 #091528,
        0 3px 4px rgba(0,0,0,0.6),
        0 0 8px rgba(43,185,255,0.6);
}



/* ===== aspekts_editor: textarea right of selects (baseline) ===== */
#editor-body.editor-row{
  display:flex;
  align-items:flex-start;
  gap:38px; /* ~1 cm */
}

#editor-body.editor-row .editor-left{
  flex:1 1 auto;
  min-width:0;
}

#editor-body.editor-row .editor-right{
  flex:0 0 460px; /* right pane width */
  min-width:420px;
}

#editor-body.editor-row .editor-right textarea{
  width:100%;
  min-height:420px;
  box-sizing:border-box;
}


/* ===== aspekts_editor: selects 30% shorter & prevent textarea resize overflow ===== */

/* Make selects 30% shorter than their current full-width behavior */
#editor-body .grid select{
  width:70% !important;      /* 30% shorter */
  max-width:70% !important;
  box-sizing:border-box;
}

/* Keep inputs (if any) aligned similarly */
#editor-body .grid input[type="text"],
#editor-body .grid input[type="number"]{
  width:70% !important;
  max-width:70% !important;
  box-sizing:border-box;
}

/* Do not allow textarea to be resized beyond container */
#editor-body textarea{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  resize:vertical;    /* allow vertical resize only */
  overflow:auto;
}

/* Constrain textarea resize inside blue bordered container */
#editor-body{
  overflow:hidden;
}

#editor-body textarea{
  max-width:100%;
  box-sizing:border-box;
}

/* DataTables: вирівняти "Показати" і "Пошук" по одній горизонталі */
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label{
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  line-height: 1 !important;
}

/* Прибираємо зайві відступи, які часто "садять" select нижче */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter{
  margin: 0 !important;
  padding: 0 !important;
  margin-bottom: 20px !important;
}

/* Вирівнюємо самі контролли по baseline */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input[type="search"]{
  vertical-align: middle !important;
  margin: 0 !important;
  line-height: 1 !important;
}

/* 3 мм відступ між написом/повідомленням і textarea */
#lookupStatus {
    margin-bottom: 3mm;
}

/* === Wide hero block (for explanation page) === */
.hero.hero--wide{
  grid-template-columns: 1fr !important; /* прибираємо порожню праву колонку */
}

.hero.hero--wide > *{
  grid-column: 1 / -1;  /* на всяк випадок — все в одну колонку */
  max-width: none !important;
}

/* === Custom star bullet for explanation page === */

.hero--wide ul{
    list-style: none;
    padding-left: 0;
}

.hero--wide ul li{
    position: relative;
    padding-left: 22px; /* відступ під іконку */
    margin-bottom: 8px;
}

.hero--wide ul li::before{
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("/ua/work/images/star.png");
    background-size: 20px 20px;
    background-repeat: no-repeat;
}

/* === Custom star bullets for index hero features === */
.hero--stars .features ul{
  list-style: none;
  padding-left: 0;
  margin: 8px 0;
}

.hero--stars .features ul li{
  position: relative;
  padding-left: 22px;   /* місце під 12px іконку + відступ */
  margin-bottom: 6px;
}

.hero--stars .features ul li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: url("/ua/work/images/star.png") no-repeat center;
  background-size: 20px 20px;
}
