/* NOTES:
  user icon : <i class="fa-thin fa-circle-user"></i>


  */

/*------------------------------*/
/*  Genral Styling */
/*------------------------------*/

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

html {
  font-size: 62.5%;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  line-height: 1;
  color: #fff;
  background-color: #17212d;
  outline: none;
}

.logo {
  width: 3.6rem;
  height: 3.6rem;
}

/*------------------------------*/
/* HEADINGS design */
/*------------------------------*/

.container {
  display: grid;
  max-width: 154.5rem;
  margin: 0 auto;
  grid-template-columns: 70fr 144fr 95fr;
}

nav,
main {
  border-right: solid 1px rgba(250, 250, 250, 0.5);
}

button:focus,
input:focus,
a:focus {
  outline: none;
}

/*!------------------------------*/
/* ! Navigation */
/*!------------------------------*/

.nav-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2.4rem 1.6rem;
  /* overflow: scroll; */
}
.nav-item {
  font-size: 2.4rem;
  font-weight: 500;
}

.main-nav a {
  text-decoration: none;
  color: #fff;
}

.nav-item {
  /* background-color: red; */
  padding: 1.6rem;
  border-radius: 2rem;
  transition: all 0.3s;
}

a .nav-item:hover {
  background-color: #2e3742;
}

a.opened-item {
  color: #42b2fc;
}

.nav-item i {
  margin-right: 2.4rem;
  height: 1.6rem;
  width: 1.6rem;
}

.nav-btn-box {
  align-self: center;
  justify-self: center;
}

.nav-btn {
  font-size: 1.8rem;
  font-weight: 700;
  display: inline-block;
  cursor: pointer;
  border: none;
  padding: 1.5rem 7rem;
  border-radius: 2.4rem;
  background-color: #42b2fc;

  color: #fff;

  transition: all 0.3s;
}

.nav-btn:hover {
  background-color: #3088c2;
}

.user-info {
  margin-top: 8rem;
  justify-self: flex-end;
  padding: 1.2rem 1.6rem;
  border-radius: 1.8rem;
  transition: all 0.3s;

  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  justify-content: center;
  align-items: center;
}

a .user-info:hover {
  background-color: #2e3742;
}

.user-img {
  width: 4rem;
  border-radius: 50%;
}

.fa-chevron-down {
  align-self: start;
  justify-self: end;
}

.user-info-name {
  grid-column: 2/3;
  font-size: 1.8rem;
}

.user-id {
  color: rgba(250, 250, 250, 0.5);
  font-size: 1.4rem;
  margin-top: 0.8rem;
}

.arabic {
  text-align: right;
}

/*!------------------------------*/
/* ! Main */
/*!------------------------------*/
/* ? HEADING */

main {
  border-left: solid 1px rgba(250, 250, 250, 0.1);
  grid-column: 2/3;
  grid-row: 1/-1;
}

header {
  border-bottom: solid 1px rgba(250, 250, 250, 0.5);
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 6.4rem 2.4rem 1.8rem 2.4rem;
}

.heading h2 {
  font-size: 2.4rem;
}

.heading-icon {
  font-size: 2.4rem;
  color: #42b2fc;
}

/* ? NEW POST */

.new-post {
  display: grid;
  grid-template-columns: 75px 1fr;
  column-gap: 1.2rem;
  row-gap: 1.2rem;
  padding: 3.2rem;
}

.new-post img {
  border-radius: 50%;
  height: 60px;
  border: solid 1px rgba(250, 250, 250, 0.1);
}

.input-text,
.input-text:active,
.input-tex:focus {
  background-color: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 2rem;
  border: none;
  outline: none;
}

