/* General Page Styling */
body {
  font-family: Arial, sans-serif;
  background: #1d4e89;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: white;
}

/* Header and Navigation Bar */
header {
  background: #1d4e89;
  color: white;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  border-bottom: 3px solid #163b66;
  max-width: 1100px;
  width: 100%;
  box-sizing: border-box;
}

.site-title {
  font-size: 2rem;
  font-weight: bold;
}

/* Navigation Button Styling */
.nav-btn {
  background: #f2c94c; 
  color: #1d4e89; 
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  align-items: center;
  transition: 0.2s;
}

.nav-btn:hover {
  background: #d4aa2e; /* Slighly Darker Gold for Hovering Over Button Look */
  color: white;
}


header nav a {
  margin-left: 15px;
  color: #f2c94c;
  text-decoration: none;
  font-weight: bold;
}

.container {
  width: 90%;
  max-width: 900px;
  margin: 30px auto;
  flex-grow: 1; 
  display: flex;
  flex-direction: column; 
  align-items: center;
  padding-top: 30px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(230px,1fr));
  gap: 20px;
}

.card {
  background: #f2c94c;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.card img {
  width: 100%;
  border-radius: 6px;
}

button {
  background: #1d4e89;
  color: white;
  padding: 10px;
  width: 100%;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 8px;
}

button:hover {
  background: #163b66;
}

.form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form input, .form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.tag {
  display: inline-block;
  background: #f2c94c;
  padding: 5px 10px;
  border-radius: 8px;
}

/* center the form contents */
.form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.login-card {
  width: 100%;
  padding: 25px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Smaller, centered input boxes */
.input-small {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Labels above fields */
.form-label {
  font-weight: bold;
  margin-bottom: 6px;
  color: #1d4e89;
  width: 100%;
  text-align: left;
}

/* white page subtitle */
.white-title {
  color: white;
  margin-bottom: 20px;
}

/* blue button */
.btn-primary {
  width: 100%;
  padding: 12px;
  background: #1d4e89;
  color: white;
  border-radius: 6px;
  border: 1px solid #1d4e89;
  cursor: pointer;
  margin-top: 10px;
  font-size: 1rem;
  font-weight: bold;
}

.btn-primary:hover {
  background: #163b66;
  border-color: #163b66;
}

/* feedback messages */
.feedback {
  text-align: center;
  color: white;
  font-weight: bold;
}

.login-wrapper {
  width: 400px;
  margin: 0 auto;    /* centers entire block */
  text-align: center;
}

.input-small, .btn-primary {
  box-sizing: border-box;
  line-height: 1.5;
}

/* Highlight current page */
.nav-btn.active {
  border: 2px solid white;
  background: #f2c94c;
}

/* Home Section */
.home {
  text-align: center;
  margin-top: 20px;
  padding: 20px;
}

/* Large title */
.home-title {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

/* Subtitle under the title */
.home-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Buttons under the subtitle */
.home-buttons {
  display: flex;
  justify-content: center;
  gap: 20px; /* Space between buttons */
}

.home-btn {
  padding: 14px 30px;
  background: #f1c84a;
  color: #333;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1rem;
}

.home-btn:hover {
  background: #d9b039;
  color: white;
}

/* Centers and sizes the homepage image */
.home-image {
  width: 350px;
  margin-bottom: 30px;
  border-radius: 10px; /* Slight rounding for modern look */
}

/* Grid for Recently Added Items */
.recent-grid,
#items-list,
#pending-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
    width: 100%;
    justify-items: center;
}

/* Item Cards */
.item-card {
    background: #f2c94c;
    color: #1d4e89;
    padding: 15px;
    border-radius: 10px;
    width: 250px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-align: center;
    transition: transform 0.2s ease;
}

.item-card:hover {
    transform: translateY(-5px);
}

/* Item images */
.item-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Claim / Approve Buttons */
.item-card button {
    background: #1d4e89;
    color: white;
    border: none;
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.item-card button:hover {
    background: #163b66;
}
