body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f2f5;
  color: #1c1e21;
}

.container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
  background-color: #1877f2;
  padding: 10px 20px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
}

nav button {
    background-color: #e4e6eb;
    color: #050505;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

nav button:hover {
    background-color: #dadde1;
}

/* Basic form styling */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

form input, form textarea, form select, form button {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #dddfe2;
}

form button {
  background-color: #1877f2;
  color: white;
  cursor: pointer;
  border: none;
}

form button:hover {
  background-color: #166fe5;
}

.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
}

.post-card {
    background-color: #ffffff;
    border: 1px solid #dddfe2;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.post-card h3 {
    margin-top: 0;
    font-size: 1.1em;
    color: #050505;
}
.post-card .post-meta {
    font-size: 0.8em;
    color: #65676b;
    margin-bottom: 10px;
}
.post-card .post-content p {
    margin-bottom: 10px;
    word-wrap: break-word;
}
.post-card .post-actions button {
    background: none;
    border: none;
    color: #65676b;
    cursor: pointer;
    padding: 8px;
    font-weight: bold;
}
.post-card .post-actions button.liked {
    color: #1877f2;
}
.post-card .post-actions button:hover {
    background-color: #f2f2f2;
    border-radius: 4px;
}
.post-card img.post-image {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}
.post-card .youtube-embed {
    margin-top: 10px;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}
.post-card .youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
} 