:root {
  --bg: #f3f5f7;
  --text: #1f2a37;
  --muted: #6b7280;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --card: #ffffff;
  --line: #d1d5db;
  --error: #b91c1c;
  --success: #047857;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top right, #dbeafe, #f8fafc 38%, #eef2f7 100%);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

.topbar {
  background: #ffffffd4;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 1.3rem;
  padding: 14px 0;
}

.row {
  display: flex;
}

.between {
  justify-content: space-between;
}

.center {
  align-items: center;
}

.start {
  align-items: flex-start;
}

.gap {
  gap: 10px;
}

main.container {
  padding-top: 22px;
  padding-bottom: 30px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.narrow {
  max-width: 460px;
  margin: 20px auto;
}

label {
  display: block;
  margin: 8px 0 6px;
  font-size: 0.92rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  margin-bottom: 8px;
}

button {
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  padding: 9px 13px;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  background: var(--brand-dark);
}

.btn-link {
  background: transparent;
  color: var(--brand);
  padding: 0;
}

.flash {
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-weight: 600;
}

.flash.error {
  background: #fee2e2;
  color: var(--error);
}

.flash.success {
  background: #d1fae5;
  color: var(--success);
}

.post p {
  margin-top: 10px;
}

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

.post-image {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.post-actions {
  margin: 10px 0;
  font-size: 0.9rem;
}

.comment {
  margin: 7px 0;
  font-size: 0.92rem;
  color: #374151;
}

.user-line {
  margin-bottom: 8px;
}

.repost-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #f8fafc;
}

.notification-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.notification-row:last-child {
  border-bottom: 0;
}

@media (max-width: 860px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
