/* ЛОМ – Локална омладинска мрежа */
:root {
  --lom-accent: #fd4800;
  --lom-accent-2: #c94b4b;
  --lom-ink: #2f2f2f;
  --lom-muted: #6b6b6b;
  --lom-line: #e6e1dc;
  --lom-bg: #faf7f4;
  --lom-card: #ffffff;
  --lom-radius: 14px;
}

.lom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.lom *, .lom-modal * { color: inherit; }
.lom [hidden], .lom-modal [hidden] { display: none !important; }
/* neutrališe globalna pravila iz main.css (.fa-envelope:before itd.) */
.lom .fas:before, .lom-modal .fas:before {
  color: inherit;
  font-size: inherit;
  margin: 0;
  line-height: inherit;
}
.lom, .lom-modal { color: var(--lom-ink); }
.lom-muted { color: var(--lom-muted); line-height: 1.6; max-width: 70ch; }

/* HERO */
.lom-hero {
  margin: 48px 0 24px;
  padding: 56px 48px;
  border-radius: 24px;
  background: linear-gradient(120deg, var(--lom-accent), var(--lom-accent-2));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.lom-hero::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.lom-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.85;
}
.lom-title {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  margin: 10px 0 16px;
}
.lom-lead { font-size: 17px; line-height: 1.65; max-width: 62ch; opacity: 0.95; }
.lom-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.lom-hero .lom-btn--primary { background: #fff; color: var(--lom-accent); }
.lom-hero .lom-btn--primary:hover { background: #fff3ec; }
.lom-hero .lom-btn--ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.lom-hero .lom-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.lom-stats { display: flex; flex-wrap: wrap; gap: 36px; position: relative; z-index: 1; }
.lom-stats dt { font-size: 32px; font-weight: 800; }
.lom-stats dd { font-size: 13px; opacity: 0.85; }

/* BUTTONS */
.lom-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  font-family: inherit;
}
.lom-btn:active { transform: translateY(1px); }
.lom-btn--primary { background: var(--lom-accent); color: #fff; }
.lom-btn--primary:hover { background: #e64100; box-shadow: 0 6px 16px rgba(253, 72, 0, 0.3); }
.lom-btn--ghost { background: transparent; border-color: var(--lom-line); color: var(--lom-ink); }
.lom-btn--ghost:hover { border-color: var(--lom-accent); color: var(--lom-accent); }
.lom-btn--sm { padding: 9px 16px; font-size: 13px; white-space: nowrap; }
.lom-btn:focus-visible, .lom input:focus-visible, .lom select:focus-visible, .lom textarea:focus-visible {
  outline: 3px solid rgba(253, 72, 0, 0.35);
  outline-offset: 2px;
}

/* SECTIONS */
.lom-section { margin: 72px 0; scroll-margin-top: 20px; }
.lom-section--panel {
  background: var(--lom-bg);
  border: 1px solid var(--lom-line);
  border-radius: 24px;
  padding: 44px 40px;
}
.lom-section-head { margin-bottom: 24px; }
.lom-h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--lom-ink);
}
.lom-h2::after {
  content: "";
  display: block;
  width: 48px; height: 4px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--lom-accent);
}

/* STEPS */
.lom-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.lom-steps li {
  background: var(--lom-card);
  border: 1px solid var(--lom-line);
  border-radius: var(--lom-radius);
  padding: 26px;
}
.lom-step-num {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff1ea;
  color: var(--lom-accent);
  font-weight: 800;
  margin-bottom: 14px;
}
.lom-steps h3 { font-size: 18px; margin-bottom: 8px; }
.lom-steps p { color: var(--lom-muted); line-height: 1.55; font-size: 15px; }

/* FILTERS */
.lom-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
}
.lom-search { position: relative; }
.lom-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--lom-muted); }
.lom-search input { padding-left: 40px !important; }
.lom input, .lom select, .lom textarea, .lom-modal input, .lom-modal select, .lom-modal textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--lom-line);
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  color: var(--lom-ink);
}
.lom textarea, .lom-modal textarea { resize: vertical; }
.lom-count { margin: 14px 0 18px; color: var(--lom-muted); font-size: 14px; }

/* CARDS */
.lom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.lom-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--lom-card);
  border: 1px solid var(--lom-line);
  border-radius: var(--lom-radius);
  padding: 22px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.lom-card:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08); transform: translateY(-2px); border-color: #f3c9b5; }
