/* ═══════════════════════════════════════════════════
   POST CARDS (Green Style)
   ═══════════════════════════════════════════════════ */
.post-card {
  padding: 1rem;
  border-bottom: 2px solid var(--border);
  transition: var(--transition);
  cursor: default;
}

.post-card:hover {
  background: var(--post-hover-bg);
}

.post-repost-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0 0 0.4rem 0;
  margin-right: 3rem;
}

.post-body {
  display: flex;
  gap: 0.8rem;
}

.post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lana-lightest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 2px solid var(--card-border);
}

.post-main {
  flex: 1;
  min-width: 0;
}

.post-author-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.post-author {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  cursor: pointer;
}

.post-author:hover {
  text-decoration: underline;
}

.post-handle {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.post-time {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.post-text {
  margin: 0.4rem 0;
  line-height: 1.6;
  font-size: 0.95rem;
  word-break: break-word;
  color: var(--text-body);
}

.post-text .hashtag {
  color: var(--lana-dark);
  cursor: pointer;
  font-weight: 700;
}

.post-text .hashtag:hover {
  text-decoration: underline;
}

.post-image {
  border-radius: var(--radius);
  max-width: 100%;
  margin: 0.5rem 0;
  border: 2px solid var(--card-border);
  max-height: 400px;
  object-fit: cover;
}

.post-quoted {
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  padding: 0.8rem;
  margin: 0.5rem 0;
  background: var(--lana-lightest);
  cursor: pointer;
  transition: var(--transition);
}

.post-quoted:hover {
  box-shadow: 3px 3px 0px var(--card-shadow);
}

/* Post action bar */
.post-actions {
  display: flex;
  justify-content: space-between;
  max-width: 420px;
  margin-top: 0.5rem;
}

.post-action {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
  color: var(--text-muted);
  background: none;
  border: none;
  font-family: 'Cairo';
  font-weight: 600;
}

.post-action:hover {
  color: var(--lana-dark);
  background: var(--lana-lightest);
}

.post-action.liked {
  color: var(--danger);
}

.post-action.reposted {
  color: var(--lana-dark);
}

.post-action.bookmarked {
  color: var(--lana-dark);
}

.post-action .action-icon {
  font-size: 1.1rem;
}

/* ─── Compose Box ─── */
.compose-box {
  padding: 1rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  gap: 0.8rem;
}

.compose-input {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.compose-input textarea {
  background: transparent !important;
  border: none !important;
  resize: none;
  font-size: 1.1rem !important;
  color: var(--text-body) !important;
  min-height: 60px;
  padding: 0.5rem 0 !important;
  margin: 0;
}

.compose-input textarea:focus {
  box-shadow: none !important;
}

.compose-input textarea::placeholder {
  color: var(--text-muted);
}

.compose-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid var(--border);
  padding-top: 0.6rem;
  margin-top: 0.4rem;
}

.compose-tools {
  display: flex;
  gap: 0.5rem;
}

.compose-tool {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--lana-dark);
  padding: 0.3rem;
  border-radius: 50%;
  transition: var(--transition);
}

.compose-tool:hover {
  background: var(--lana-lightest);
}

.compose-submit {
  background: var(--lana-blue);
  color: #fff;
  border: 3px solid var(--lana-dark);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-family: 'Cairo';
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  box-shadow: 3px 3px 0px var(--card-shadow);
}

.compose-submit:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0px var(--card-shadow);
}

.image-preview-box {
  position: relative;
  margin: 0.5rem 0;
}

.image-preview-box img {
  max-height: 200px;
  border-radius: var(--radius-xs);
  border: 2px solid var(--card-border);
}

.image-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════
   POSTS MOBILE RESPONSIVENESS
   ═══════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .post-card {
    padding: 1rem 0.5rem;
  }
  
  .post-actions {
    max-width: 100%;
    margin-top: 0.8rem;
  }
  
  .post-action {
    padding: 0.5rem;
    min-height: 48px;
    justify-content: center;
  }
  
  .post-action span {
    display: none; /* Hide text on small screens, keep only icons */
  }
  
  .compose-tool {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .compose-submit {
    min-height: 48px;
    font-size: 1rem;
    padding: 0 1rem;
  }
}

