/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* ===== BASE ===== */
body {
  background-color: green;
}

/* ===== LOGIN Y REGISTRE ===== */
.page-login,
.page-register {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* ===== TARJETA LOGIN Y REGISTRE ===== */
.card {
  background-color: white;
  padding: 40px;
  border-radius: 15px;
  width: 400px;
  text-align: center;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
}

.subtitle {
  font-size: 14px;
  color: gray;
  margin: 10px 0 25px 0;
}

.title {
  margin-bottom: 20px;
}

/* ===== FORMULARIS ===== */
.form {
  text-align: left;
}

.label {
  display: block;
  margin: 10px 0 5px 0;
  font-weight: bold;
}

.input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}

.button {
  background-color: green;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
  margin-top: 10px;
}

.button:hover {
  opacity: 0.9;
}

.bottom-text {
  margin-top: 15px;
  font-size: 14px;
}

.link {
  color: green;
  text-decoration: none;
  font-weight: bold;
}

/* ===== TOPBAR MUR ===== */

.page-mur {
  background-color: white;
  padding: 0 60px;
}
.topbar {
  background-color: white;
  padding: 0px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e5e5;
}

.topbar-left {
  display: flex;
  align-items: center;
}

.logo-topbar {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-icon {
  padding: 6px 10px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 8px;
  cursor: pointer;
}

.topbar-button {
  background-color: green;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
}

/* ===== LAYOUT MUR ===== */
.layout {
  display: flex;
  background-color: white;
  min-height: calc(100vh - 60px);
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 220px;
  padding: 20px;
  background-color: white;
  border-right: 1px solid #e5e5e5;
}

.menu-item {
  display: block;
  padding: 10px;
  margin-bottom: 10px;
  text-decoration: none;
  color: black;
  border-radius: 8px;
}

.menu-item.active {
  background-color: green;
  color: white;
}

.menu-icon {
  margin-right: 8px;
}

/* ===== CONTINGUT ===== */
.content {
  flex: 1;
  padding: 30px;
}

.content-wide {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;

  align-items: start;
}

/* ===== GRID MUR ===== */
.grid-three {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

/* ===== POSTS ===== */
.post {
  background-color: white;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid #e8e8e8;
}

.post-header {
  display: flex;
  justify-content: space-between;
}

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

.post-user {
  font-weight: bold;
}

.post-time {
  font-size: 12px;
  color: gray;
  margin-top: 2px;
}

.post-title {
  font-weight: bold;
  margin: 10px 0;
}

.post-text {
  margin-bottom: 10px;
  color: #222;
}

.post-info {
  display: flex;
  gap: 20px;
  font-size: 14px;
  margin: 10px 0;
  color: #444;
}

.post-image img {
  width: 100%;
  border-radius: 10px;
  margin-top: 10px;
  display: block;
}

/* ===== AVATARS ===== */
.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: green;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.avatar.small {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

/* ===== COMENTARIS ===== */
.comments {
  margin-top: 10px;

  background-color: #f5f6f8;
  border-radius: 10px;
  padding: 12px;

  display: flex;
  flex-direction: column;
  gap: 12px;

  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

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

.comment-user {
  font-weight: bold;
}

.comment-text {
  color: #333;
  margin-top: 2px;
}

/* ===== CAIXA ESCRIURE COMENTARI ===== */
.comment-box {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}

.button.small {
  width: auto;
  padding: 8px 15px;
  margin-top: 0;
}

/* ===== PANELLS DERETA ===== */
.panel {
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid #e8e8e8;
}

.panel-title {
  margin-bottom: 15px;
}

.note {
  color: red;
  font-size: 12px;
}

/* ===== TRENDS ===== */
.trend {
  margin-bottom: 12px;
}

.trend-tag {
  font-weight: bold;
}

.trend-num {
  font-size: 12px;
  color: gray;
}

/* ===== SUGGERIMENTS ===== */
.suggest {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.suggest-name {
  font-weight: bold;
}

.suggest-desc {
  font-size: 12px;
  color: gray;
}

.small-button {
  background-color: white;
  border: 1px solid green;
  color: green;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.small-button:hover {
  opacity: 0.9;
}

/* ===== PERFIL ===== */
.profile-header-card {
  background-color: white;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 25px;
}

.profile-cover {
  height: 180px;
  background-color: green;
}

.profile-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 25px;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 90px;
  height: 90px;
  font-size: 28px;
  margin-top: -60px;
  border: 4px solid white;
}

.profile-text {
  flex: 1;
  min-width: 220px;
}

.profile-name {
  margin-bottom: 5px;
}

.profile-username {
  color: gray;
  margin-bottom: 10px;
}

.profile-bio {
  color: #333;
  line-height: 1.5;
}

.profile-actions {
  display: flex;
  align-items: center;
}

.profile-stats {
  display: flex;
  gap: 15px;
  padding: 0 25px 25px 25px;
  flex-wrap: wrap;
}

.stat-box {
  background-color: #f5f6f8;
  border-radius: 10px;
  padding: 15px 20px;
  min-width: 140px;
  text-align: center;
}

.stat-number {
  font-size: 22px;
  font-weight: bold;
  color: green;
}

.stat-label {
  font-size: 14px;
  color: gray;
  margin-top: 5px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 15px;
}

.info-item {
  margin-bottom: 10px;
  color: #333;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background-color: #f0f7f0;
  color: green;
  border: 1px solid green;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
}

/* ===== FORMULARIS EXTRA ===== */
.form-card {
  background-color: white;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
}

.subtitle-left {
  font-size: 14px;
  color: gray;
  margin-bottom: 20px;
}

.textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  resize: vertical;
  font-family: Arial, sans-serif;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 15px;
}

.publish-button {
  width: auto;
  padding: 10px 20px;
}

/* ===== BOTONES EXTRA ===== */
.small-button.filled {
  background-color: green;
  color: white;
  border: 1px solid green;
}

.cancel-link {
  text-decoration: none;
}

/* ===== PREVIEW PUBLICACIÓ ===== */
.preview-card {
  background-color: white;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 20px;
  margin-top: 0;
}

