/* SooperKanoon - Citation Search (journal-reported judgments) */

.sk-cite-page {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 38%, #f8fafc 100%);
  min-height: 60vh;
  padding-bottom: 3rem;
}

.sk-cite-page .sk-container {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.sk-cite-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 48%, #3730a3 100%);
  border-radius: 18px;
  padding: 1.75rem 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 32px rgba(49, 46, 129, 0.22);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.sk-cite-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -8%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.sk-cite-hero__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}

.sk-cite-hero__brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  min-width: 0;
}

.sk-cite-hero__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(129, 140, 248, 0.22);
  color: #c7d2fe;
  font-size: 22px;
  flex-shrink: 0;
  border: 1px solid rgba(199, 210, 254, 0.2);
}

.sk-cite-hero__title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #fff;
}

.sk-cite-hero__subtitle {
  margin: 0.5rem 0 0;
  font-size: 1.0625rem;
  color: #c7d2fe;
  line-height: 1.6;
  max-width: 40rem;
}

.sk-cite-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sk-cite-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e0e7ff;
}

.sk-cite-hero__pill .fa {
  font-size: 0.75rem;
  color: #a5b4fc;
}

.sk-cite-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.125rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #e0e7ff !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none !important;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.sk-cite-hero__link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff !important;
}

/* ── Layout ───────────────────────────────────────────────────── */
.sk-cite-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .sk-cite-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
}

.sk-cite-main {
  min-width: 0;
}

/* ── Form card ────────────────────────────────────────────────── */
.sk-cite-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.sk-cite-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.sk-cite-card__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}

.sk-cite-card__hint {
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.5;
}

/* Live preview */
.sk-cite-preview {
  padding: 1rem 1.5rem;
  background: linear-gradient(90deg, #eef2ff 0%, #f5f3ff 100%);
  border-bottom: 1px solid #c7d2fe;
}

.sk-cite-preview__label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4338ca;
}

.sk-cite-preview__value {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #1e1b4b;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.sk-cite-preview__value.is-empty {
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  color: #64748b;
}

.sk-cite-preview__note {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.5;
}

/* Form body */
.sk-cite-form {
  padding: 1.25rem 1.5rem 1.5rem;
}

.sk-cite-steps {
  display: grid;
  gap: 1.125rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .sk-cite-steps {
    grid-template-columns: 1fr 1fr;
  }
}

.sk-cite-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sk-cite-field--full {
  grid-column: 1 / -1;
}

.sk-cite-field.is-hidden {
  display: none;
}

.sk-cite-field__label {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
}

.sk-cite-field__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #4f46e5;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sk-cite-field__help {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.45;
}

.sk-cite-input {
  width: 100%;
  min-height: 3.25rem;
  border-radius: 12px;
  border: 2px solid #cbd5e1;
  background: #fff;
  padding: 0.75rem 1rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: #0f172a;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sk-cite-input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.sk-cite-input.is-filled {
  border-color: #818cf8;
  background: #fafaff;
}

.sk-cite-input.sk-field-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.sk-cite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.sk-cite-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.875rem 2rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.sk-cite-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.sk-cite-submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.35), 0 4px 14px rgba(79, 70, 229, 0.35);
}

.sk-cite-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 3.25rem;
  padding: 0.875rem 1.25rem;
  border: 2px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.sk-cite-reset:hover {
  border-color: #94a3b8;
  color: #0f172a;
}

/* ── Aside panels ─────────────────────────────────────────────── */
.sk-cite-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sk-cite-tip-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.125rem 1.25rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.sk-cite-tip-card__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.sk-cite-tip-card__title .fa {
  color: #4f46e5;
}

.sk-cite-tips {
  margin: 0;
  padding: 0 0 0 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #475569;
}

.sk-cite-tips li + li {
  margin-top: 0.5rem;
}

.sk-cite-examples {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sk-cite-example-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.sk-cite-example-btn:hover,
.sk-cite-example-btn:focus {
  border-color: #818cf8;
  background: #eef2ff;
  outline: none;
}

.sk-cite-example-btn__cite {
  font-size: 1rem;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #312e81;
}

.sk-cite-example-btn__desc {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.4;
}

.sk-cite-journals {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sk-cite-journals li {
  display: inline-flex;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: #f1f5f9;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
}

/* Publisher help banner inside form */
.sk-cite-pub-help {
  margin: 0 0 1rem;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #78350f;
}

.sk-cite-tips a {
  color: #4f46e5;
  font-weight: 600;
  text-decoration: none;
}

.sk-cite-tips a:hover {
  text-decoration: underline;
}
