/* Kargo Takip - mirror of kargomtakip.vercel.app */

:root {
  --blue-900: #044984;
  --blue-800: #074f8a;
  --blue-700: #0c66a2;
  --blue-100: #e6f0f8;
  --slate-50: #f8f9fc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #d1d5db;
  --slate-400: #9ca3af;
  --slate-500: #666;
  --slate-700: #333;
  --navy: #1a2a4a;
  --orange: #f57c00;
  --orange-dark: #e65100;
  --red: #e30613;
  --white: #fff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--slate-700);
  background: var(--slate-50);
}

a {
  color: inherit;
  text-decoration: none;
}

.min-h-screen {
  min-height: 100vh;
}

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-800);
}

.nav {
  display: none;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--blue-800);
}

.nav a:hover {
  color: var(--blue-700);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

/* Breadcrumb */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid #e5e7eb;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--slate-500);
}

.breadcrumb a:hover {
  color: var(--blue-800);
}

.breadcrumb .current {
  color: var(--blue-800);
  font-weight: 500;
}

/* Home */
.home-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #074f8a 0%, #0c66a2 50%, #044984 100%);
  padding: 1rem;
}

.home-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
}

.home-card {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  padding: 2.5rem 2rem;
  width: 480px;
  max-width: calc(100% - 2rem);
}

.home-card h2 {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--blue-800);
  text-align: center;
}

.track-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.track-form input {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--slate-300);
  font-size: 0.875rem;
  color: var(--slate-700);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.track-form input:focus {
  border-color: var(--blue-800);
  box-shadow: 0 0 0 3px rgba(7, 79, 138, 0.2);
}

.track-form button {
  width: 100%;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s;
}

.track-form button:hover {
  background: var(--orange-dark);
}

.form-error {
  color: var(--red);
  font-size: 0.875rem;
  text-align: center;
  margin: 0 0 0.75rem;
}

.form-success {
  color: #16a34a;
  font-size: 0.95rem;
  margin: 0;
}

/* Main tracking */
.main-content {
  padding: 2rem 1rem;
}

.page-intro {
  margin-bottom: 1.5rem;
}

.page-intro h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.page-intro p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--slate-500);
}

.status-card {
  background: var(--white);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--slate-200);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.status-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #0c66a2 0%, #074f8a 50%, #044984 100%);
  color: var(--white);
}

.status-card-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.status-card-header p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  opacity: 0.85;
}

.status-badge {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-card-body {
  padding: 2rem 1.5rem;
}

.progress-track {
  position: relative;
}

.progress-line {
  position: absolute;
  top: 1.5rem;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--slate-200);
  border-radius: 999px;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--blue-800);
  border-radius: 999px;
  transition: width 0.7s ease;
}

.progress-steps {
  position: relative;
  display: flex;
  justify-content: space-between;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
}

.step-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--slate-300);
  background: var(--white);
  color: var(--slate-400);
  transition: all 0.25s ease;
}

.step.done .step-icon {
  background: var(--blue-800);
  border-color: var(--blue-800);
  color: var(--white);
  box-shadow: 0 8px 16px rgba(7, 79, 138, 0.25);
}

.step.active .step-icon {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(7, 79, 138, 0.15), 0 8px 16px rgba(7, 79, 138, 0.25);
}

.step-label {
  margin-top: 0.75rem;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  max-width: 72px;
  line-height: 1.25;
  color: var(--slate-400);
}

.step.done .step-label,
.step.active .step-label {
  color: var(--blue-800);
}

/* Info grid */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.panel {
  background: var(--white);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--slate-200);
  overflow: hidden;
}

.panel-head {
  background: var(--blue-100);
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--slate-200);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.panel-body {
  padding: 1rem 1.5rem;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid #f0f4f8;
}

.info-table tr:last-child {
  border-bottom: none;
}

.info-table td {
  padding: 0.75rem 0;
  font-size: 0.875rem;
  vertical-align: top;
}

.info-table td:first-child {
  width: 140px;
  color: var(--slate-500);
  font-weight: 500;
}

.info-table td.strong {
  color: var(--navy);
  font-weight: 600;
}

.current-status {
  background: var(--white);
  border-radius: 0.75rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--slate-200);
  border-left: 4px solid #3b82f6;
  overflow: hidden;
}

.current-status-inner {
  padding: 1rem 1.5rem;
}

.current-status-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.current-status-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.current-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
}

.current-sub {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--slate-500);
}

.current-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--slate-50);
  border-radius: 0.5rem;
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--slate-500);
}

.current-location svg {
  color: var(--blue-800);
  flex-shrink: 0;
}

/* Events */
.events-panel {
  margin-bottom: 1rem;
}

.events-head {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 0.5rem 1rem;
  background: var(--slate-100);
  border-radius: 0.5rem 0.5rem 0 0;
  border: 1px solid var(--slate-200);
  font-size: 0.75rem;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
}

.events-list {
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .events-head {
    display: grid;
  }

  .events-list {
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
  }
}

.event-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f0f4f8;
}

.event-row:last-child {
  border-bottom: none;
}

.event-row.latest {
  background: var(--blue-100);
}

@media (min-width: 768px) {
  .event-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.event-date .date {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--slate-700);
}

.event-date .time {
  font-size: 0.875rem;
  color: var(--slate-500);
}

.event-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--slate-100);
  color: #555;
}

.event-pill.active {
  background: var(--blue-800);
  color: var(--white);
}

.event-desc {
  font-size: 0.875rem;
  color: var(--slate-700);
}

.event-loc {
  font-size: 0.875rem;
  color: var(--slate-500);
}

/* Not found */
.not-found-wrap {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  padding: 1rem;
}

.not-found-card {
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e8e8;
  padding: 2rem;
  max-width: 28rem;
  text-align: center;
}

.not-found-icon {
  width: 4rem;
  height: 4rem;
  background: #fee;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--red);
}

.not-found-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--slate-700);
}

.not-found-card p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--slate-500);
}

.btn-danger {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.btn-danger:hover {
  background: #c00510;
}

/* Footer */
.site-footer {
  background: var(--blue-900);
  color: var(--white);
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 1rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer h5 {
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer a {
  font-size: 0.875rem;
  color: #94a3b8;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-copy {
  border-top: 1px solid #1e3a6e;
  margin-top: 0;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
}

/* Contact */
.contact-card {
  background: var(--white);
  border-radius: 0.75rem;
  border: 1px solid var(--slate-200);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  max-width: 32rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--slate-300);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue-800);
  box-shadow: 0 0 0 3px rgba(7, 79, 138, 0.2);
}

.contact-form button {
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--orange-dark);
}

@media (max-width: 640px) {
  .step-label {
    font-size: 9px;
    max-width: 56px;
  }

  .step-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .step-icon svg {
    width: 16px;
    height: 16px;
  }

  .progress-line {
    top: 1.25rem;
  }
}
