/* ============================================================
   Lenta Planov — Front Styles
   ============================================================ */

.lsp-wrap {
  --primary: #8b5df6;
  --secondary: #b2ef2c;
  --bg: #f5f1e7;
  --card: #fffdf8;
  --text: #1a1a2e;
  --muted: #6b6b80;
  --border: #e7e2d5;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}
.lsp-wrap * { box-sizing: border-box; }
.lsp-wrap a { text-decoration: none; color: inherit; }

/* HERO */
.lsp-hero {
  background: linear-gradient(120deg, #4196e8 0%, #6a7cf0 55%, #8b5df6 100%);
  border-radius: 24px;
  padding: 40px;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.lsp-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}
.lsp-hero-title {
  font-family: 'Unbounded', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 42px;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.lsp-hero-sub {
  font-size: 16px;
  opacity: 0.9;
  margin: 0 0 24px;
  max-width: 400px;
}
.lsp-hero-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lsp-step {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #1a1a2e;
  transform: rotate(-3deg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}
.lsp-step:hover { transform: rotate(0) scale(1.05); }
.lsp-step span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #fee06d;
  border-radius: 50%;
  color: #1a1a2e;
  font-size: 14px;
}
.lsp-step-1 { background: #8b5df6; color: #fff; margin-left: 0; }
.lsp-step-2 { background: #1aaa76; color: #fff; margin-left: 40px; transform: rotate(2deg); }
.lsp-step-3 { background: #fee06d; margin-left: 20px; }

/* Кнопки в ленте */
.lsp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.lsp-btn-primary {
  background: var(--secondary);
  color: var(--text);
}
.lsp-btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.lsp-btn-outline {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}
.lsp-btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ФИЛЬТРЫ */
.lsp-filters {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 24px;
}
.lsp-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.lsp-select {
  padding: 10px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}
.lsp-search {
  display: flex;
  flex: 1;
  min-width: 250px;
  position: relative;
}
.lsp-search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: 50px;
  border: 1px solid var(--border);
  font-size: 14px;
}
.lsp-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.lsp-btn-search {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  padding: 0 20px;
  border-radius: 50px;
  background: var(--secondary);
  color: var(--text);
  font-weight: 700;
  border: none;
  cursor: pointer;
}

/* Чипы категорий */
.lsp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lsp-chip {
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}
.lsp-chip:hover, .lsp-chip.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* КАРТОЧКИ */
.lsp-feed { display: flex; flex-direction: column; gap: 16px; }
.lsp-card {
  display: grid;
  grid-template-columns: 100px 1fr 200px;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  transition: all 0.2s;
}
.lsp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  border-color: rgba(139,93,246,0.4);
}
.lsp-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  padding: 12px;
  height: 100px;
  text-align: center;
}
.lsp-date-badge b { font-size: 32px; line-height: 1; font-family: 'Unbounded'; }
.lsp-date-badge span { font-size: 12px; text-transform: uppercase; font-weight: 600; }
.lsp-date-badge .lsp-time { margin-top: 4px; opacity: 0.8; }

.lsp-card-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; margin-bottom: 8px; }
.lsp-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.lsp-avatar-initials { background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.lsp-card-title { font-family: 'Unbounded', sans-serif; font-size: 20px; margin: 0 0 8px; line-height: 1.3; }
.lsp-card-title a:hover { color: var(--primary); }
.lsp-card-text { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0 0 12px; }
.lsp-card-info { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); }
.lsp-card-info span { display: flex; align-items: center; gap: 6px; }
.lsp-ico { width: 16px; height: 16px; display: inline-block; background-size: contain; background-repeat: no-repeat; }

.lsp-card-side { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.lsp-joined { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.lsp-avatars { display: flex; }
.lsp-avatar-sm { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--card); margin-left: -8px; }
.lsp-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.lsp-actions .lsp-btn { width: 100%; justify-content: center; }
.lsp-btn-secondary { background: var(--primary); color: #fff; }
.lsp-btn-secondary:hover { filter: brightness(1.1); }

/* Empty state */
.lsp-empty {
  text-align: center;
  padding: 60px 20px;
  border: 2px dashed var(--border);
  border-radius: 24px;
}
.lsp-empty h3 { font-family: 'Unbounded'; font-size: 20px; margin: 0 0 8px; }
.lsp-empty p { color: var(--muted); margin: 0 0 20px; }
.lsp-btn-add-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 20px;
  margin-top: 16px;
  background: transparent;
  border: 2px dashed var(--border);
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.lsp-btn-add-more:hover { border-color: var(--primary); color: var(--primary); }

/* Модалка */
.lsp-modal { position: fixed; inset: 0; display: none; z-index: 9999; }
.lsp-modal[aria-hidden="false"] { display: block; }
.lsp-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.lsp-modal-card { position: relative; max-width: 640px; margin: 5vh auto; background: #fffdf8; border-radius: 24px; padding: 24px; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 48px rgba(0,0,0,.2); }
.lsp-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.lsp-modal-head h3 { font-family: 'Unbounded', sans-serif; font-size: 24px; margin: 0; }
.lsp-icon-btn { background: none; border: none; font-size: 24px; cursor: pointer; color: #6b6b80; }
.lsp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lsp-form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.lsp-form-row label { font-size: 14px; font-weight: 600; }
.lsp-form-row input, .lsp-form-row textarea, .lsp-form-row select { padding: 10px 12px; border: 1px solid #e7e2d5; border-radius: 12px; font: inherit; font-size: 15px; background: #fff; }
.lsp-form-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.lsp-counter { text-align: right; font-size: 12px; color: #6b6b80; }

/* Mobile */
@media (max-width: 768px) {
  .lsp-hero-title { font-size: 28px; }
  .lsp-hero-inner { flex-direction: column; align-items: flex-start; }
  .lsp-hero-steps { display: none; }
  .lsp-card { grid-template-columns: 1fr; }
  .lsp-date-badge { flex-direction: row; width: fit-content; height: auto; padding: 6px 16px; gap: 8px; }
  .lsp-date-badge b { font-size: 20px; }
}

.lsp-ico { width: 16px; height: 16px; display: inline-block; background-size: contain; background-repeat: no-repeat; background-position: center; }

.lsp-tabs { display: flex; gap: 8px; margin-top: 20px; }
.lsp-tab { display: inline-flex; height: 44px; align-items: center; padding: 0 20px; border-radius: 999px; border: 1px solid #e7e2d5; background: #fff; font-weight: 600; text-decoration: none; color: #1a1a2e; }
.lsp-tab.is-active { background: #8b5df6; color: #fff; border-color: #8b5df6; }

.lsp-my-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 20px; border: 1px solid #e7e2d5; border-radius: 24px; background: #fffdf8; }
.lsp-my-main { min-width: 0; }
.lsp-my-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; justify-content: flex-end; max-width: 460px; }

.lsp-back { display: inline-block; margin-bottom: 16px; font-weight: 600; color: #6b6b80; text-decoration: none; }
.lsp-back:hover { color: #8b5df6; }
.lsp-notice { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 500; }
.lsp-notice-warn { background: #fff7cc; border: 1px solid #fee06d; color: #5c4a00; }
.lsp-plan { background: #fffdf8; border: 1px solid #e7e2d5; border-radius: 24px; padding: 24px; }
.lsp-plan-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.lsp-plan-author { display: flex; align-items: center; gap: 10px; }
.lsp-plan-title { font-family: 'Unbounded', sans-serif; font-size: 28px; margin: 0 0 16px; }
.lsp-plan-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: #6b6b80; margin-bottom: 16px; }
.lsp-plan-text { font-size: 16px; line-height: 1.6; margin-bottom: 20px; }
.lsp-plan-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; border-top: 1px solid #e7e2d5; }
.lsp-plan-participants { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e7e2d5; }
.lsp-participants-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.lsp-participant { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid #e7e2d5; background: #fff; text-decoration: none; color: #1a1a2e; font-size: 14px; }
.lsp-participant:hover { border-color: #8b5df6; color: #8b5df6; }
.lsp-muted { color: #6b6b80; }
.lsp-pagination { display: flex; gap: 6px; justify-content: center; padding: 16px 0; }
.lsp-pagination a { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 999px; border: 1px solid #e7e2d5; background: #fff; color: #1a1a2e; text-decoration: none; }
.lsp-pagination a.lsp-active { background: #8b5df6; color: #fff; border-color: #8b5df6; }