/* =============================================================================
 * dashboard.css — User dashboard styles
 * Dark theme, Inter font, matches feed/post design system
 * ============================================================================= */

/* === AUTH GATE === */
.auth-gate-box {
  max-width: 400px;
  margin: 80px auto;
  text-align: center;
}

.auth-gate-box h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.auth-gate-box p {
  color: rgba(255,255,255,0.5);
  margin-bottom: 32px;
  font-size: 14px;
}

.auth-gate-box form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-gate-box input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #fff;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.auth-gate-box input:focus {
  border-color: #4a9eff;
}

.auth-gate-box input::placeholder {
  color: rgba(255,255,255,0.25);
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.auth-tab {
  flex: 1;
  padding: 10px 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.auth-tab:hover {
  color: rgba(255,255,255,0.7);
}

.auth-tab.active {
  color: #4a9eff;
  border-bottom-color: #4a9eff;
}

.pending-preview {
  background: rgba(74,158,255,0.06);
  border: 1px solid rgba(74,158,255,0.15);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  line-height: 1.5;
}

/* === VERIFY EMAIL STATE === */
.verify-icon {
  margin-bottom: 20px;
}

.verify-email-address {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 8px 0 20px;
  word-break: break-all;
}

.verify-subtext {
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.verify-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.verify-back-link {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: color 0.15s;
}

.verify-back-link:hover {
  color: #4a9eff;
}

.verified-banner {
  background: rgba(61,220,132,0.08);
  border: 1px solid rgba(61,220,132,0.2);
  color: #3ddc84;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

/* === ACCOUNT BAR === */
.account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  margin: 24px 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}

.account-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-name {
  font-weight: 600;
  color: #fff;
  font-size: 15px;
}

.account-email {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.requests-remaining {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.logout-link {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: color 0.15s;
}

.logout-link:hover {
  color: #ff6b6b;
  text-decoration: none;
}

/* === REQUEST FORM === */
.request-form-card {
  padding: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  margin-bottom: 32px;
}

.request-form-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.request-form-card .form-field {
  margin-bottom: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}

.form-field .required {
  color: #ff6b6b;
}

.form-field .optional {
  color: rgba(255,255,255,0.25);
  font-weight: 400;
}

.ticker-field input {
  width: 120px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 18px;
}

.form-field input,
.form-field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: #fff;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.form-field textarea {
  resize: vertical;
}

.form-field select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: #fff;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.3)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-field select:focus {
  border-color: #4a9eff;
}

.form-field select option {
  background: #1a1e2e;
  color: #fff;
}

.advanced-options {
  margin-bottom: 4px;
}

.advanced-options summary {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  user-select: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.advanced-options summary:hover {
  color: rgba(255,255,255,0.55);
}

.advanced-options[open] summary {
  margin-bottom: 12px;
}

.form-row-inline {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.pattern-field {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.pattern-field label {
  margin: 0;
  white-space: nowrap;
}

.pattern-field select {
  width: auto;
  min-width: 140px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #4a9eff;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255,255,255,0.25);
}

#req-ticker {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* === BUTTONS === */
.btn-primary {
  background: #4a9eff;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover {
  background: #3a8eef;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-arrow {
  margin-left: 4px;
}

/* === FORM STATUS === */
.form-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.form-status.success {
  background: rgba(61,220,132,0.08);
  border: 1px solid rgba(61,220,132,0.2);
  color: #3ddc84;
}

.form-status.error {
  background: rgba(255,107,107,0.08);
  border: 1px solid rgba(255,107,107,0.2);
  color: #ff6b6b;
}

/* === REQUESTS SECTION === */
.requests-section {
  margin-bottom: 40px;
}

.requests-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.requests-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* === REQUEST CARD === */
.request-card {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.request-card:last-child {
  border-bottom: none;
}

.request-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.request-ticker {
  background: rgba(74,158,255,0.1);
  border: 1px solid rgba(74,158,255,0.2);
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  color: #4a9eff;
  letter-spacing: 0.02em;
}

.request-id {
  font-size: 11px;
  font-family: monospace;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.02em;
}

.request-meta-tag {
  font-size: 10px;
  font-family: monospace;
  color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

/* Status badges */
.status-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.status-pending {
  background: rgba(74,158,255,0.1);
  color: rgba(74,158,255,0.7);
  border: 1px solid rgba(74,158,255,0.15);
}

.status-screening,
.status-processing,
.status-reviewing,
.status-publishing {
  background: rgba(74,158,255,0.1);
  color: #4a9eff;
  border: 1px solid rgba(74,158,255,0.2);
  animation: pulse-status 2s ease-in-out infinite;
}

.status-completed {
  background: rgba(61,220,132,0.08);
  color: #3ddc84;
  border: 1px solid rgba(61,220,132,0.15);
}

.status-rejected,
.status-cancelled {
  background: rgba(255,107,107,0.08);
  color: #ff6b6b;
  border: 1px solid rgba(255,107,107,0.15);
}

.status-needs_info {
  background: rgba(255,193,7,0.08);
  color: #ffc107;
  border: 1px solid rgba(255,193,7,0.15);
}

@keyframes pulse-status {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.request-time {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

.request-content {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
  line-height: 1.5;
}

.request-result {
  margin-top: 8px;
}

.request-result a {
  font-size: 13px;
  font-weight: 500;
  color: #4a9eff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.request-result a:hover {
  text-decoration: underline;
}

.request-actions {
  margin-top: 8px;
}

.delete-link {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: color 0.15s;
}

.delete-link:hover {
  color: #ff6b6b;
}

.request-reject-reason {
  font-size: 13px;
  color: rgba(255,107,107,0.7);
  margin-top: 4px;
  font-style: italic;
}

.request-screening-note {
  font-size: 13px;
  color: rgba(255,193,7,0.7);
  margin-top: 4px;
  font-style: italic;
}

/* === REPLY FORM === */
.request-reply-form {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.reply-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,193,7,0.3);
  border-radius: 6px;
  color: #e0e0e0;
  padding: 8px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
}
.reply-input:focus {
  outline: none;
  border-color: rgba(255,193,7,0.6);
}
.reply-btn {
  background: rgba(255,193,7,0.2);
  border: 1px solid rgba(255,193,7,0.4);
  color: #ffc107;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}
.reply-btn:hover {
  background: rgba(255,193,7,0.3);
}

/* === REQUEST COMMENTS === */
.request-comments {
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.request-comment {
  padding: 8px 12px;
  background: rgba(255,255,255,0.02);
  border-left: 2px solid rgba(255,255,255,0.08);
  border-radius: 0 4px 4px 0;
}

.comment-author {
  font-size: 11px;
  font-weight: 600;
  color: rgba(74,158,255,0.6);
  margin-right: 8px;
}

.comment-time {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
}

.comment-text {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* === QUEUE POSITION === */
.queue-position {
  font-size: 12px;
  color: rgba(100, 160, 255, 0.7);
  margin: 4px 0 8px;
}

/* === STATUS TIMELINE === */
.status-timeline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0;
}

.timeline-step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}

.timeline-label {
  font-weight: 500;
  color: rgba(255,255,255,0.35);
}

.timeline-time {
  color: rgba(255,255,255,0.2);
  font-size: 11px;
}

.timeline-arrow {
  color: rgba(255,255,255,0.15);
  font-size: 11px;
  margin: 0 2px;
}

.timeline-current .timeline-label {
  color: #4a9eff;
}

.timeline-current .timeline-time {
  color: rgba(74,158,255,0.5);
}

.timeline-current.timeline-completed .timeline-label {
  color: #3ddc84;
}

.timeline-current.timeline-completed .timeline-time {
  color: rgba(61,220,132,0.5);
}

.timeline-current.timeline-rejected .timeline-label,
.timeline-current.timeline-cancelled .timeline-label {
  color: #ff6b6b;
}

.timeline-current.timeline-rejected .timeline-time,
.timeline-current.timeline-cancelled .timeline-time {
  color: rgba(255,107,107,0.5);
}

.timeline-current.timeline-needs_info .timeline-label {
  color: #ffc107;
}

.timeline-current.timeline-needs_info .timeline-time {
  color: rgba(255,193,7,0.5);
}

.timeline-current.timeline-screening .timeline-label,
.timeline-current.timeline-processing .timeline-label,
.timeline-current.timeline-reviewing .timeline-label,
.timeline-current.timeline-publishing .timeline-label {
  animation: pulse-status 2s ease-in-out infinite;
}

.timeline-stage {
  font-size: 11px;
  color: rgba(74,158,255,0.6);
  font-style: italic;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
  .account-bar {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .account-actions {
    width: 100%;
    justify-content: space-between;
  }

  .form-row {
    flex-direction: column;
  }
}
