/* ============================================
   BRIEF BUILDER — 97% Creative
   Dark page, light brief card
   ============================================ */

/* Wrapper — dark background */
.bb-wrapper {
  background-color: #1a1a1a;
  min-height: 100vh;
  padding: 80px 24px 60px;
}

/* Container */
.bb-container {
  max-width: 880px;
  margin: 0 auto;
}

/* Screens */
.bb-screen {
  display: none;
}
.bb-screen--active {
  display: block;
}

/* ---- HEADER ---- */
.bb-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f2b705;
  margin: 0 0 8px;
}

.bb-title {
  font-family: 'Thunder', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #f5f3eb;
  margin: 0 0 16px;
  line-height: 1;
}

.bb-intro {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #b0ada5;
  margin: 0 0 48px;
  max-width: 640px;
}

/* ---- FORM ---- */
.bb-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.bb-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bb-form-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f5f3eb;
  margin: 0;
}

.bb-required {
  color: #f2b705;
}

.bb-form-hint {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #8a8780;
  margin: 0 0 8px;
  line-height: 1.4;
}

.bb-input {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 14px 16px;
  border: 1px solid #3a3a3a;
  border-radius: 0;
  background: #2a2a2a;
  color: #f5f3eb;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
  resize: vertical;
}

.bb-input::placeholder {
  color: #6a6a6a;
}

.bb-input:focus {
  outline: none;
  border-color: #f2b705;
}

/* ---- BUTTONS ---- */
.bb-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 32px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  text-align: center;
}

.bb-btn--primary {
  background: #f2b705;
  color: #1a1a1a;
}
.bb-btn--primary:hover {
  background: #d9a504;
}

.bb-btn--secondary {
  background: #3a3a3a;
  color: #f5f3eb;
}
.bb-btn--secondary:hover {
  background: #4a4a4a;
}

.bb-btn--ghost {
  background: none;
  color: #8a8780;
  padding: 14px 16px;
  border-bottom: 1px solid transparent;
}
.bb-btn--ghost:hover {
  color: #f5f3eb;
  border-bottom-color: #f5f3eb;
}

/* ---- LOADING ---- */
.bb-loading {
  text-align: center;
  padding: 120px 0;
}

.bb-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #3a3a3a;
  border-top-color: #f2b705;
  border-radius: 50%;
  animation: bb-spin 0.8s linear infinite;
  margin: 0 auto 24px;
}

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

.bb-loading-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #b0ada5;
}

/* ---- BRIEF CARD (light on dark) ---- */
.bb-brief-card {
  background: #ffffff;
  border: 1px solid #e0ddd6;
  padding: 48px;
  margin-bottom: 32px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.bb-brief-header {
  margin-bottom: 32px;
}

.bb-brief-brand {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8a8780;
  margin: 0 0 8px;
}

.bb-brief-title {
  font-family: 'Thunder', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0 0 8px;
  line-height: 1;
}

.bb-brief-project-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

/* Brief sections */
.bb-brief-section {
  margin-bottom: 4px;
}

.bb-brief-section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8780;
  margin: 0 0 6px;
}

.bb-brief-section-content {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #1a1a1a;
  margin: 0;
}

.bb-brief-divider {
  height: 1px;
  background: #e8e6e0;
  margin: 20px 0;
}

/* Brief footer */
.bb-brief-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e8e6e0;
}

.bb-brief-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #8a8780;
  margin: 0;
}

.bb-brief-url {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #f2b705;
  font-weight: 600;
  margin: 0;
}

/* ---- ACTIONS ---- */
.bb-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.bb-copy-status {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #f2b705;
  margin-top: 8px;
  min-height: 20px;
}

/* ---- ERROR ---- */
.bb-error {
  text-align: center;
  padding: 80px 0;
}

.bb-heading {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f5f3eb;
  margin: 0 0 12px;
}

.bb-error-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #8a8780;
  margin: 0 0 24px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .bb-wrapper {
    padding: 60px 16px 40px;
  }

  .bb-title {
    font-size: 2.8rem;
  }

  .bb-brief-card {
    padding: 32px 24px;
  }

  .bb-brief-title {
    font-size: 2rem;
  }

  .bb-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .bb-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .bb-title {
    font-size: 2.2rem;
  }

  .bb-brief-card {
    padding: 24px 16px;
  }

  .bb-brief-section-content {
    font-size: 0.85rem;
  }
}
