:root {
  --bg: #dfe8f5;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #ffffff;
  --text: #13233a;
  --muted: #617089;
  --line: rgba(19, 35, 58, 0.1);
  --blue: #1877f2;
  --blue-deep: #0f4db8;
  --cyan: #54d3ff;
  --coral: #ff7b72;
  --gold: #f3be4d;
  --shadow: 0 24px 60px rgba(40, 78, 136, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(84, 211, 255, 0.45), transparent 28%),
    radial-gradient(circle at top right, rgba(24, 119, 242, 0.18), transparent 22%),
    linear-gradient(180deg, #eaf1fb 0%, #dbe6f5 100%);
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), #3ca8ff);
  color: white;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.brand-lockup h1,
.hero h2,
.composer h3,
.feed-header h3,
.mini-panel h3,
.trend-card h3,
.profile-card h2 {
  margin: 0;
  font-family: "Fraunces", serif;
}

.eyebrow,
.card-label,
.post-meta {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  justify-content: flex-end;
}

.search {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 320px;
  color: var(--muted);
}

.search input,
.composer-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.7);
  outline: none;
}

.search input:focus,
.composer-field textarea:focus {
  border-color: rgba(24, 119, 242, 0.4);
  box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.08);
}

.primary-button,
.chip-button,
.mode-pill,
.filter-pill,
.post-actions button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.primary-button {
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: white;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(24, 119, 242, 0.25);
}

.primary-button:hover,
.chip-button:hover,
.mode-pill:hover,
.filter-pill:hover,
.post-actions button:hover {
  transform: translateY(-1px);
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}

.card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(22px);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 20px;
}

.profile-card,
.nav-card,
.mini-panel,
.trend-card,
.hero,
.composer,
.post {
  padding: 22px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
}

.gradient-avatar,
.post-avatar {
  background: linear-gradient(135deg, #2f7ef7, #6ed4ff);
}

.small-avatar {
  width: 46px;
  height: 46px;
}

.coral-avatar {
  background: linear-gradient(135deg, #ff8f72, #ff5f82);
}

.blue-avatar {
  background: linear-gradient(135deg, #0f4db8, #26b6ff);
}

.gold-avatar {
  background: linear-gradient(135deg, #d28d1f, #f3be4d);
}

.muted {
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.55;
}

.nav-card {
  display: grid;
  gap: 10px;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.18), rgba(84, 211, 255, 0.22));
  color: var(--blue-deep);
  font-weight: 700;
}

.stat-row,
.persona,
.post-header,
.post-author,
.post-stats,
.composer-header,
.composer-toolbar,
.feed-header,
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.stat-row {
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}

.feed-column {
  display: grid;
  gap: 18px;
}

.hero {
  align-items: end;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(225, 239, 255, 0.88)),
    radial-gradient(circle at top right, rgba(24, 119, 242, 0.2), transparent 35%);
}

.hero-copy {
  max-width: 640px;
}

.hero h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  margin-top: 8px;
}

.hero-badges,
.composer-modes,
.toolbar-pills,
.filter-pills,
.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span,
.chip-button,
.mode-pill,
.filter-pill {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.mode-pill.active,
.filter-pill.active {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.18), rgba(84, 211, 255, 0.25));
  color: var(--blue-deep);
  font-weight: 700;
}

.composer {
  display: grid;
  gap: 18px;
}

.composer-field {
  display: grid;
  gap: 8px;
}

.composer-field span {
  font-size: 0.92rem;
  font-weight: 700;
}

.composer-toolbar {
  align-items: flex-end;
}

.feed-header {
  padding: 0 4px;
}

.feed-list {
  display: grid;
  gap: 18px;
}

.post {
  display: grid;
  gap: 16px;
}

.post-name {
  margin: 0 0 4px;
}

.badge {
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(24, 119, 242, 0.12);
  color: var(--blue-deep);
}

.post-text {
  margin: 0;
  line-height: 1.7;
  font-size: 1rem;
}

.post-visual {
  min-height: 220px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(15, 77, 184, 0.92), rgba(84, 211, 255, 0.85)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.4), transparent 30%);
  position: relative;
  overflow: hidden;
}

.post-visual::before,
.post-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  opacity: 0.6;
}

.post-visual::before {
  width: 180px;
  height: 180px;
  right: -20px;
  top: -50px;
  background: rgba(255, 255, 255, 0.18);
}

.post-visual::after {
  width: 240px;
  height: 240px;
  left: -60px;
  bottom: -120px;
  background: rgba(255, 255, 255, 0.12);
}

.visual-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.post-stats {
  color: var(--muted);
  font-size: 0.92rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.post-actions button {
  flex: 1 1 120px;
  padding: 12px 16px;
  background: rgba(19, 35, 58, 0.05);
  color: var(--text);
}

.trend-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text);
  display: grid;
  gap: 10px;
}

.persona {
  justify-content: flex-start;
  margin-top: 14px;
}

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

  .sidebar {
    position: static;
  }

  .left-sidebar,
  .right-sidebar {
    order: 2;
  }

  .feed-column {
    order: 1;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 16px;
  }

  .topbar,
  .topbar-actions,
  .composer-toolbar,
  .hero,
  .feed-header {
    flex-direction: column;
    align-items: stretch;
  }

  .search {
    min-width: auto;
  }

  .brand-lockup h1 {
    font-size: 1.6rem;
  }

  .hero h2 {
    font-size: 2.2rem;
  }
}
