/* ───────────────────────────────────────────────
   Inspire Me Overlay
   ─────────────────────────────────────────────── */

/* Backdrop */
.inspire-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

.inspire-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Panel */
.inspire-panel {
  background: var(--light-colour, #f7f7f7);
  border-radius: 1.2vmin;
  padding: 0;
  width: 95%;
  height: 95%;
  overflow-y: auto;
  position: relative;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    rgba(0, 0, 0, 0.25) 0px 5px 10px,
    rgba(0, 0, 0, 0.5) 0px 5px 5px;
}

.inspire-content {
  width: 90%;
  height: fit-content;
  max-width: 70vmin;
  background-color: var(--white-colour);
  border-radius: 1vmin;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

/* Shared nav header (back + close) */
.inspire-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--dark-colour);
  padding: 2vmin 3vmin;
  border-radius: 1vmin 1vmin 0 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.inspire-nav-header h1 {
  color: var(--white-colour);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.inspire-nav-header .inspire-close {
  position: static;
}

/* Close button */
.inspire-close,
.inspire-back {
  background: none;
  border: none;
  cursor: pointer;
  width: fit-content;
  height: fit-content;
  padding: 1.25vmin;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}

.inspire-close svg,
.inspire-back svg {
  width: 2.5vmin;
  height: 2.5vmin;
  fill: var(--light-colour, #fff);
}

.inspire-close:hover,
.inspire-back:hover {
  background: rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.inspire-close:focus-visible,
.inspire-back:focus-visible {
  outline: 2px solid var(--dark-colour, #333);
  outline-offset: 2px;
}

.inspire-padded-content {
  padding: 3vmin 2vmin;
}

/* Title */
.inspire-panel .addSpaceAboveBelow {
  margin-top: 5vmin;
}

.inspire-panel .inspire-subtitle {
  font-size: 2.25vmin;
  margin-top: 1.5vmin;
}

.inspire-panel p,
.inspire-panel h2 {
  font-size: 2vmin;
  margin-top: 3vmin;
  color: var(--grey-colour);
  text-transform: none;
  font-weight: 300;
}

.inspire-panel h2 {
  font-size: 2.5vmin;
}

.inspire-nav-header h2 {
  color: var(--white-colour);
  text-transform: none;
  font-weight: 300;
  margin-top: 0;
  text-wrap: balance;
}

/* ───────────────────────────────────────────────
   Step 1: Intent grid
   ─────────────────────────────────────────────── */

.inspire-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2vmin;
  margin-top: 3vmin;
}

.inspire-intent,
.inspire-type-btn,
.inspire-cta-button {
  display: flex;
  align-items: center;
  gap: 1vmin;
  padding: 2vmin 1vmin;
  border: 0.2vmin solid var(--dark-colour, #333);
  border-radius: 1vmin;
  background: var(--white-colour, #fff);
  cursor: pointer;
  font-size: 1.75vmin;
  font-weight: 400;
  color: var(--dark-colour, #333);
  transition:
    background 0.15s ease,
    color 0.15s ease;
  text-align: left;
  text-transform: uppercase;
  box-shadow:
    rgba(0, 0, 0, 0.4) 0px 2px 4px,
    rgba(0, 0, 0, 0.3) 0px 7px 13px -3px,
    rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

.inspire-intent svg,
.inspire-type-btn svg,
.inspire-cta-button svg {
  width: 3vmin;
  height: 3vmin;
  flex-shrink: 0;
  fill: currentColor;
  transition: fill 0.15s ease;
  padding-right: 1vmin;
  margin-left: 1vmin;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.inspire-intent:hover,
.inspire-type-btn:hover,
.inspire-cta-button:hover {
  background: var(--dark-colour, #333);
  color: var(--white-colour, #fff);
}

.inspire-intent:focus-visible,
.inspire-type-btn:focus-visible,
.inspire-cta-button:focus-visible {
  outline: 2px solid var(--dark-colour, #333);
  outline-offset: 2px;
}

/* ───────────────────────────────────────────────
   Step 2: Discussion type picker
   ─────────────────────────────────────────────── */

.inspire-types {
  display: flex;
  flex-direction: column;
  gap: 1vmin;
  margin-top: 4vmin;
}

/* ───────────────────────────────────────────────
   Step 3: Activity detail
   ─────────────────────────────────────────────── */

.inspire-detail-explanation p {
  font-size: 1.75vmin;
  margin: 0;
  line-height: 1.5;
}

.inspire-detail-explanation p:first-child {
  font-weight: 600;
  font-size: 2vmin;
}

/* Screenshot */
.inspire-detail-screenshot {
  margin-top: 2.5vmin;
  margin-bottom: 2.5vmin;
  text-align: center;
}

.inspire-detail-screenshot img {
  display: inline-block;
  width: 40%;
  height: auto;
  border-radius: 1vmin;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Works well when */
.inspire-detail-bullets {
  margin-bottom: 2.8vmin;
}

.inspire-detail-bullets h3 {
  font-size: 1.4vmin;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 1vmin;
  color: var(--dark-colour, #333);
}

.inspire-detail-bullets ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.inspire-detail-bullets li {
  position: relative;
  margin-bottom: 0.5vmin;
  font-size: 1.5vmin;
  line-height: 1.5;
}

/* ───────────────────────────────────────────────
   Topic input section
   ─────────────────────────────────────────────── */

.inspire-input-section {
  text-align: center;
}

.inspire-topic-label {
  display: block;
  text-align: center;
  font-size: 2vmin;
  font-weight: 600;
  margin-top: 3vmin;
  margin-bottom: 2vmin;
  color: var(--grey-colour, #333);
}

.inspire-topic-input {
  display: block;
  width: 90%;
  padding: 1.2vmin 1.4vmin;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 1vmin;
  background: var(--white-colour, #fff);
  font-family: inherit;
  font-size: 1.6vmin;
  color: var(--dark-colour, #333);
  box-sizing: border-box;
  transition: border-color 0.15s ease;
  margin: auto;
  text-align: center;
}

.inspire-topic-input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.inspire-topic-input:focus {
  outline: none;
  border-color: var(--dark-colour, #4a6cf7);
}

.inspire-topic-input:disabled {
  opacity: 0.5;
}

.inspire-inline-error {
  font-size: 1.5vmin;
  color: #d32f2f;
  margin: 0.6vmin 0 0;
  min-height: 1.2em;
}

.inspire-inline-error:empty {
  margin: 0;
}

/* ───────────────────────────────────────────────
   CTA button
   ─────────────────────────────────────────────── */

.inspire-cta {
  text-align: center;
  padding-top: 1.2vmin;
}

.inspire-cta-button {
  margin: auto;
  padding-right: 2vmin;
}

.inspire-cta-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.inspire-cta-button:hover:not(:disabled) {
  opacity: 1;
}

.inspire-cta-button.is-loading {
  pointer-events: none;
}

.inspire-spinner {
  display: inline-block;
  width: 1.8vmin;
  height: 1.8vmin;
  border: 0.25vmin solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: inspire-spin 0.6s linear infinite;
}

@keyframes inspire-spin {
  to {
    transform: rotate(360deg);
  }
}

.inspire-cta-button:focus-visible {
  outline: 2px solid var(--dark-colour, #333);
  outline-offset: 2px;
}

/* ───────────────────────────────────────────────
   Step 4: Save / Discard dialog
   ─────────────────────────────────────────────── */

.inspire-save-heading {
  margin-bottom: 2.4vmin !important;
}

.inspire-save-actions {
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding-top: 1.5vmin;
}

.inspire-save-actions button {
  width: fit-content;
}

.inspire-save-actions button:first-of-type {
  background-color: #b33939;
  color: var(--white-colour);
  border-color: #ff5252;
}

.inspire-save-button.is-saving {
  pointer-events: none;
}

.inspire-discard-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

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

@media (max-width: 600px) {
  .inspire-grid {
    grid-template-columns: 1fr;
  }

  .inspire-panel {
    padding: 3.2vmin 2vmin;
  }
}
