/* style.css - Lost & Found App */
:root {
  --bg: #0b0e13;
  --card: #121722;
  --muted: #a3aab8;
  --text: #e7ecf3;
  --accent: #6aa1ff;
  --accent-glow: rgba(106, 161, 255, 0.2);
  --accent-2: #4bd089;
  --accent-2-glow: rgba(75, 208, 137, 0.2);
  --danger: #ff6a6a;
  --border: #223047;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
  margin: 0; 
  padding: 0; 
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; 
  color: var(--text); 
  background: #0f1420;
  min-height: 100vh; 
}
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.header { 
  position: sticky; 
  top: 0; 
  z-index: 10; 
  background: rgba(11,14,19,0.8); 
  backdrop-filter: blur(8px); 
  border-bottom: 1px solid var(--border); 
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 20px; transition: color 0.2s; }
.brand:hover { color: var(--accent); }
.nav .btn + .btn { margin-left: 10px; }
.content { padding: 32px 0 48px; }
.card { 
  background: radial-gradient(circle at 50% 0%, #151d2c, #0e1522); 
  border: 1px solid var(--border); 
  border-radius: 12px; 
  padding: 24px; 
  box-shadow: 0 8px 30px rgba(0,0,0,0.25); 
  margin-bottom: 24px; 
}
.filters { display: grid; grid-template-columns: 1fr 140px 200px 140px 100px; gap: 12px; }
.filters input, .filters select { 
    background: #0f1624; 
    color: var(--text); 
    border: 1px solid var(--border); 
    border-radius: 8px; 
    padding: 10px 12px;
    transition: all 0.2s ease-in-out;
}
.filters input:focus, .filters select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.item-card { 
  padding: 0; 
  overflow: hidden; 
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 0%, #151d2c, #0e1522);
  border: 1px solid var(--border); 
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.item-card:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 12px 40px rgba(0,0,0,0.4); 
}
.item-link { color: inherit; text-decoration: none; display: block; cursor: pointer; }
.thumb { width: 100%; height: 160px; object-fit: cover; background: #0d1320; border-bottom: 1px solid var(--border); }
.placeholder { display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; }
.item-body { padding: 16px; }
.item-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); color: var(--text); }
.badge-success { background: rgba(75, 208, 137, 0.15); border-color: rgba(75, 208, 137, 0.4); color: #89eec2; }
.badge-danger { background: rgba(255, 106, 106, 0.15); border-color: rgba(255, 106, 106, 0.4); color: #ffacac; }
.badge-neutral { background: rgba(163,170,184,0.15); border-color: rgba(163,170,184,0.3); color: #c1c9d8; }
.badge-muted { background: rgba(106,161,255,0.12); border-color: rgba(106,161,255,0.35); color: #cfe1ff; }
.item-title { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.item-desc { margin: 0 0 12px; color: #d7deea; min-height: 48px; font-size: 14px; line-height: 1.5; }
.item-footer { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.item-detail .card { padding: 0; }
.item-detail-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; }
.media .hero { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-right: 1px solid var(--border); border-radius: 12px 0 0 12px; }
.details { padding: 32px; }
.desc { color: #dbe4f3; line-height: 1.6; white-space: pre-wrap; }
.grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.grid-two > div { background: rgba(0,0,0,0.1); padding: 12px; border-radius: 8px; border: 1px solid var(--border); }
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-weight: 600; font-size: 14px; }
.form-row input, .form-row select, .form-row textarea {
  background: #0f1624; color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-family: inherit; font-size: 1rem;
  transition: all 0.2s ease-in-out;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { 
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-row textarea { resize: vertical; min-height: 80px; }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }
.btn { 
  appearance: none; 
  cursor: pointer; 
  background: var(--accent); 
  color: #0a1020; 
  font-weight: 700; 
  border: 1px solid #5f94e6; 
  padding: 10px 16px; 
  border-radius: 10px; 
  text-decoration: none; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  transition: all 0.2s; 
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn:hover { 
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  filter: brightness(1.1); 
}
.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn-outline { 
  background: transparent; 
  color: var(--text); 
  border: 1px solid var(--border); 
  box-shadow: none;
}
.btn-outline:hover { 
  background: var(--accent-glow); 
  border-color: var(--accent);
  color: white;
  box-shadow: none;
}
.btn-success { 
  background: var(--accent-2); 
  border-color: #3cb97a; 
  color: #061018; 
}
.btn-success:hover {
  box-shadow: 0 6px 20px var(--accent-2-glow);
}
.btn:disabled { 
  opacity: 0.6; 
  cursor: not-allowed; 
  transform: none;
  box-shadow: none;
  filter: none; 
}
.muted { color: var(--muted); }
.req { color: var(--danger); }
.empty { 
  text-align: center; 
  padding: 64px; 
  grid-column: 1 / -1; 
  color: var(--muted); 
  background: rgba(0,0,0,0.1);
  border-radius: 12px;
  border: 1px dashed var(--border);
}
.footer { 
  border-top: 1px solid var(--border); 
  color: var(--muted); 
  padding: 24px 0; 
  text-align: center; 
  font-size: 14px; 
  margin-top: 32px;
}
.footer a { color: var(--accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.page { display: none; }
.page.active { 
  display: block; 
  animation: fadeIn 0.5s ease-out; 
}
@keyframes fadeIn { 
  from { opacity: 0; transform: translateY(15px); } 
  to { opacity: 1; transform: translateY(0); } 
}
@media (max-width: 860px) {
  .content { padding: 24px 0 32px; }
  .filters { grid-template-columns: 1fr; }
  .item-detail-grid { grid-template-columns: 1fr; }
  .media .hero { 
    max-height: 280px; 
    border-right: none; 
    border-bottom: 1px solid var(--border); 
    border-radius: 12px 12px 0 0;
  }
  .details { padding: 24px; }
}