.lom-card.is-new { border-color: var(--lom-accent); }
.lom-card header { display: flex; gap: 14px; align-items: center; }
.lom-card h3 { font-size: 18px; }
.lom-card-sub { color: var(--lom-muted); font-size: 14px; margin-top: 2px; }
.lom-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  color: #fff !important;
  font-weight: 800;
  font-size: 18px;
}
.lom-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--lom-accent);
  color: #fff !important;
  padding: 3px 8px;
  border-radius: 999px;
  vertical-align: middle;
}
.lom-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--lom-muted); }
.lom-meta i { color: var(--lom-accent); margin-right: 4px; }
.lom-card-desc { font-size: 14px; line-height: 1.55; }
.lom-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lom-tag {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff1ea;
  color: #b33400;
  font-weight: 600;
}
.lom-tags--alt .lom-tag { background: #eef4f1; color: #2f6b55; }
.lom-card footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 0 0;
  border-top: 1px dashed var(--lom-line);
  /* override global footer styles */
  position: static;
  background: none;
  width: auto;
}
.lom-id { font-size: 12px; color: var(--lom-muted); font-weight: 600; letter-spacing: 0.04em; }
.lom-empty { text-align: center; padding: 48px; color: var(--lom-muted); }
.lom-empty i { font-size: 34px; margin-bottom: 10px; color: var(--lom-line); }

/* FORMS */
.lom-form { display: flex; flex-direction: column; gap: 16px; }
.lom-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lom-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.lom-form small { font-weight: 400; color: var(--lom-muted); }
.lom-fieldset { border: 0; }
.lom-fieldset legend { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.lom-chips-select { display: flex; flex-wrap: wrap; gap: 8px; }
.lom-chips-select input { position: absolute; opacity: 0; width: 1px !important; height: 1px; pointer-events: none; }
.lom-form .lom-chips-select label {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--lom-line);
  border-radius: 999px;
  background: #fff;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}
.lom-chips-select label:hover { border-color: var(--lom-accent); }
.lom-chips-select input:checked + label { background: var(--lom-accent); border-color: var(--lom-accent); color: #fff; }
.lom-chips-select input:focus-visible + label { outline: 3px solid rgba(253, 72, 0, 0.35); outline-offset: 2px; }
.lom-form .lom-check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.5; }
.lom-check input { width: 18px !important; height: 18px; margin-top: 2px; flex: none; accent-color: var(--lom-accent); }
.lom-error {
  background: #fdecea;
  color: #a12a1c;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
}
.lom-form > .lom-btn { align-self: flex-start; }
.lom-hp { position: absolute !important; left: -9999px; width: 1px !important; height: 1px; opacity: 0; }
.lom-btn:disabled { opacity: 0.6; cursor: wait; }
.lom-success { text-align: center; padding: 30px 10px; }
.lom-success > i { font-size: 48px; color: #2f9e6b; margin-bottom: 12px; }
.lom-success h3, .lom-success h2 { font-size: 22px; margin-bottom: 8px; }
.lom-success p { color: var(--lom-muted); margin: 0 auto 18px; max-width: 52ch; line-height: 1.55; }
.lom-success--inline { padding: 4px 0 10px; }

/* ORGS */
.lom-orgs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.lom-orgs article {
  border-left: 4px solid var(--lom-accent);
  background: var(--lom-bg);
  border-radius: 0 var(--lom-radius) var(--lom-radius) 0;
  padding: 20px 22px;
}
.lom-orgs h3 { font-size: 16px; margin-bottom: 8px; }
.lom-orgs h3 i { color: var(--lom-accent); margin-right: 6px; }
.lom-orgs p { font-size: 14px; color: var(--lom-muted); line-height: 1.6; }

.lom-demo-note {
  text-align: center;
  font-size: 13px;
  color: var(--lom-muted);
  margin: 40px 0 0;
}
.lom-demo-note button {
  margin-left: 8px;
  background: none;
  border: 0;
  color: var(--lom-accent);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

/* MODAL */
.lom-modal {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  margin: auto;
  border: 0;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
.lom-modal::backdrop { background: rgba(30, 20, 15, 0.55); backdrop-filter: blur(3px); }
.lom-modal h2 { font-size: 24px; margin-bottom: 16px; }
.lom-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--lom-bg);
  cursor: pointer;
  font-size: 16px;
}
.lom-modal-close:hover { background: #fff1ea; color: var(--lom-accent); }
.lom-modal-person {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--lom-bg);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.lom-modal-person .lom-avatar { width: 44px; height: 44px; font-size: 15px; }
.lom-modal-person small { color: var(--lom-muted); }
.lom-modal .lom-muted { font-size: 14px; margin-bottom: 18px; }
.lom-modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.lom-mail-preview {
  background: var(--lom-bg);
  border: 1px solid var(--lom-line);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lom-mail-preview pre {
  white-space: pre-wrap;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--lom-line);
  max-height: 260px;
  overflow: auto;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .lom-filters { grid-template-columns: 1fr 1fr; }
  .lom-search { grid-column: 1 / -1; }
  .lom-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lom { padding: 0 16px; }
  .lom-hero { padding: 36px 24px; border-radius: 18px; margin-top: 24px; }
  .lom-section--panel { padding: 28px 18px; }
  .lom-row, .lom-filters { grid-template-columns: 1fr; }
  .lom-grid { grid-template-columns: 1fr; }
  .lom-modal { padding: 28px 18px; }
  .lom-card footer { flex-direction: column; align-items: stretch; }
  .lom-card footer .lom-btn { justify-content: center; }
}
