:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

button {
   border-radius: 12px;
    background-color: white;
    padding: 15px 30px;
    font-size: 20px;
    transition-duration: 0.4s;
    margin-left:400px;
    transition-duration:0.4s;
    margin-top:50px;
}

button:hover{
background-color: grey;
 box-shadow: 0 8px 16px 0 rgba(0,0,0,0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #eef4ff 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.5;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 48px 0 72px;
}

.hero {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--shadow);
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.hero p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.hero-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.95);
}

.toolbar {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 0.8fr;
  gap: 14px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.input,
.select,
.button {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: 13px 14px;
  font-size: 0.96rem;
  outline: none;
}

.input:focus,
.select:focus {
  border-color: var(--primary);
  background: white;
}

.button {
  align-self: end;
  background: var(--primary);
  color: white;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.section-head {
  margin: 34px 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.section-head h2 {
  font-size: 1.7rem;
}

.section-head p {
  color: var(--muted);
  font-size: 0.95rem;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width:300px;
}

.item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.item-image {
 width: 100%;
  height: 260px; /* fixed box size */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6; /* light background for empty space */
  overflow: hidden;
}

.item-content {
  padding: 18px;
}

.item-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
  margin-bottom: 10px;
}

.item-title {
  font-size: 1.12rem;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-new {
  background: #dcfce7;
  color: #166534;
}

.badge-review {
  background: #fef3c7;
  color: #92400e;
}

.item-meta {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 14px;
}

.item-description {
  color: #374151;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.item-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.category-tag {
  background: #eff6ff;
  color: var(--primary-dark);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.link-btn {
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
}

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

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .items-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 24px 0 48px;
  }

  .hero {
    padding: 26px;
  }

  .toolbar,
  .items-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 6px;
  }
}

img {
  height:130px;
  width:250px;
  margin-left:30px;
}

.item-image img {
   max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* shows full image */
  border-radius: 12px;
}

.claimed-btn {
  display: inline-block;
  background-color: #e63946;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  margin-left: 0;
  margin-top: 0;
  font-size: 14px;
}

.claimed-btn:hover {
  background-color: #c1121f;
}

.item-owner {
  font-size: 14px;
  color: #555;
  margin-top: 5px;
}