:root {
  --bg: #0f1724; /* dark navy */
  --card: #0b1220;
  --muted: #9aa4b2;
  --accent: #1d9bf0; /* twitter-like blue */
  --glass: rgba(255, 255, 255, 0.03);
  --radius: 14px;
  --max-width: 1200px;
  --gap: 18px;
  --text: #e6eef6;
  --shadow: 0 6px 18px rgba(2, 6, 23, 0.6);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial;
}

/* DEFUALT STYLE */

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #071021 0%, #041226 100%) !important;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 30px;
  display: flex;
  justify-content: center;
  font-size: 15px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  display: grid;
  grid-template-columns: 260px 1fr 340px;
  gap: var(--gap);
  align-items: start;
}

/* LEFT NAV STYLE */
.nav {
  position: sticky;
  top: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: calc(100vh - 60px);
  overflow: auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.logo .mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 20px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 6px;
}
.nav a:hover {
  background: var(--glass);
}
.nav a .icon {
  width: 32px;
  text-align: center;
  color: var(--accent);
}

/* RESET */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: initial;
}

textarea {
  font: inherit;
  border: initial;
  resize: none;
  outline: initial; /* create alternative for focus state */
}

button {
  font: inherit;
  border: initial;
  outline: initial; /* create alternative for focus state */
  background-color: initial;
}

/* UTILITIES */

.u-bold {
  font-weight: 600;
}

.u-medium {
  font-weight: 500;
}

.u-italic {
  font-style: italic;
}

.u-transparent {
  color: rgba(255, 255, 255, 0.8);
}

/* KEYFRAMES */

