@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f5f4fb;
  --surface: #fff;
  --text: #24232d;
  --muted: #777487;
  --line: #e8e5f0;
  --purple: #7657e8;
  --purple-dark: #5e43c9;
  --purple-soft: #eeeaff;
  --shadow: 0 12px 35px rgba(54, 38, 98, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, #eeeaff 0, transparent 28%),
    radial-gradient(circle at 90% 10%, #e9f0ff 0, transparent 22%),
    var(--bg);
}
button, input { font: inherit; }
button { cursor: pointer; border: 0; }
a { color: inherit; text-decoration: none; }

.topbar {
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 5vw;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 23px; letter-spacing: -.04em; }
.logo-mark, .brand-avatar {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--purple), #9a7dff);
  color: #fff; font-weight: 800;
}
.logo-mark { width: 35px; height: 35px; border-radius: 11px; box-shadow: 0 7px 18px rgba(118,87,232,.25); }

.search {
  flex: 1; max-width: 620px; height: 42px; margin: auto;
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px; border: 1px solid var(--line); border-radius: 14px;
  background: #f8f7fb; color: var(--muted);
}
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-actions button { width: 40px; height: 40px; border-radius: 12px; background: transparent; color: var(--muted); font-size: 20px; }
.top-actions button:hover { background: var(--purple-soft); color: var(--purple); }
.mini-avatar, .avatar, .profile-photo { border-radius: 50%; display: grid; place-items: center; font-weight: 700; }
.mini-avatar { background: var(--purple-soft) !important; color: var(--purple) !important; font-size: 14px !important; }

.page { max-width: 1400px; margin: 0 auto; padding: 28px 4vw 60px; display: grid; grid-template-columns: 220px minmax(0, 680px) 270px; gap: 26px; }
.left-column, .right-column { min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }

.profile-mini { overflow: hidden; text-align: center; padding-bottom: 16px; }
.cover { height: 72px; background: linear-gradient(135deg, #7657e8, #a891ff 55%, #dcd5ff); }
.profile-photo { width: 68px; height: 68px; margin: -34px auto 8px; border: 4px solid #fff; background: #f0edff; color: var(--purple); font-size: 23px; }
.profile-mini h3 { margin: 4px 0; }
.profile-mini p { color: var(--muted); font-size: 12px; line-height: 1.5; padding: 0 18px; }
.outline { border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.outline:hover { border-color: var(--purple); color: var(--purple); }

.menu { margin-top: 16px; display: grid; gap: 4px; }
.menu a { display: flex; gap: 11px; align-items: center; padding: 11px 12px; border-radius: 12px; font-size: 13px; color: var(--muted); }
.menu a:hover, .menu a.active { background: var(--purple-soft); color: var(--purple); font-weight: 600; }

.hero { min-height: 330px; padding: 38px; display: flex; justify-content: space-between; align-items: center; overflow: hidden; position: relative; background: linear-gradient(135deg, #fff, #faf8ff); }
.eyebrow { font-size: 10px; letter-spacing: .14em; color: var(--purple); font-weight: 800; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: .98; letter-spacing: -.055em; margin: 12px 0 16px; }
.hero h1 em { color: var(--purple); font-style: normal; }
.hero p { color: var(--muted); line-height: 1.6; max-width: 500px; }
.hero-buttons { display: flex; gap: 10px; margin-top: 22px; }
.primary, .ghost, .outline { transition: .2s ease; }
.primary { background: var(--purple); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; box-shadow: 0 8px 20px rgba(118,87,232,.22); }
.primary:hover { background: var(--purple-dark); transform: translateY(-1px); }
.ghost { background: var(--purple-soft); color: var(--purple); padding: 12px 18px; border-radius: 12px; font-weight: 700; }
.memory-orb { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; text-align: center; flex: 0 0 auto; background: radial-gradient(circle at 35% 30%, #fff, #ded6ff 48%, #8e74ee); box-shadow: 0 25px 50px rgba(118,87,232,.22); color: #fff; }
.memory-orb span { font-size: 42px; line-height: .8; }
.memory-orb small { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.composer { margin-top: 18px; padding: 17px; }
.composer-row { display: flex; gap: 12px; align-items: center; }
.avatar { width: 42px; height: 42px; flex: 0 0 42px; background: #f0edff; color: var(--purple); }
.composer-input { flex: 1; text-align: left; color: #9692a3; background: #f8f7fb; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.composer-actions { display: flex; gap: 7px; margin-top: 12px; padding-left: 54px; }
.composer-actions button { padding: 8px 11px; border-radius: 10px; background: transparent; color: var(--muted); font-size: 12px; }
.composer-actions button:hover { background: var(--purple-soft); color: var(--purple); }
.composer-actions .publish { margin-left: auto; background: var(--purple); color: #fff; font-weight: 700; }

.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 22px 2px 10px; }
.section-heading h2 { font-size: 17px; margin: 0; }
.section-heading h3 { font-size: 14px; margin: 0; }
.section-heading span, .section-heading > span { color: var(--muted); font-size: 11px; }
.section-heading a { font-size: 11px; color: var(--purple); }

.post { padding: 18px; }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-head strong { font-size: 13px; }
.post-head p { margin: 3px 0 0; font-size: 11px; color: var(--muted); }
.more { margin-left: auto; background: transparent; color: var(--muted); }
.post-text { font-size: 14px; line-height: 1.65; margin: 18px 0; }
.post-banner { height: 190px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #6e4fe0, #9e84f4); }
.post-banner strong { font-size: 48px; letter-spacing: -.07em; }
.post-banner small { letter-spacing: .12em; font-size: 9px; margin-top: 5px; }
.post-stats { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; padding: 12px 3px; border-bottom: 1px solid var(--line); }
.post-actions { display: grid; grid-template-columns: repeat(3,1fr); padding-top: 5px; }
.post-actions button { background: transparent; padding: 10px 5px; color: var(--muted); font-size: 12px; border-radius: 10px; }
.post-actions button:hover, .post-actions button.liked { background: var(--purple-soft); color: var(--purple); }

.side-card { padding: 17px; margin-bottom: 16px; }
.community { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.community > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #f6f4fb; }
.community strong, .community small { display: block; }
.community strong { font-size: 12px; }
.community small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.memory-card { background: linear-gradient(145deg, #fff, #f0edff); }
.memory-card h3 { font-size: 18px; margin: 10px 0 8px; }
.memory-card p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.full { width: 100%; margin-top: 8px; }
footer { color: #9692a3; font-size: 10px; line-height: 1.7; padding: 6px 5px; }

.toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #292638; color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 12px; transition: .25s; z-index: 20; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  .page { grid-template-columns: 190px minmax(0, 1fr); }
  .right-column { display: none; }
}
@media (max-width: 720px) {
  .topbar { padding: 0 16px; gap: 12px; }
  .search { display: none; }
  .page { display: block; padding: 15px; }
  .left-column { display: none; }
  .hero { padding: 27px; min-height: 0; }
  .memory-orb { width: 90px; height: 90px; margin-left: 10px; }
  .memory-orb span { font-size: 25px; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 13px; }
  .hero-buttons { flex-direction: column; }
  .composer-actions { padding-left: 0; overflow-x: auto; }
  .composer-actions .publish { margin-left: 0; }
  .post-banner { height: 150px; }
  .post-banner strong { font-size: 40px; }
}
