* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #f5f1ee;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
}

.logo-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 40px;
  height: 40px;
}

.logo-search input {
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 200px;
}

.nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav-links a:hover {
  color: #008080;
}

.main-content {
  display: flex;
  padding: 20px;
  gap: 20px;
}

.left-sidebar,
.right-sidebar {
  width: 250px;
}

.feed {
  flex: 1;
}

.profile-card,
.suggestions,
.right-sidebar {
  background: white;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.profile-card .avatar.green {
  width: 70px;
  height: 70px;
  background-color: #8bc34a;
  border-radius: 50%;
  margin: 0 auto 10px;
}

.profile-card h2 {
  text-align: center;
}

.profile-card p {
  text-align: center;
  margin: 2px 0;
}

.profile-card button {
  display: block;
  margin: 10px auto 0;
  padding: 6px 10px;
  border: none;
  background: #ddd;
  border-radius: 6px;
  cursor: pointer;
}

.suggestions ul,
.right-sidebar ul {
  list-style: none;
  margin-top: 10px;
}

.suggestions li,
.right-sidebar li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
}

.user-info-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar.gray {
  width: 20px;
  height: 20px;
  background-color: #ccc;
  border-radius: 50%;
}

.suggestions button {
  padding: 2px 6px;
  background: #ccc;
  color: #333;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.suggestions button.following {
  background: #2A9246;
  color: white;
}

.feed input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.post {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.post-box input {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  cursor: pointer;
  background-color: #fff;
}

.expanded-post {
  display: none;
  background: white;
  padding: 15px;
  margin: 15px 0;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.expanded-post textarea {
  width: 100%;
  height: 100px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  resize: vertical;
  margin-bottom: 10px;
}

.file-inputs {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.file-inputs label {
  background: #eee;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.file-inputs input {
  display: none;
}

.submit-btn {
  background: #0074c2;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.category-select {
  width: 100%;
  margin: 10px 0;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
  background: #f9f9f9;
}

.reactions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reactions button {
  background-color: #f0f0f0;
  border: none;
  border-radius: 25px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.reactions button:hover {
  background-color: #d0f0e0;
}

.reactions button.active {
  background-color: #c3e6cb;
  font-weight: bold;
}

.comments h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #444;
}

.media-wrapper {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

.media-box {
  border-radius: 10px;
  object-fit: cover;
  width: 100%;
  max-width: 300px;
  height: auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.media-box.portrait {
  aspect-ratio: 9/16;
}

.media-box.landscape {
  aspect-ratio: 16/9;
}

.messages-view {
  display: none;
  flex-direction: row;
  padding: 20px;
  gap: 20px;
}

.chat-list {
  width: 250px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.chat-list ul {
  list-style: none;
  margin-top: 10px;
}

.chat-list li {
  padding: 8px 0;
  cursor: pointer;
}

.chat-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.chat-window .messages {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 10px;
}

.message-input {
  display: flex;
  gap: 10px;
}

.message-input input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.message-input button {
  padding: 8px 12px;
  border: none;
  background: #0074c2;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}
