/* ============================================================
   STATUS.CSS — Application Tracker page
   ============================================================ */

/* Body layout */
body.status-body {
  min-height: 100vh; min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Main */
.status-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 64px 24px 80px;
}

.status-container {
  width: 100%;
  max-width: 560px;
}

/* Lookup card */
.lookup-card {
  background: white;
  border: 1px solid var(--sand);
  border-radius: 20px;
  padding: 48px 40px;
  margin-bottom: 24px;
}

.lookup-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.lookup-title em {
  font-style: italic;
  color: var(--clay);
}

.lookup-sub {
  font-size: 14px;
  color: var(--warm-grey);
  line-height: 1.65;
  margin-bottom: 36px;
}

/* Email field */
.input-wrap {
  position: relative;
  margin-bottom: 14px;
}

.email-field {
  width: 100%;
  padding: 16px 20px;
  font-size: 15px;
  font-family: var(--sans);
  border: 1.5px solid var(--sand);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}

.email-field:focus {
  border-color: var(--clay);
  background: white;
}

.email-field::placeholder {
  color: var(--warm-grey);
}

/* Lookup button */
.lookup-btn {
  width: 100%;
  padding: 16px;
  background: var(--clay);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lookup-btn:hover {
  background: var(--clay-light);
  transform: translateY(-1px);
}

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

/* Results */
.results-header {
  margin-bottom: 24px;
}

.results-header h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.results-header p {
  font-size: 13px;
  color: var(--warm-grey);
}

/* Application card */
.status-app-card {
  background: white;
  border: 1px solid var(--sand);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  transition: box-shadow 0.2s;
  animation: slideUp 0.35s ease both;
}

.status-app-card:hover {
  box-shadow: 0 8px 32px rgba(26, 22, 18, 0.07);
}

.app-card-top {
  padding: 20px 22px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--sand);
}

.app-listing-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.app-listing-addr {
  font-size: 12px;
  color: var(--warm-grey);
}

.app-listing-price {
  font-size: 13px;
  color: var(--clay);
  font-weight: 600;
  margin-top: 4px;
}

.app-card-bottom {
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.app-meta {
  font-size: 12px;
  color: var(--warm-grey);
}

.app-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 14px;
}

/* Timeline */
.app-timeline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sand);
}

.timeline-dot.done {
  background: var(--clay);
}

.timeline-dot.active {
  background: var(--clay);
  box-shadow: 0 0 0 3px rgba(196, 98, 45, 0.2);
}

.timeline-line {
  width: 28px;
  height: 2px;
  background: var(--sand);
  margin-bottom: 14px;
}

.timeline-line.done {
  background: var(--clay);
}

.timeline-label {
  font-size: 10px;
  color: var(--warm-grey);
  text-align: center;
}

/* Empty / error states */
.state-box {
  background: white;
  border: 1px solid var(--sand);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  animation: slideUp 0.35s ease both;
}

.state-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.state-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.state-sub {
  font-size: 14px;
  color: var(--warm-grey);
  line-height: 1.6;
  margin-bottom: 24px;
}

.state-link {
  color: var(--clay);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.state-link:hover {
  text-decoration: underline;
}

/* Help note */
.help-note {
  text-align: center;
  font-size: 13px;
  color: var(--warm-grey);
  margin-top: 20px;
  line-height: 1.6;
}

.help-note a {
  color: var(--clay);
  text-decoration: none;
}

.help-note a:hover {
  text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .lookup-card {
    padding: 28px 18px;
    border-radius: 16px;
  }

  .status-main {
    padding: 28px 14px 60px;
  }

  .lookup-title {
    font-size: 24px;
  }

  .app-card-top {
    flex-direction: column;
    gap: 10px;
  }

  .app-card-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .timeline-line {
    width: 20px;
  }
}

@media (max-width: 380px) {
  .lookup-title {
    font-size: 20px;
  }

  .lookup-card {
    padding: 22px 14px;
  }
}
