/* AuroraRank – clean, approachable UI */

:root {
  --bg: #f0f2f5;
  --surface: #fff;
  --text: #1a1d21;
  --muted: #5c6269;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --success: #059669;
  --success-bg: #ecfdf5;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --border: #e5e7eb;
  --tag-bg: #f3f4f6;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 28px 20px;
}

.container {
  max-width: 680px;
  margin: 0 auto;
}

/* Header / hero */
header {
  margin-bottom: 32px;
  text-align: center;
}

header h1 {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}

.tagline {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Steps hint on upload page */
.steps-hint {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--primary-light);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--primary);
}

.steps-hint span { font-weight: 500; }

/* Messages */
.message {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  line-height: 1.5;
}

.message-error {
  background: var(--danger-bg);
  color: #991b1b;
  border: 1px solid #fecaca;
}

.message-info {
  background: var(--primary-light);
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.message strong { display: block; margin-bottom: 6px; }
.message p { margin: 0 0 6px 0; }
.message p:last-child { margin-bottom: 0; }
.message code {
  background: rgba(0,0,0,0.07);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Form */
.upload-form {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.upload-form h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input[type="file"],
.form-group input[type="number"],
.form-group input[type="text"],
.form-group select {
  width: 100%;
  max-width: 340px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--surface);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group small {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 6px;
}

.required { color: var(--danger); }
.optional { color: var(--muted); font-weight: normal; }

.form-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
  min-width: 140px;
}

.form-actions {
  margin-top: 28px;
  padding-top: 8px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--primary);
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 10px 18px;
  font-weight: 500;
}

.btn-secondary:hover {
  background: var(--primary-light);
}

/* Summary cards */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media (min-width: 480px) {
  .summary-cards { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--surface);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-value {
  font-size: 1.35rem;
  font-weight: 700;
}

/* Sections */
.section {
  background: var(--surface);
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 6px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.section-hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 16px 0;
}

/* Product list */
.product-list, .bundle-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-item, .bundle-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.product-item:first-child, .bundle-item:first-child { padding-top: 0; }
.product-item:last-child, .bundle-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.product-item {
  display: grid;
  gap: 6px 0;
}

.product-name, .bundle-pair {
  font-weight: 600;
  font-size: 1.02rem;
}

.product-meta, .bundle-score {
  font-size: 0.875rem;
  color: var(--muted);
}

.product-meta code, .bundle-pair code {
  background: var(--tag-bg);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Score badge */
.score-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 10px;
  border-radius: 999px;
  margin-left: 8px;
}

/* Tags */
.tags {
  margin-top: 10px;
}

.tag {
  display: inline-block;
  background: var(--tag-bg);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  margin-right: 8px;
  margin-bottom: 6px;
  color: var(--muted);
}

/* Help & column guide */
.help-section {
  background: var(--surface);
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.help-section h2 {
  font-size: 1.05rem;
  margin: 0 0 8px 0;
}

.help-section > p {
  margin: 0 0 14px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.column-guide {
  margin-top: 10px;
}

.column-guide summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  padding: 6px 0;
}

.column-guide summary:hover { text-decoration: underline; }

.column-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.column-block h4 {
  font-size: 0.85rem;
  margin: 0 0 8px 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.column-block ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.875rem;
}

.column-block li {
  margin-bottom: 6px;
}

.column-block code {
  font-size: 0.82em;
  background: var(--tag-bg);
  padding: 2px 6px;
  border-radius: 4px;
}

.column-list {
  margin: 10px 0;
  padding-left: 22px;
}

.column-failsafe {
  margin-top: 12px;
}

/* Next steps */
.next-steps, .wix-next {
  margin-bottom: 24px;
  padding: 20px 24px;
}

.next-steps h3, .wix-next h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.next-steps ul, .wix-next ul {
  margin: 0;
  padding-left: 22px;
}

.next-steps li, .wix-next li {
  margin-bottom: 8px;
}

/* Downloads */
.downloads {
  margin-bottom: 28px;
}

.downloads h3 {
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.downloads .btn-secondary {
  margin-bottom: 12px;
}

.download-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 14px;
}

/* Footer */
.upload-footer, .results-footer {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.results-footer .btn {
  margin-top: 10px;
}

.upload-footer a, .results-footer a {
  color: var(--primary);
}

.upload-footer a:hover, .results-footer a:hover {
  text-decoration: underline;
}

/* Results success header */
.results-header .badge {
  display: inline-block;
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-top: 12px;
}
