/* shared.css */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: url('logo.png') no-repeat center center fixed;
  background-size: cover;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 15px;
  z-index: 1000;
  text-align: center;
}

nav a, nav button {
  color: #fff;
  margin: 0 12px;
  text-decoration: none;
  font-weight: 600;
}

nav button {
  background: #ff6600;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

nav button:hover {
  background: #e65c00;
}

main {
  margin-top: 140px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

.card {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.admin-badge {
  background: #ff6600;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 5px;
  vertical-align: super;
}

/* success and error messages */
#successMessage, #contactSuccess {
  display: none;
  background: rgba(0, 128, 0, 0.6);
  padding: 10px;
  border-radius: 8px;
  margin-top: 15px;
  font-weight: bold;
}

#errorMessage {
  display: none;
  color: red;
  font-weight: bold;
  margin-top: 15px;
}


const style = document.createElement('style');
style.innerHTML = `
  main { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; padding: 20px; }
  .card { background: rgba(255,102,0,0.7); backdrop-filter: blur(15px); border-radius: 15px; padding: 20px; color: white; box-shadow: 0 4px 20px rgba(0,0,0,0.5); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
  .card:hover { transform: translateY(-5px); box-shadow: 0 6px 25px rgba(255,102,0,0.8); }
  .card img { width: 100%; border-radius: 10px; margin-bottom: 10px; }
`;
document.head.appendChild(style);

export { auth, db };
