/* SympLink v4 — Page layout styles */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sl-blue:       #0063a5;
  --sl-blue-light: #0085d4;
  --sl-blue-bg:    #e6f4ff;
  --sl-text:       #0a2540;
  --sl-muted:      #5a7a94;
  --sl-border:     #e8f0f5;
  --sl-radius:     16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f4f8fc;
  color: var(--sl-text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.sl-header {
  background: #fff;
  border-bottom: 1px solid var(--sl-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,80,120,.06);
}

.sl-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sl-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--sl-text);
}

.sl-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--sl-blue), var(--sl-blue-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.sl-logo-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--sl-text);
}

.sl-logo-name span { color: var(--sl-blue); }

.sl-header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sl-nav-link {
  color: var(--sl-muted);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all .15s;
}

.sl-nav-link:hover { background: var(--sl-blue-bg); color: var(--sl-blue); }

#sl-settings-btn {
  background: none;
  border: 1.5px solid var(--sl-border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: .85rem;
  color: var(--sl-muted);
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .15s;
}

#sl-settings-btn:hover { border-color: var(--sl-blue); color: var(--sl-blue); background: var(--sl-blue-bg); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.sl-hero {
  background: linear-gradient(160deg, #e8f4ff 0%, #f4f8fc 60%);
  padding: 28px 24px 20px;
  text-align: center;
  border-bottom: 1px solid var(--sl-border);
}

.sl-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sl-blue-bg);
  color: var(--sl-blue);
  font-size: .82rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.sl-hero-dot {
  width: 8px; height: 8px;
  background: #00b050;
  border-radius: 50%;
  animation: sl-pulse 1.8s infinite;
}

@keyframes sl-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.35); }
}

.sl-hero-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--sl-text);
  line-height: 1.2;
  margin-bottom: 8px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.sl-hero-title em { font-style: normal; color: var(--sl-blue); }

.sl-hero-sub {
  font-size: .92rem;
  color: var(--sl-muted);
  max-width: 520px;
  margin: 0 auto 12px;
}

.sl-hero-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--sl-muted);
}

.sl-hero-stats strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--sl-text);
  line-height: 1;
}

/* ── Main widget area ─────────────────────────────────────────────────────── */

.sl-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.sl-footer {
  background: #fff;
  border-top: 1px solid var(--sl-border);
  padding: 28px 24px;
  text-align: center;
  font-size: .82rem;
  color: var(--sl-muted);
}

.sl-footer a { color: var(--sl-blue); text-decoration: none; }
.sl-footer a:hover { text-decoration: underline; }

.sl-footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.sl-disclaimer {
  margin-top: 12px;
  font-size: .78rem;
  color: #aac;
  max-width: 560px;
  margin-left: auto; margin-right: auto;
}

/* ── Settings Modal ──────────────────────────────────────────────────────── */

.sl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,37,64,.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
  animation: sl-fade-in .2s ease;
}

@keyframes sl-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.sl-modal {
  background: #fff;
  border-radius: 20px;
  padding: 36px 40px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  position: relative;
}

.sl-modal-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none;
  font-size: 1.6rem; color: #aaa;
  cursor: pointer; line-height: 1;
  transition: color .15s;
}
.sl-modal-close:hover { color: #333; }

.sl-modal h3 {
  font-size: 1.1rem; font-weight: 800;
  color: var(--sl-text); margin-bottom: 6px;
}

.sl-modal p {
  font-size: .88rem; color: var(--sl-muted); margin-bottom: 20px;
}

.sl-modal-field { margin-bottom: 16px; }

.sl-modal-field label {
  display: block;
  font-size: .87rem; font-weight: 600;
  color: #2c4a62; margin-bottom: 6px;
}

.sl-modal-field input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #c2d9f0;
  border-radius: 10px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--sl-text);
  transition: border-color .2s;
}
.sl-modal-field input:focus { outline: none; border-color: var(--sl-blue); }

.sl-modal-hint {
  font-size: .78rem; color: var(--sl-muted); margin-top: 6px;
}

.sl-modal-error {
  color: #c0392b; font-size: .87rem; margin-bottom: 12px; min-height: 18px;
}

.sl-modal-save {
  width: 100%;
  background: linear-gradient(135deg, var(--sl-blue), var(--sl-blue-light));
  color: #fff;
  border: none;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .2s;
}
.sl-modal-save:hover { opacity: .9; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .sl-hero { padding: 44px 16px 32px; }
  .sl-hero-stats { gap: 20px; }
  .sl-main { padding: 28px 12px 60px; }
  .sl-modal { padding: 28px 20px; }
  .sl-header-nav .sl-nav-link { display: none; }
}

/* ── Honeypot — невидимо для людей, боты заполняют ──────────────────────── */
.sl-hp-wrap {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
