/* ================= GENERAL ================= */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
  margin: 0;
  padding: 0;
  color: #333;
}

.container {
  max-width: 900px;
  margin: 80px auto;
  text-align: center;
  padding: 0 20px;
}

/* ================= NAVBAR ================= */
.w3-bar {
  background-color: #222;
  font-size: 16px;
}
.w3-bar .w3-bar-item {
  padding: 14px 20px;
  color: #fff;
}
.w3-bar .w3-bar-item:hover {
  background-color: #444;
}

/* ================= TITLES ================= */
h1, h2, h3, h4 {
  color: #222;
  font-weight: 600;
}

/* ================= HOME HERO ================= */
.home-hero {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  padding: 40px 20px;
}

.home-title {
  font-size: 3rem;
  margin-bottom: 5px;
}

.home-subtitle {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 20px;
}

/* ================= BUTTONS ================= */
.btn, .home-button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  margin: 5px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Main button colors (black theme) */
.btn-primary, .home-button, .home-button.browse, .home-button.signup, .home-button.add {
  background-color: #000;
  color: #fff;
}

.btn-primary:hover, .home-button:hover {
  background-color: #292929;
  transform: translateY(-2px);
}

/* Outline buttons */
.btn-outline-primary {
  border: 1px solid #007bff;
  color: #007bff;
}
.btn-outline-primary:hover {
  background-color: #007bff;
  color: #fff;
}

.btn-outline-danger {
  border: 1px solid #dc3545;
  color: #dc3545;
}
.btn-outline-danger:hover {
  background-color: #dc3545;
  color: #fff;
}

/* Success button */
.btn-success {
  background-color: #28a745;
  color: #fff;
  border: 1px solid #28a745;
}
.btn-success:hover {
  background-color: #218838;
  color: #fff;
  transform: translateY(-2px);
}

/* Secondary button */
.btn-secondary {
  background-color: #6c757d;
  color: #fff;
  border: 1px solid #6c757d;
}
.btn-secondary:hover {
  background-color: #5a6268;
  color: #fff;
  transform: translateY(-2px);
}

/* ================= CARD STYLES ================= */
.card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 20px auto;
  max-width: 500px;
  padding: 20px;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card img {
  border-radius: 10px;
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 15px;
}

/* ================= FORM STYLES ================= */
input, textarea {
  width: 100%;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .container {
    margin: 40px auto;
  }

  .card {
    max-width: 90%;
    padding: 15px;
  }

  .home-title {
    font-size: 2rem;
  }
}

/* ================= WISHLIST ITEM PAGE ================= */
/* Wishlist Item Card Enhanced */
.wishlist-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  max-width: 420px;
  margin: 3rem auto;
  padding: 20px 20px 30px;
  text-align: center;
}

.wishlist-card img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  background-color: #f8f9fa;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.wishlist-card h4 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #222;
}

.wishlist-card p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 8px;
}

/* Divider line before price */
.wishlist-card .divider {
  border-top: 1px solid #ddd;
  margin: 15px 0;
}

.wishlist-card .price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #007bff; /* make price standout */
  margin-bottom: 20px;
}

/* Buttons Section */
.wishlist-card .btn {
  margin: 0.3rem;
  padding: 10px 24px;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

/* Edit button */
.wishlist-card .btn-outline-primary {
  border: 1px solid #007bff;
  color: #fff;
  background-color: #007bff;
}
.wishlist-card .btn-outline-primary:hover {
  background-color: #0056b3;
  color: #fff;
  transform: translateY(-2px);
}

/* Delete button */
.wishlist-card .btn-outline-danger {
  border: 1px solid #dc3545;
  color: #fff;
  background-color: #dc3545;
}
.wishlist-card .btn-outline-danger:hover {
  background-color: #c82333;
  color: #fff;
  transform: translateY(-2px);
}
/* ================= BROWSE COMMUNITY WISHLISTS ================= */
.browse-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}

.browse-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  padding: 20px;
}
.browse-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.browse-card img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  background-color: #f8f9fa;
}
.browse-card h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #222;
}
.browse-card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 8px;
}
.browse-card .price {
  font-size: 1rem;
  font-weight: 700;
  color: #007bff;
  margin-bottom: 15px;
}
.browse-card .btn {
  margin-top: 10px;
  padding: 8px 20px;
  font-size: 0.9rem;
  border-radius: 6px;
  background-color: #007bff;
  color: #fff;
  border: 1px solid #007bff;
}
.browse-card .btn:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
}
