/* Reset */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f0f2f5;
}

/* Nagłówek */
header {
  background-color: black;
  color: white;
  padding: 1rem;
  font-size: 1.5rem;
  text-align: center;
  font-weight: bold;
}

/* Kontener */
.container-forum {
  max-width: 600px;
  margin: auto;
  padding: 1rem;
}

/* Formularz postów */
.post-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.post-form textarea {
  width: 100%;
  height: 80px;
  resize: none;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.post-form button {
  align-self: flex-end;
  padding: 0.5rem 1rem;
  background-color: black;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

/* Post */
.post {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: background 0.2s;
}

.post:hover {
  background: #f9f9f9;
}

.post h3 {
  margin: 0;
  font-size: 1.1rem;
}

.post p {
  margin: 0.75rem 0 0 0;
}

.post small {
  color: #777;
}

/* Link obejmujący cały post */
.post-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Wyszukiwarka */
.search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.search-form input {
  flex: 1;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.search-form button {
  padding: 0.5rem 1rem;
  background-color: black;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* Responsywność */
@media (max-width: 640px) {
  .container-forum {
    padding: 0.75rem;
  }

  .post-form, .post, .search-form {
    padding: 0.9rem;
  }

  .post h3 {
    font-size: 1rem;
  }

  .post-form textarea {
    font-size: 0.95rem;
  }

  .post-form button {
    font-size: 0.95rem;
  }
}
