/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
body {
  font-family: 'Inter', sans-serif;
  background: #f8f9fb;
  color: #222;
  line-height: 1.6;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 18px 60px;
  background: #111;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 24px;
  font-size: 15px;
  opacity: 0.9;
}

nav a:hover {
  opacity: 1;
}

/* SECTIONS */
section {
  padding: 100px 60px;
}

/* HERO */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
    url("hero.jpg") center/cover no-repeat;
  color: white;
  display: flex;
  align-items: center;
}

.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  margin-bottom: 20px;
}

.hero p {
  max-width: 600px;
  font-size: 18px;
}

/* BUTTON */
.btn {
  display: inline-block;
  margin-top: 30px;
  background: #fff;
  color: #000;
  padding: 14px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
}

/* PUBLISH FORM */
#publish form,
#publishForm {
  max-width: 700px;
  margin-top: 30px;
}

#publishForm input,
#publishForm select,
#publishForm textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

#publishForm button {
  background: #111;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#publishForm button:hover {
  background: #333;
}

/* FILTER */
#filter {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: center;
}

#filter select {
  padding: 8px;
}

/* WORK CARDS */
#worksContainer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.work-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.work-card h3 {
  margin-bottom: 8px;
}

/* AUTHORS & BOOKS */
#authorsContainer,
#booksContainer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* FOOTER */
footer {
  background: #111;
  color: #ccc;
  text-align: center;
  padding: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  header {
    padding: 15px 30px;
    flex-direction: column;
    gap: 10px;
  }

  section {
    padding: 80px 30px;
  }

  .hero h2 {
    font-size: 38px;
  }

  nav {
    display: none;
  }
}
