@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

* {
  font-family: "Outfit", sans-serif !important;
  box-sizing: border-box;
}

:root {
  --navy: #25274D;
  --slate: #464866;
  --silver: #AAABB8;
  --cyan: #2E9CCA;
  --deepcyan: #29648A;
  --text: #25274D;
  --muted: #6f748a;
  --border: rgba(37,39,77,0.12);
  --shadow: 0 18px 45px rgba(37,39,77,0.10);
  --radius: 24px;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(245,247,251,0.76), rgba(237,242,248,0.82)),
    url("https://images.unsplash.com/photo-1506744038136-46273834b3fb?q=80&w=1974&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  backdrop-filter: blur(10px);
  z-index: -1;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 255px;
  height: 100vh;
  background: rgba(37,39,77,0.92);
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 28px 18px;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.sideLogo {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 40px;
  color: white;
}

.sidebar button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  margin-bottom: 10px;
  border: none;
  border-radius: 20px;
  background: transparent;
  color: rgba(255,255,255,0.96);
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.sidebar button:hover {
  background: rgba(46,156,202,0.16);
  transform: translateX(3px);
}

.sidebar button span {
  font-size: 17px;
  font-weight: 700;
}

.mainLayout {
  margin-left: 255px;
  display: grid;
  grid-template-columns: minmax(420px, 680px) 320px;
  gap: 64px;
  justify-content: center;
  padding: 38px;
}

.centerFeed {
  width: 100%;
}

h1 {
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 30px;
  color: var(--navy);
}

h1::after {
  content: " ✦";
  color: var(--cyan);
}

h2 {
  color: var(--navy);
}

.rightPanel {
  position: sticky;
  top: 28px;
  height: fit-content;
}

.suggestHeader {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.suggestItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.suggestLeft {
  display: flex;
  align-items: center;
  gap: 12px;
}

.suggestAvatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.suggestItem p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.suggestFollow {
  width: auto;
  padding: 0;
  background: transparent;
  color: var(--cyan);
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.profile,
.post,
.userResult,
.report {
  background: rgba(255,255,255,0.68);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.createBox {
  border: 1px solid rgba(46,156,202,0.12);
}

input,
textarea,
button {
  width: 100%;
  padding: 14px 15px;
  margin-top: 8px;
  border-radius: 18px;
  border: 1px solid transparent;
  outline: none;
  font-size: 14px;
}

input,
textarea {
  background: rgba(255,255,255,0.62);
  color: var(--text);
  backdrop-filter: blur(10px);
}

input:focus,
textarea:focus {
  border-color: rgba(46,156,202,0.25);
  background: white;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

button {
  background: linear-gradient(135deg, var(--navy), var(--deepcyan));
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
}

button:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37,39,77,0.15);
}

.storiesBox {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  padding: 12px 4px 18px;
  margin-bottom: 10px;
}

#storiesList {
  display: flex;
  gap: 14px;
}

.storyCircle {
  min-width: 76px;
  text-align: center;
  cursor: pointer;
}

.storyAvatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  padding: 3px;
  margin: auto;
  background: linear-gradient(135deg, var(--cyan), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  overflow: hidden;
}

.storyAvatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: white;
  object-fit: cover;
  border: 3px solid white;
}

.storyCircle small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.addStory .storyAvatar {
  font-size: 26px;
}

.storyViewer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.storyClose {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
  padding: 0;
  z-index: 2;
}

.storyViewBox {
  width: min(420px, 96vw);
  max-height: 92vh;
  background: black;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.storyViewBox img,
.storyViewBox video {
  width: 100%;
  max-height: 86vh;
  display: block;
  object-fit: contain;
}

.storyViewInfo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  color: white;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.notificationItem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
}

.notificationItem.unread {
  border: 1px solid var(--cyan);
}

.notificationAvatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.post h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.carousel {
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: #ddd;
}

.postMedia {
  width: 100%;
  max-height: 760px;
  object-fit: cover;
  display: block;
}

.postActions {
  display: flex;
  gap: 18px;
  margin-top: 14px;
}

.iconBtn {
  width: auto;
  background: transparent;
  color: var(--navy);
  border: none;
  padding: 0;
  margin: 0;
  font-size: 25px;
  cursor: pointer;
}

.likesLine {
  margin: 12px 0 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.captionLine {
  margin: 6px 0;
  line-height: 1.6;
}

.commentLine {
  color: var(--muted);
  margin: 8px 0;
  cursor: pointer;
}

.commentBoxRow {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.commentBoxRow input {
  margin-top: 0;
}

.commentBoxRow button {
  width: 90px;
}

.profileTop {
  display: flex;
  align-items: center;
  gap: 18px;
}

.avatar,
.profileTop img.avatar {
  width: 82px !important;
  height: 82px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 3px solid white !important;
  box-shadow: 0 6px 18px rgba(37,39,77,0.10);
}

.profileStats {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.profileStats span {
  background: rgba(46,156,202,0.08);
  color: var(--navy);
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.profileInfo h2,
.profileInfo h3,
.profileInfo p {
  margin: 4px 0;
}

.profileInfo p,
.profileInfo h3 {
  color: var(--muted);
}

.userResult {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.miniAvatar,
.userResult img.miniAvatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

.chatItem {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.72);
  border-radius: 22px;
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.chatAvatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.chatHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.78);
  padding: 14px;
  border-radius: 24px 24px 0 0;
  border-bottom: 1px solid var(--border);
}

.chatHeader img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.chatMessages {
  background: rgba(255,255,255,0.68);
  padding: 18px;
  min-height: 420px;
  max-height: 520px;
  overflow-y: auto;
  overflow-x: hidden;
  backdrop-filter: blur(18px);
}

.messageRow {
  display: flex;
  margin-bottom: 12px;
  width: 100%;
}

.messageRow.mine {
  justify-content: flex-end;
}

.messageRow.theirs {
  justify-content: flex-start;
}

.messageBubble {
  max-width: 72%;
  padding: 12px 14px;
  border-radius: 22px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  display: inline-block;
}

.messageMine {
  background: linear-gradient(135deg, var(--navy), var(--deepcyan));
  color: white;
  border-bottom-right-radius: 8px;
}

.messageTheirs {
  background: rgba(170,171,184,0.18);
  color: var(--text);
  border-bottom-left-radius: 8px;
}

.messageInputBox {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.76);
  padding: 12px;
  border-radius: 0 0 24px 24px;
  backdrop-filter: blur(16px);
}

.messageInputBox input {
  flex: 1;
  margin-top: 0;
}

.messageInputBox button {
  width: 90px;
  margin-top: 0;
}

.authModal {
  position: fixed;
  inset: 0;
  background: rgba(37,39,77,0.35);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px;
}

.authModalBox {
  width: 100%;
  max-width: 520px;
  position: relative;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(37,39,77,0.18);
}

.closeModalBtn {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy) !important;
  font-size: 22px;
  padding: 0;
}

.ownerName {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.ownerBadge {
  background: linear-gradient(135deg, var(--cyan), var(--deepcyan));
  color: white;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

@media (max-width: 1000px) {
  .rightPanel {
    display: none;
  }

  .mainLayout {
    grid-template-columns: minmax(300px, 680px);
    margin-left: 82px;
  }

  .sidebar {
    width: 82px;
  }

  .sidebar button span {
    display: none;
  }
}

@media (max-width: 650px) {
  .sidebar {
    width: 100%;
    height: 70px;
    top: auto;
    bottom: 0;
    border-right: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    padding: 6px 8px;
    overflow-x: auto;
  }

  .sideLogo {
    display: none;
  }

  .sidebar button {
    justify-content: center;
    min-width: 58px;
    padding: 10px;
    font-size: 22px;
  }

  .mainLayout {
    margin-left: 0;
    display: block;
    padding: 14px 10px 90px;
  }

  h1 {
    font-size: 28px;
    text-align: center;
  }

  .createBox {
    display: none;
  }

  .post,
  .profile {
    border-radius: 22px;
    padding: 14px;
  }

  .postMedia {
    max-height: 620px;
  }

  .storiesBox {
    margin-left: -4px;
    margin-right: -4px;
  }

  .messageBubble {
    max-width: 86%;
  }
}