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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  min-height: 100vh;
}

.container { max-width: 800px; margin: 0 auto; padding: 24px 16px; }

header { text-align: center; margin-bottom: 32px; }
header h1 {
  font-size: 28px; font-weight: 700;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
header p { color: #888; font-size: 14px; }

.card {
  background: #151515; border: 1px solid #2a2a2a;
  border-radius: 12px; padding: 24px; margin-bottom: 20px;
}
.card h2 { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: #fff; }

label { display: block; font-size: 13px; color: #999; margin-bottom: 6px; font-weight: 500; }

textarea {
  width: 100%; padding: 12px; background: #1a1a1a; border: 1px solid #333;
  border-radius: 8px; color: #fff; font-size: 14px; font-family: inherit;
  resize: vertical; min-height: 80px; margin-bottom: 16px;
}
textarea:focus { outline: none; border-color: #ff6b35; }

.file-upload {
  border: 2px dashed #333; border-radius: 8px; padding: 24px;
  text-align: center; cursor: pointer; transition: border-color 0.2s; margin-bottom: 16px;
}
.file-upload:hover { border-color: #ff6b35; }
.file-upload.has-file { border-color: #4caf50; border-style: solid; }
.file-upload input[type="file"] { display: none; }
.file-upload .icon { font-size: 32px; margin-bottom: 8px; }
.file-upload .text { font-size: 13px; color: #888; }
.file-upload .filename { font-size: 13px; color: #4caf50; margin-top: 4px; }

.btn {
  width: 100%; padding: 14px; border: none; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity 0.2s;
}
.btn-primary { background: linear-gradient(135deg, #ff6b35, #f7931e); color: #fff; }
.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* Hook selection */
.hook-item {
  background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 8px;
  padding: 12px; margin-bottom: 8px; cursor: pointer; transition: all 0.2s;
}
.hook-item:hover { border-color: #555; }
.hook-item.selected { border-color: #ff6b35; background: #1a1200; }
.hook-item.recommended { position: relative; }
.hook-item.recommended::after {
  content: 'TOP'; position: absolute; top: 8px; right: 8px;
  background: #ff6b35; color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
}

.hook-type {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px; margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.hook-type.PROVA { background: #1b5e20; color: #a5d6a7; }
.hook-type.CONTRARIO { background: #b71c1c; color: #ef9a9a; }
.hook-type.PERGUNTA { background: #1565c0; color: #90caf9; }
.hook-type.MEDO { background: #e65100; color: #ffcc02; }
.hook-type.AUTORIDADE { background: #4a148c; color: #ce93d8; }

.hook-text { font-size: 14px; line-height: 1.4; color: #eee; }

/* Steps */
.steps { display: flex; flex-direction: column; gap: 12px; }
.step {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: #1a1a1a; border-radius: 8px; border: 1px solid #2a2a2a;
}
.step.active { border-color: #ff6b35; background: #1a1200; }
.step.done { border-color: #4caf50; }
.step-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0; background: #2a2a2a; color: #888;
}
.step.active .step-icon { background: #ff6b35; color: #fff; }
.step.done .step-icon { background: #4caf50; color: #fff; }
.step-label { font-size: 13px; color: #ccc; }
.step.active .step-label { color: #fff; font-weight: 500; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 16px; height: 16px; border: 2px solid #333;
  border-top-color: #ff6b35; border-radius: 50%; animation: spin 0.8s linear infinite;
}

/* Clip results */
.clip-result {
  background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 8px;
  padding: 16px; margin-bottom: 12px;
}
.clip-result h3 { font-size: 14px; color: #ff6b35; margin-bottom: 8px; }
.clip-result .hook-text-result { font-size: 13px; color: #ccc; margin-bottom: 12px; font-style: italic; }
.clip-result video { width: 100%; max-width: 280px; border-radius: 8px; margin-bottom: 8px; }
.clip-result img { width: 100%; max-width: 280px; border-radius: 8px; margin-bottom: 8px; }
.clip-result audio { width: 100%; margin-bottom: 8px; }

.download-links { display: flex; gap: 8px; flex-wrap: wrap; }
.download-links a {
  padding: 8px 16px; background: #2a2a2a; color: #fff; border-radius: 6px;
  text-decoration: none; font-size: 12px; font-weight: 600;
}
.download-links a:hover { background: #ff6b35; }

.progress-section { display: none; }
.progress-section.active { display: block; }

.error-msg {
  background: #2a1010; border: 1px solid #f44336; border-radius: 8px;
  padding: 12px; color: #f44336; font-size: 13px; margin-top: 12px; display: none;
}
.error-msg.active { display: block; }

.analysis-item { margin-bottom: 8px; font-size: 13px; line-height: 1.4; }
.analysis-item strong { color: #ff6b35; }
