/* Make-X page - AI themed */
.make-x-page {
  max-width: 540px;
  margin: 0 auto;
  padding: 2rem;
}

.make-x-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.make-x-back:hover {
  text-decoration: underline;
  color: var(--accent-dim);
}

.make-x-header {
  margin-bottom: 1.5rem;
}

.make-x-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  background: var(--ai-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.make-x-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.make-x-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(168, 85, 247, 0.9);
  margin-bottom: 1rem;
}

.make-x-badge svg {
  width: 14px;
  height: 14px;
}

/* Card - frosted glass + AI gradient border */
.make-x-card {
  position: relative;
  background: rgba(10, 16, 28, 0.55);
  backdrop-filter: blur(48px) saturate(180%);
  -webkit-backdrop-filter: blur(48px) saturate(180%);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.make-x-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #A855F7 0%, #60A5FA 50%, #F472B6 100%);
  background-size: 200% 200%;
  animation: makeXBorder 6s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes makeXBorder {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.make-x-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.make-x-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.make-x-select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.make-x-select:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.15);
}

.make-x-select option {
  background: #0a101c;
  color: #fff;
}

/* Analyses list - radio-style items */
.make-x-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 320px;
  overflow-y: auto;
}

.make-x-loading {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.make-x-item {
  display: block;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.make-x-item:hover {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(168, 85, 247, 0.2);
}

.make-x-item.selected {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.2);
}

.make-x-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.make-x-item input[type="radio"] {
  flex-shrink: 0;
  accent-color: var(--accent);
}

.make-x-item-symbol {
  font-weight: 600;
  font-size: 1rem;
}

.make-x-item-sentiment {
  font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: capitalize;
  background: rgba(255, 255, 255, 0.08);
}

.make-x-item-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.make-x-item-summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0.5rem 0 0 1.75rem;
  line-height: 1.45;
}

.make-x-preview {
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
}

.make-x-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.make-x-btn {
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.make-x-btn-primary {
  background: var(--ai-gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35);
}

.make-x-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.45);
}

.make-x-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.make-x-btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(168, 85, 247, 0.3);
}

.make-x-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.make-x-empty {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.make-x-empty a {
  color: var(--accent);
  text-decoration: none;
}

.make-x-empty a:hover {
  text-decoration: underline;
}

.make-x-recent-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.make-x-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.make-x-footer a {
  color: var(--accent);
  text-decoration: none;
}

.make-x-footer a:hover {
  text-decoration: underline;
}
