/* ============================================
   CREATOR TOOLS — COMPONENTS & MICRO-INTERACTIONS
   ============================================ */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, var(--yt-red) 0%, #D6002A 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px var(--yt-red-glow);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #FF1A47 0%, var(--yt-red) 100%);
  box-shadow: 0 6px 24px rgba(255, 0, 51, 0.4);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn--sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn--icon {
  width: 42px;
  height: 42px;
  padding: 0;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* --- Hero Search / Tool Input Wrapper --- */
.hero-input-card {
  max-width: 720px;
  margin: 0 auto 36px;
  background: var(--surface-glass);
  padding: 12px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
}

.hero-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.input-icon-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 14px;
  color: var(--text-muted);
}

.input-main {
  flex: 1;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 1rem;
  padding: 14px 8px;
  outline: none;
  font-family: var(--font-sans);
}

.input-main::placeholder {
  color: var(--text-dim);
}

@media (max-width: 640px) {
  .hero-input-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .input-icon-prefix { display: none; }
  .input-main { padding: 12px 14px; background: rgba(255,255,255,0.03); border-radius: var(--radius-md); }
  .hero-input-wrapper .btn { width: 100%; }
}

/* Sample pills under input */
.quick-samples {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.quick-samples__label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.quick-samples__pill {
  font-size: 0.8rem;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-samples__pill:hover {
  background: var(--surface-hover);
  color: #FFFFFF;
  border-color: var(--border-hover);
}

/* --- FAQ Accordion --- */
.faq-container {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item__question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-item__question:hover {
  color: var(--yt-red);
}

.faq-item__icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq-item.active .faq-item__icon {
  transform: rotate(180deg);
  color: var(--yt-red);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease-out;
}

.faq-item.active .faq-item__answer {
  max-height: 400px;
}

.faq-item__answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --- Toast Feedback --- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #181B29;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 9999;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast--success {
  border-color: var(--emerald);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, #141824 100%);
}

@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.toast.hide {
  animation: toastOut 0.25s forwards;
}

@keyframes toastOut {
  to { transform: translateY(20px); opacity: 0; }
}

@media (max-width: 640px) {
  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    justify-content: center;
    text-align: center;
    font-size: 0.88rem;
    padding: 12px 16px;
  }

  .faq-item__question {
    padding: 16px 18px;
    font-size: 0.95rem;
  }

  .faq-item__answer-inner {
    padding: 0 18px 16px;
    font-size: 0.9rem;
  }
}