.upload {
  grid-column: 2/-1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.file-upload {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.upload-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: #42b2fc;
  font-size: 2.4rem;
}

.post-btn {
  cursor: pointer;
  background-color: #42b2fc;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  border: none;
  padding: 0.8rem 2.4rem;
  border-radius: 5rem;
  transition: all 0.3s;
}

.post-btn:hover {
  background-color: #3088c2;
}

/* ? POSTs */
.feed {
  border-top: solid 1px rgba(250, 250, 250, 0.3);

  display: flex;
  flex-direction: column;
  /* gap: 2rem; */
}

.post:not(:first-child) {
  border-top: solid 1px rgba(250, 250, 250, 0.3);
}

.post {
  padding: 1.6rem 2.4rem;
  /* padding-top: 2rem; */
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: start;
  justify-content: center;
  row-gap: 1.2rem;
  column-gap: 1.2rem;
  transition: all 0.3s;
  cursor: pointer;
}

.post:hover {
  background-color: #2e3742;
}

.post-text-box {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.post-reactions {
  grid-column: 2/3;
}

.post-img-box {
  grid-column: 1/2;
  grid-row: 1/-1;
  align-self: start;
}

.post-user-img {
  width: 6rem;
  border-radius: 50%;
}

.post-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
}

.post-info-user {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.post-user-name {
  font-size: 1.8rem;
  font-weight: 700;
  transition: all 0.2s;
}

.post-user-name:hover {
  box-shadow: 0 1px;
}

.post-user-id {
  margin-right: 0.8rem;
}

.post-user-id,
.post-time-ago,
.post-icon {
  font-size: 1.6rem;
  color: rgba(250, 250, 250, 0.5);
}

.post-icon {
  font-size: 1.8rem;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.post-text {
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.5;
}

.post-img {
  margin-top: 1.6rem;
}

.post-img img {
  max-width: 70rem;
  max-height: 70rem;
  border-radius: 1rem;
}

/* ? REACTIONS */
.post-reactions {
  display: flex;
  justify-content: space-between;
  margin-right: 5rem;
}

.reaction-item {
  cursor: pointer;
  border: none;
  background-color: transparent;
  color: rgba(250, 250, 250, 0.5);
  font-size: 1.8rem;
  transition: all 0.3s;
}

.reaction-item span {
  margin-left: 0.4rem;
}

.react {
  padding: 1rem;
  border-radius: 50%;
}

.comment:hover {
  color: #42b2fc;
}

.retweet:hover {
  color: #40c057;
}

.heart:hover {
  color: #fa5252;
}

.share:hover {
  color: #f76707;
}

.comment:hover .fa-comment {
  background-color: rgba(64, 177, 252, 0.1);
}

.retweet:hover .fa-retweet {
  background-color: rgba(64, 191, 87, 0.1);
}

.heart:hover .fa-heart {
  background-color: rgba(250, 82, 82, 0.1);
}

.share:hover .fa-share {
  background-color: rgba(247, 104, 8, 0.1);
}

/*!------------------------------*/
/* ! ASIDE*/
/*!------------------------------*/

aside {
  padding: 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.search {
  background-color: #263441;
  color: #fff;
  /* background-color: red; */
  border: none;
  border-radius: 15rem;
  width: 100%;
  height: 5rem;
  font-family: inherit;
  font-size: 1.8rem;
  padding: 1.6rem 3.2rem;
}

.trends-box {
  background-color: #192734;
  padding-top: 2.4rem;
  border-radius: 1.2rem;
  overflow: hidden;
}

.trends-heading {
  display: flex;
  justify-content: space-between;
  font-size: 2rem;
  align-items: center;
  padding-bottom: 3rem;
  padding: 0rem 2.4rem 1.2rem 2.4rem;
}

.trends-settings {
  background-color: transparent;
  border: none;
  color: inherit;
  font-size: inherit;
  text-align: center;
  cursor: pointer;
  transform: translate(0, 3px);
  color: #42b2fc;
}

.trends {
  display: flex;
  flex-direction: column;
  /* gap: 2.4rem; */
}

.trend {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.2rem 3.2rem;
  transition: all 0.5s;
}

.trend:hover {
  background-color: #47525d;
}

.trend-where {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(250, 250, 250, 0.5);
  font-size: 1.4rem;
}

.trend-more-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
  font-size: inherit;
}

.trend-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: right;
}

.trend-num {
  color: rgba(250, 250, 250, 0.5);
  font-size: 1.4rem;
}

.trends-fotter a {
  color: #42b2fc;
  font-size: 1.8rem;
}

/* ? FOLLOW */

.follow-box {
  background-color: #192734;
  padding-top: 2.4rem;
  border-radius: 1.2rem;
  overflow: hidden;
}

.follow-heading {
  display: flex;
  justify-content: space-between;
  font-size: 2rem;
  align-items: center;
  padding-bottom: 3rem;
  padding: 0rem 2.4rem 1.2rem 2.4rem;
}

.follow-settings {
  background-color: transparent;
  border: none;
  color: inherit;
  font-size: inherit;
  text-align: center;
  cursor: pointer;
  transform: translate(0, 3px);
  color: #42b2fc;
}

.follow-box {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.follow-card {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 1.6rem;

  padding: 1.2rem 3.2rem;
  transition: all 0.5s;
}

.follow-card:hover {
  background-color: #47525d;
}

.follow-card-img img {
  width: 50px;
  border-radius: 50%;
}

.follow-card-user {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.follow-user-name {
  font-size: 2rem;
}

.follow-user-id {
  color: rgba(250, 250, 250, 0.5);
  font-size: 1.6rem;
}

.follow-btn {
  cursor: pointer;
  border: none;
  font-size: 1.8rem;
  font-weight: 700;
  background-color: #fff;
  border-radius: 5rem;
  padding: 1rem 2.4rem;
  transition: all 0.3s;
}

.follow-btn:hover {
  background-color: #cccccc;
}

/*!------------------------------*/
/* ! Footer*/
/*!------------------------------*/

.footer {
  grid-column: 3/4;
}
