/* ---------- Base ---------- */
* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  margin: 0;
  padding: 16px;
  background: #f4f6f8;
  color: #1a1a1a;
}

h1, h2 {
  margin-bottom: 12px;
}

/* ---------- Feed Layout ---------- */
#feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Cards ---------- */
.card {
  background: white;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.card strong {
  font-size: 16px;
}

.card .meta {
  margin-top: 6px;
  font-size: 13px;
  color: #555;
}

/* ---------- Ride Types ---------- */
.offer {
  border-left: 5px solid #2563eb; /* blue */
}

.request {
  border-left: 5px solid #16a34a; /* green */
}

/* ---------- Buttons ---------- */
button {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
}

.accept-request,
.accept-ride {
  background: #2563eb;
  color: white;
}

.accept-request:hover,
.accept-ride:hover {
  background: #1d4ed8;
}

.delete-request,
.delete-ride {
  background: #e11d48;
  color: white;
}

.delete-request:hover,
.delete-ride:hover {
  background: #be123c;
}

/* ---------- Forms ---------- */
input, select {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

/* ---------- Header ---------- */
.header {
  max-width: 600px;
  margin: 0 auto 16px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  font-size: 20px;
}

.header a {
  text-decoration: none;
  font-size: 14px;
  color: #2563eb;
  font-weight: 600;
}


/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  body {
    padding: 32px;
  }

  button {
    width: auto;
    min-width: 140px;
  }
}