@keyframes intro {
  0% {
    transform: scale(0.8);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes spinner {
  0% {
    transform: translateX(-50%) rotate(0deg);
  }

  100% {
    transform: translateX(-50%) rotate(360deg);
  }
}

/* BASE */

.body {
  /* background-image: linear-gradient(200deg, #654a86, #534292); */
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;

  scrollbar-width: none; /* Firefox */
}

.body::-webkit-scrollbar {
  /* Chrome, Safari, Edge, Opera, All browsers on iOS */
  display: none;
}

.body__container {
  position: relative;
  display: flex;
  justify-content: center;
  height: 850px;
  margin-top: 139px;
}

/* HEADINGS */

.first-heading {
  font-weight: 700;
  font-size: 36px;
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.93);
}

.first-heading::selection,
.first-heading *::selection {
  color: rgba(255, 255, 255, 0.85);
  background-color: rgba(255, 255, 255, 0.05);
}

/* APP */

.app {
  width: 715px;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  animation: intro 0.4s;
}

/* HEADER */

.header {
  height: 277px;
  background-color: #121618;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 999;
  backface-visibility: hidden;
  transform: translateZ(0);
  box-shadow: rgba(12, 17, 21, 0.5) 0px 0px 50px;
  padding-bottom: 3px;
}

.header__pattern {
  position: absolute;
  top: 0;
  z-index: 0;
}

.header__pattern::selection {
  background-color: initial;
}

/* LOGO */

.logo {
  height: 27.5px;
}

.logo::selection {
  background-color: initial;
}

.logo__img {
  position: relative;
  z-index: 1;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* FORM */

.form {
  margin-top: 20px;
  height: 123px;
  width: 470px;
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.form:hover,
.form:focus {
  background-color: rgba(255, 255, 255, 0.055);
}

.form:focus-within {
  outline: 2px solid rgba(255, 255, 255, 0.125);
}

.form--invalid {
  box-shadow: 0 0 0 2px #8a3d2c;
}

.form--valid {
  box-shadow: 0 0 0 2px #2c8a5e;
}

.form__textarea {
  width: 100%;
  height: 85px;
  background-color: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  padding: 15px 20px;
  caret-color: rgba(255, 255, 255, 0.25);
}

.form__textarea::selection {
  color: rgba(255, 255, 255, 0.85);
  background-color: rgba(255, 255, 255, 0.05);
}

.form__textarea::placeholder {
  opacity: 0;
}

.form__textarea:focus + .form__label,
.form__textarea:not(:placeholder-shown) + .form__label {
  opacity: 0;
}

.form__label {
  position: absolute;
  top: 13.5px;
  left: 20px;
  color: #fff;
  opacity: 0.42;
  pointer-events: none;
}

.form__label::selection,
.form__label *::selection {
  color: rgba(255, 255, 255, 0.85);
  background-color: rgba(255, 255, 255, 0.05);
}

.form__icon {
  font-size: 12px;
  margin-left: 4px;
  color: #fff;
  opacity: 0.5;
}

.form__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  margin-top: -8px;
}

/* COUNTER */

.counter {
  font-weight: 500;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.counter::selection,
.counter > *::selection {
  color: rgba(255, 255, 255, 0.85);
  background-color: rgba(255, 255, 255, 0.05);
}

/* SUBMIT BTN */

.submit-btn {
  color: #161921;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 4px 16px 9px;
  border-radius: 500px;
  font-weight: 600;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  backface-visibility: hidden;
  transform: translateY(-2px) translateZ(0) rotate(0);
}

.submit-btn:hover,
.submit-btn:focus {
  transform: translateY(-2px) translateZ(0) scale(1.15);
}

.submit-btn:active {
  transform: translateY(-2px) translateZ(0) scale(1.07);
}

.submit-btn:hover .submit-btn__text {
  transform: translateY(2px) translateZ(0);
}

.submit-btn__text {
  display: block;
  transition: all 0.2s;
  backface-visibility: hidden;
  transform: translateY(2px) translateZ(0) rotate(0);
}

.submit-btn__text::selection {
  color: rgba(0, 0, 0, 0.85);
  background-color: rgba(0, 0, 0, 0.1);
}

/* FEEDBACKS */

.feedbacks {
  height: 573px;
  overflow-y: scroll;
  overflow-x: hidden;
  /* background-color: #F3F6F8; */
  background-color: #f7f8f9;

  scrollbar-color: #979ca0 #dbdfe4; /* Firefox */
  scrollbar-width: thin; /* Firefox */
}

.feedbacks::-webkit-scrollbar {
  /* Chrome, Safari, Edge, Opera, All browsers on iOS */
  width: 7px;
}

.feedbacks::-webkit-scrollbar-track {
  /* Chrome, Safari, Edge, Opera, All browsers on iOS */
  background-color: #dbdfe4;
}

.feedbacks::-webkit-scrollbar-thumb {
  /* Chrome, Safari, Edge, Opera, All browsers on iOS */
  background-color: #979ca0;
  transition: all 0.2s;
}

.feedbacks::-webkit-scrollbar-thumb:hover {
  /* Chrome, Safari, Edge, Opera, All browsers on iOS */
  background-color: #787c80;
}

/* FEEDBACK ITEM */

.feedback {
  display: grid;
  grid-template-columns: 40px 85px 6fr 1fr;
  align-items: center;
  height: 82px;
  padding-right: 35px;
  padding-left: 30px;
  cursor: pointer;
  border-bottom: 1px solid #e4e7eb;
  transition: all 0.2s;
  color: #3a3c42;
}

.feedback--expand {
  height: 100px;
  background-color: #fff;
}

.feedback--expand .feedback__text {
  -webkit-line-clamp: initial !important;
  -webkit-box-orient: initial !important;
  overflow: initial !important;
}

.feedback *::selection {
  background-color: rgba(0, 0, 0, 0.1);
}

.feedback:hover {
  background-color: #fff;
}

.feedback:hover .upvote,
.feedback:hover .feedback__badge,
.feedback:hover .feedback__content,
.feedback:hover .feedback__date {
  transform: translateX(5px);
}

.feedback__badge {
  height: 49px;
  width: 49px;
  border-radius: 6px;
  background-color: #564989;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 16px;
  transition: all 0.2s;
  margin-left: 20px;
}

.feedback:nth-child(6n + 2) .feedback__badge {
  background-color: #6d4989;
}

.feedback:nth-child(6n + 3) .feedback__badge {
  background-color: #3c7789;
}

.feedback:nth-child(6n + 4) .feedback__badge {
  background-color: #897749;
}

.feedback:nth-child(6n + 5) .feedback__badge {
  background-color: #4a8b6b;
}

.feedback:nth-child(6n + 6) .feedback__badge {
  background-color: #495789;
}

.feedback__letter {
  font-size: 24px;
  color: #fff;
  font-weight: 700;
  margin-right: -2px;
}

.feedback__content {
  transition: all 0.2s;
}

.feedback__company {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  color: #898d96;
  margin-top: -1px;
  display: block;
  transition: all 0.2s;
}

.feedback__text {
  color: #141518;
  font-size: 13px;
  margin-top: 1px;
  transition: all 0.2s;

  display: -webkit-box;
  max-width: 100%;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feedback__date {
  font-size: 12px;
  color: #898b92;
  margin-left: auto;
  transition: all 0.2s;
}

/* UPVOTE BTN */

.upvote {
  cursor: pointer;
  height: 40px;
  width: 40px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upvote:hover {
  background-color: #f3f6f8;
}

.upvote:hover .upvote__icon,
.upvote:hover .upvote__count {
  color: #784a86;
}

.upvote:disabled .upvote__icon {
  display: none;
}

.upvote:disabled {
  pointer-events: none;
}

.upvote__icon {
  color: #d7dbe2;
  font-size: 19px;
  display: block;
  transition: all 0.2s;
}

.upvote__count {
  color: #6c6f76;
  font-size: 11px;
  margin-top: -1px;
}

/* HASHTAGS */

.hashtags {
  position: absolute;
  right: -137px;
  top: 0px;
}

.hashtags__item {
  max-width: max-content;
  margin-bottom: 11px;
}

/* HASHTAG */

.hashtag {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  padding: 7px 14px 9px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 500px;
  cursor: pointer;
  transition: all 0.2s;
}

.hashtag:hover,
.hashtag:focus {
  color: #fff;
  transform: scale(1.11);
}

.hashtag:active {
  transform: scale(1.06);
}

.hashtag::selection {
  background-color: rgba(255, 255, 255, 0.1);
}

/* FOOTER */

/* .footer {
    position: absolute;
    transform: rotate(-90deg);
    left: -225px;
    bottom: 174px;
} */

/* COPYRIGHT */

/* .copyright {
    color: #A6ADB5;
    font-size: 11px;
}

.copyright *::selection {
    background-color: rgba(255, 255, 255, 0.1); 
}

.copyright__text {
    opacity: 0.4;
}

.copyright__link {
    text-decoration: underline;
}

.copyright__icon {
    font-size: 10px;
    opacity: 0.5;
    margin-right: 4px;
    margin-left: 2px;
} */

/* SPINNER */

.spinner {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translateX(-50%) translateZ(0);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  border-top: 7px solid #e2e7e9;
  border-right: 7px solid #e2e7e9;
  border-bottom: 7px solid #e2e7e9;
  border-left: 7px solid #ccd1d3;
  animation: spinner 1s infinite linear;
}

/* MEDIA QUERIES */

@media (max-height: 925px) {
  .body {
    padding: 60px 0;
  .nav,
  .aside {
    width: 100%
  }
}

@media (max-width: 1050px) {
  .body__container {
    flex-direction: column-reverse;
    height: initial;
  }

  .hashtags {
    display: none;
  }

  /* .footer {
    transform: initial;
    position: relative;
    left: initial;
    bottom: initial;
    text-align: center;
    margin-top: 20px;
  } */
}

@media (max-width: 775px) {
  .body {
    padding-top: 0;
    padding-bottom: 20px;
    align-items: initial;
  }

  .body__container {
    width: 100vw;
    margin-top: 0;
  }

  .app {
    width: 100%;
    border-radius: 0;
  }

  .feedback__badge {
    min-width: 49px;
  }

  .feedback__content {
    padding-right: 25px;
  }

  .feedback__date {
    margin-left: auto;
  }
  .nav,
  .aside {
    width: 100%
  }
}

@media (max-width: 525px) {
  .header {
    padding: 35px 15px;
    height: initial;
  }

  .first-heading {
    text-align: center;
  }

  .form {
    width: initial;
    align-self: stretch;
  }

  .form__label {
    padding-right: 20px;
  }

  .feedback {
    grid-template-columns: 40px 85px 1fr;
    padding-right: 15px;
    padding-left: 15px;
  }

  .feedback--expand {
    height: initial;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .feedback__date {
    display: none;
  }

  .footer {
    padding: 0 15px;
  }
}

/* Right sidebar */

/* .aside{position:sticky;top:30px;background:linear-gradient(180deg, rgba(255,255,255,0.01), transparent);padding:16px;border-radius:var(--radius);box-shadow:var(--shadow);height:calc(100vh - 60px);overflow:auto}
    .search{display:flex;align-items:center;padding:10px;border-radius:10px;background:rgba(255,255,255,0.02);margin-bottom:12px}
    .search input{border:none;background:transparent;color:var(--text);outline:none;width:100%}
    .trends h3{margin:0 0 10px 0}
    .trend{padding:10px;border-radius:10px;background:rgba(255,255,255,0.02);margin-bottom:8px}
    .who-to-follow .person{display:flex;gap:10px;align-items:center;padding:10px;border-radius:10px;margin-bottom:8px}
    .follow-btn{margin-left:auto;background:transparent;border:1px solid rgba(255,255,255,0.06);padding:6px 10px;border-radius:999px;color:var(--text);cursor:pointer} */

/* small screens */

@media (max-width: 980px) {
  .container {
    grid-template-columns: 1fr;
    max-width: 760px;
  }
  /* .nav,
  .aside {
    width: 100%
  } */
}

/* utility */

.muted {
  color: var(--muted);
}
