/*
Customize the look of the site in this file...
This stylesheet is loaded after reset.css and core.css
*/

:root {
  overflow-x: hidden;

  --main-hex: #d12282;
  --main-hex-a: #FC0189B3;
  /* Alpha codes here: https://codepen.io/chriscoyier/pen/XjbzrW */

  --accent-hex: #5642BB;
  --accent-hex-hover: #4e3bad;

  --panel-hex: #E3E3E3;
  --border-hex: #5c4b4b;

  --success-hex: #48D61A;
  --error-hex: #EB0C1A;

  --border-radius-input: 3px;
  --border-radius-panel: 3px;

  --transition-time: .1s;

  --green: #00FE00;
  --indigo: #5642BB;
  --pink: #FC0189;
  --yellow: #E2F633;
  --soft-shell: #F7EEE5;
  --dark-soil: #211509;
}

/* -------------------------------------------------------------------------- */
/*                            LANDING PAGE SECTION                            */
/* -------------------------------------------------------------------------- */

body:has(#landing) {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
}

html:has(#landing) {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
}

body:has(#landing) #container {
  padding-top: 0;
  height: 100vh;
  overflow: hidden;
}

body:has(#landing) footer {
  display: none;
}

#landing {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 42%;
  background-color: var(--pink);
  position: relative;
}

.hero-img {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img img {
  max-width: 60%;
  height: auto;
  scale: 2;
}

.main-section {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  height: 100vh;
  width: 58%;
  padding: 3rem 4rem;
  padding-top: 5rem;
  overflow: hidden;
  box-sizing: border-box;
}

.logo-section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0;
  margin-bottom: 5rem;
  flex-shrink: 0;
  scale: 2;
}

.logo-section img {
  max-width: 175px;
  height: auto;
}

.register-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  flex: 1;
  padding: 0;
  min-height: 0;
  overflow: hidden;
  gap: 0;
}

#landing #register_form {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0;
  flex-shrink: 0;
}

#landing #register_form h2 {
  font-size: 2rem;
  font-weight: bold;
  color: var(--dark-soil);
  margin-bottom: 2rem;
  padding-bottom: 0;
}

#landing #login_form {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0;
  flex-shrink: 0;
}

#landing #login_form h2 {
  font-size: 2rem;
  font-weight: bold;
  color: var(--dark-soil);
  margin-bottom: 2rem;
  padding-bottom: 0;
}

#landing #login_form a {
  display: block;
  text-align: right;
  color: var(--dark-soil);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  margin-top: 10px;
  margin-bottom: 0;
  transition: var(--transition-time);
}

#landing #login_form a:hover {
  color: var(--main-hex);
  transition: var(--transition-time);
}

#landing #login_form label {
  margin-top: 20px;
  color: var(--dark-soil);
  width: 100%;
  display: block;
  clear: both;
  font-weight: bold;
}

#landing #login_form input:not([type='checkbox']),
#landing #login_form input:not([type='radio']) {
  width: 100%;
  background-color: transparent;
  padding: 15px 25px;
  color: var(--dark-soil);
  font-size: 1rem;
  margin-top: 5px;
  border: solid 2px var(--dark-soil);
  border-radius: 5rem;
}

#landing #login_form input[type="submit"],
#landing #login_form button {
  width: 100%;
  border: 0px;
  color: white;
  padding: 20px 20px;
  border-radius: 50px;
  margin-top: 30px;
  background-color: var(--accent-hex);
  font-weight: bold;
  font-size: 1.5rem;
  transition: var(--transition-time);
}

#landing #login_form input[type="submit"]:hover,
#landing #login_form button:hover {
  background-color: var(--accent-hex-hover);
  color: white;
  cursor: pointer;
  transform: scale(1.05);
}

/* -------------------------------------------------------------------------- */
/*                            PASSWORD MODAL SECTION                           */
/* -------------------------------------------------------------------------- */

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.password-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(33, 21, 9, 0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
  animation: modalFadeIn 0.3s ease-out;
}

.password-modal-overlay.active {
  display: flex;
}

.password-modal-content {
  background-color: #fff;
  border-radius: 12px;
  padding: 3rem 2.5rem;
  max-width: 420px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  color: var(--dark-soil);
  text-align: center;
  animation: modalSlideUp 0.4s ease-out;
}

.password-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--dark-soil);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.password-modal-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.password-modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--dark-soil);
  border-radius: 50%;
  color: var(--dark-soil);
}

.password-modal-icon i {
  font-size: 2.5rem;
}

.password-modal-content h2 {
  color: var(--dark-soil);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 1rem;
  padding: 0;
}

.password-modal-description {
  color: rgba(33, 21, 9, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 2rem;
  padding: 0;
}

.password-modal-content form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.password-modal-input {
  width: 100%;
  padding: 15px 25px;
  background-color: transparent;
  border: solid 2px var(--dark-soil);
  border-radius: 5rem;
  color: var(--dark-soil);
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.password-modal-input::placeholder {
  color: rgba(33, 21, 9, 0.5);
}

.password-modal-input:focus {
  outline: none;
  border-color: var(--accent-hex);
}

.password-modal-button {
  width: 100%;
  padding: 20px 20px;
  background-color: var(--accent-hex);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 30px;
  transition: var(--transition-time);
}

.password-modal-button:hover {
  background-color: var(--accent-hex-hover);
  color: white;
  cursor: pointer;
  transform: scale(1.05);
}

.password-modal-button:active {
  transform: scale(1);
}

.password-modal-link {
  display: block;
  text-align: center;
  color: var(--dark-soil);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  margin-top: 10px;
  margin-bottom: 0;
  transition: var(--transition-time);
}

.password-modal-link:hover {
  color: var(--main-hex);
  transition: var(--transition-time);
}

.password-modal-content .get_messages {
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-input);
  font-size: 0.9rem;
}

.password-modal-content .logout_message {
  background-color: rgba(72, 214, 26, 0.2);
  color: var(--success-hex);
  border: 1px solid var(--success-hex);
}

.password-modal-content .login_error {
  background-color: rgba(235, 12, 26, 0.2);
  color: var(--error-hex);
  border: 1px solid var(--error-hex);
}

.register-section .signin-cta {
  text-align: center;
  color: var(--dark-soil);
  margin-top: 1.5rem;
  width: 100%;
  flex-shrink: 0;
}

.signin-cta a {
  display: inline;
  white-space: nowrap;
  text-decoration: underline;
  font-weight: 800;
  color: var(--dark-soil);
  transition: var(--transition-time);

  &:hover {
    color: var(--main-hex);
    transition: var(--transition-time);
  }
}

/* -------------------------------------------------------------------------- */
/*                                 404 SECTION                                */
/* -------------------------------------------------------------------------- */

#container {
  width: 100vw;
  height: 100vh;
  /* overflow: hidden; */
}

.not-found-section {
  background: url('../img/404%20imgs/404Background.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  width: 100vw;
  height: 100vh;

  div {
    display: flex;
    flex-direction: column;
    width: 40%;
    margin: auto;
    justify-content: center;
    align-items: center;
    padding-top: 8rem;

    img {
      padding-bottom: 4rem;
      width: 95%;
    }

    .text-line {
      font-size: 1.8rem;
      padding-bottom: 2rem;
    }

    a {
      button {
        border-radius: 999rem;
        padding: 1rem 1.5rem;
        background-color: transparent;
        border: solid 3px black;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;

        p {
          font-size: 1.4rem;
          font-weight: 700;
        }

        i {
          color: var(--main-hex);
          font-size: 2rem;
        }
      }
    }
  }




}

/* --------------------------------- Nav Bar -------------------------------- */
nav {
  position: fixed;
  right: .5rem;
  /* leave room for the pink bar */
  top: 0;
  bottom: 0;
  width: 80px;
  /* skinnier horizontally */
  display: flex;
  flex-direction: column;
  z-index: 20;
  display: flex;
  flex-direction: column;
  z-index: 20;
}

/* The right bar under the navigation (pink accent) */
nav::after {
  content: '';
  position: fixed;
  right: 4rem;
  top: 0;
  bottom: 0;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  width: 30px;
  background: var(--accent-bar, var(--pink));
  z-index: 10;
  transition: background 160ms ease;
}

nav:has(li:first-child:hover)::after {
  background: var(--green);
}

nav:has(li:nth-child(2):hover)::after {
  background: var(--pink);
}

nav:has(li:nth-child(3):hover)::after {
  background: var(--indigo);
}

nav:has(li:nth-child(4):hover)::after {
  background: var(--yellow);
}

nav:has(li:nth-child(5):hover)::after {
  background: var(--dark-soil);
}

/* Active tab state (solid color + matching accent bar) */
nav li:first-child:has(> a.active) {
  background: var(--green);
}

nav li:nth-child(2):has(> a.active) {
  background: var(--pink);
}

nav li:nth-child(3):has(> a.active) {
  background: var(--indigo);
}

nav li:nth-child(4):has(> a.active) {
  background: var(--yellow);
}

nav li:nth-child(5):has(> a.active) {
  background: var(--dark-soil);
}

nav:has(li:first-child:has(> a.active))::after {
  background: var(--green);
}

nav:has(li:nth-child(2):has(> a.active))::after {
  background: var(--pink);
}

nav:has(li:nth-child(3):has(> a.active))::after {
  background: var(--indigo);
}

nav:has(li:nth-child(4):has(> a.active))::after {
  background: var(--yellow);
}

nav:has(li:nth-child(5):has(> a.active))::after {
  background: var(--dark-soil);
}

/* Active icons: make the circle/icons white for Home/Plus/Discover/Settings */
nav li:nth-child(2):has(> a.active) a i,
nav li:nth-child(3):has(> a.active) a i,
nav li:nth-child(5):has(> a.active) a i {
  color: #fff;
}

/* Make icons white on hover */
nav li:nth-child(2):hover a i,
nav li:nth-child(3):hover a i,
nav li:nth-child(5):hover a i {
  color: #fff;
}

/* Discover uses an image; invert to white when active */
nav li:nth-child(4):has(> a.active) a img.discover-icon {
  filter: brightness(0) invert(1);
}

nav li:nth-child(4):hover a img.discover-icon {
  filter: brightness(0) invert(1);
}

nav ul {
  list-style-type: none;
  font-family: Helvetica;
  font-size: 140%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0;
}

nav li {
  background-color: var(--soft-shell);
  position: relative;
  margin-right: 8px;
  transition: all 0.2s ease;
  height: calc((100% - 60px) / 5 + 28px);
  /* taller tabs, evenly split with extra vertical space */
  display: flex;
  align-items: center;
  width: 100%;
  clip-path: polygon(0 0,
      /* Top left */
      100% 20px,
      /* Top right - inset to create trapezoid */
      100% calc(100% - 20px),
      /* Bottom right - inset */
      0 100%
      /* Bottom left */
    );
}

/* Remove the individual tab bars since we have the main left bar */
nav li::after {
  display: none;
}

/* Add shadow/depth effect */
nav li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

nav li:hover {
  transform: translateX(8px);
}

nav li:has(> a.active) {
  transform: translateX(8px);
}

nav li:first-child {
  background: linear-gradient(to left,
      var(--green) 10px,
      var(--soft-shell) 10px,
      var(--soft-shell) calc(100% - 4px),
      var(--green) calc(100% - 4px));
}

nav li:nth-child(2) {
  background: linear-gradient(to left,
      var(--pink) 10px,
      var(--soft-shell) 10px,
      var(--soft-shell) calc(100% - 4px),
      var(--pink) calc(100% - 4px));
}

nav li:nth-child(3) {
  background: linear-gradient(to left,
      var(--indigo) 10px,
      var(--soft-shell) 10px,
      var(--soft-shell) calc(100% - 4px),
      var(--indigo) calc(100% - 4px));
}

nav li:nth-child(4) {
  background: linear-gradient(to left,
      var(--yellow) 10px,
      var(--soft-shell) 10px,
      var(--soft-shell) calc(100% - 4px),
      var(--yellow) calc(100% - 4px));
}

nav li:nth-child(5) {
  background: linear-gradient(to left,
      var(--dark-soil) 10px,
      var(--soft-shell) 10px,
      var(--soft-shell) calc(100% - 4px),
      var(--dark-soil) calc(100% - 4px));
}

nav li:first-child:hover {
  background: var(--green);
}

nav li:nth-child(2):hover {
  background: var(--pink);
}

nav li:nth-child(3):hover {
  background: var(--indigo);
}

nav li:nth-child(4):hover {
  background: var(--yellow);
}

nav li:nth-child(5):hover {
  background: var(--dark-soil);
}

a {
  display: block;
  color: rgb(108, 162, 196);
}

nav li a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dark-soil);
  width: 100%;
  height: 100%;
  padding: 28px 8px 28px 8px;
  /* taller vertically, skinnier horizontally */
  font-size: 1.1em;
  position: relative;
  z-index: 2;
}

nav li a {
  padding-left: 30px;
}

nav i {
  font-size: 35px;
  line-height: 1;
}

nav img.discover-icon {
  width: 28px;
  height: 28px;
}

/* Profile icon sizing */
.profile-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

/* Comment reply */

li {
  width: 100%;
  background: white;
  border: var(--dark-soil) 1px solid;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

/* .comment_viewer {
  .row{
.comment_viewer {
  .row {
    .avatar {
      img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-image: none;
      }
    }
  }
} */

.comment_viewer {
  margin-left: 2rem;
}

.avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-image: none;
  object-fit: cover;
}

.comment_viewer .avatar img {
  border-radius: 50%;
  object-fit: cover;
}

.comment_content {
  margin-left: 1rem;
}

.comment-delete {
  color: var(--error-hex);
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  margin-left: auto;
  margin-right: 1rem;
  align-items: center;
  display: flex;
  justify-content: center;
}

.comment-delete:hover {
  color: var(--error-hex);
  text-decoration: none;
}

/* Post content widths
#home .post_content {
  width: 60vw !important;
}

.modal-body .post_content li{
  width: 40vw !important;
} */

/* -------------------------------------------------------------------------- */
/*                              PROFILE LAYOUT                                */
/* -------------------------------------------------------------------------- */

.profile-page {
  display: flex;
  gap: 5rem;
  padding: 2rem;
  padding-top: 4rem;
  max-width: 1300px;
  margin: 0 7rem;
  box-sizing: border-box;
}

.profile-cover {
  background: var(--soft-shell);
  border-radius: 12px 0 12px 12px;
  padding: 1rem;
  box-shadow: 8px 8px 0 var(--dark-soil);
  position: relative;
  width: 20rem;
}

.profile-card h2 {
  text-align: center;
  margin: 0 0 .5rem;
  font-size: 1.4rem;
}

.profile-card p.bio {
  text-align: center;
  color: #6b5f5b;
  margin: 0 0 1rem;
}

.profile-card {
  display: flex;

}

.profile-stats {
  display: flex;
  justify-content: space-around;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.profile-stats>div {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: .5rem .9rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--indigo);
  color: #fff;
  border: none;
}

.posts-grid,
.no_posts {
  display: grid;
  grid-template-columns: 1fr, 1fr, 1fr;
  gap: 1rem;
}

.profile-posts {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.post-thumb {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition-time) ease, box-shadow var(--transition-time) ease;
  width: 220px;
}

.post-thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.post-thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* small utility */
.text-center {
  text-align: center;
}

/* Profile header */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: #fff;
}

.profile-header .logo {
  font-size: 1.8rem;
  font-weight: bold;
}

.profile-header h1 {
  margin: 0;
  font-size: 1.4rem;
}

/* Profile card styling */
.profile-card .avatar {
  text-align: center;
  padding: 1rem;
  overflow: hidden;
  height: 220px;
}

.profile-card .avatar img {
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  object-fit: cover;
  border: none;
  box-shadow: none;
  display: block;
}

.profile-name {
  text-align: center;
  margin: 0 0 .5rem;
  font-size: 1.3rem;
}

.profile-bio {
  text-align: center;
  color: #6b5f5b;
  margin: 0 0 1rem;
  font-size: .95rem;
}

.profile-stats div strong {
  font-size: 1.2rem;
  display: block;
}

.profile-stats div div {
  font-size: .8rem;
  color: #999;
}

.profile-actions {
  display: flex;
  gap: .8rem;
  justify-content: center;
  margin-top: 1rem;
}

.btn-edit-profile {
  padding: .7rem 1.4rem;
  border-radius: 8px;
  background: #6b4bd6;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease;
}

.btn-edit-profile:hover {
  background: #5a3cc4;
}

.follow_button {
  padding: .7rem 1.4rem;
  border-radius: 8px;
  background: var(--indigo);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease;
  position: relative;
  z-index: 15;
  pointer-events: auto;
}

.follow_button:hover {
  background: #5a3cc4;
  color: #fff;
}

.profile-card-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  right: -65px;
  top: 2rem;
  z-index: 15;
  gap: 1rem;
}

.card-link-icon {
  width: 50px;
  height: 50px;
  border-radius: 0 5px 5px 0;
  background: var(--soft-shell);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 8px 8px 0 black;
}

.card-link-icon-active {
  width: 50px;
  height: 50px;
  border-radius: 0 5px 5px 0;
  background: #E6CEB6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 8px 8px 0 var(--main-hex);
}

.card-link-icon:hover {
  transform: scale(1.1);

}

.btn-message {
  padding: .7rem 1rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #999;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn-message:hover {
  background: #f5f5f5;
}

/* Posts section */
.posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  background-color: transparent;
  border: none;
}

.posts-header h1 {
  margin: 0;
  padding: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-soil);
}

.filter-btn {
  padding: .6rem 1.2rem;
  border-radius: 999px;
  border: 2px solid #999;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  transition: background 0.2s ease;
}

.filter-btn:hover {
  background: #f5f5f5;
}

.profile-posts {
  h3 {
    font-size: 1.5rem;
  }

  .achievements {
    padding: 2rem;

    .stickers {
      display: flex;
      gap: 3rem;
      padding-bottom: 3rem;

      img {
        width: 5rem;
        height: 5rem;
      }
    }

    .badges {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: repeat(3, 1fr);
      gap: 1rem;
    }
  }
}

/* ------------------------------ Home Styling ------------------------------ */
/* --------------- Global Styling --------------- */
/* Centers the content to center VV */
.page_pane {
  padding: 0;
  margin: 0% auto;
  width: 60%;
}

#home {
  width: 100%;
  display: block;
}

.post_content p {
  /* Removes the margin in all p tags VV */
  margin: 0;
}

.post_content a.user_name {
  font-weight: bold;
  font-size: 1.25rem;
  position: relative;
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
}

.post_content .usernameGrp {
  display: flex;
  flex-wrap: wrap;
}

/* ----- Avatar Icon Styling ----- */
.post_block .userProfiles {
  display: flex;
  margin-right: 2%;
  text-wrap: nowrap;
}

.post_content img.avatar {
  /* Styles the profiles on top of each other */
  border-radius: 100%;
  width: 47px;
  height: 47px;
  margin: 0%;
}

/* Positions the second avatar VV*/
.post_content img.avatar:nth-child(2) {
  margin-left: -15%;
  margin-top: -10%;
  z-index: -1;
}

/* ----- Creator name Styling ----- */

.post_block .postBar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* ----- Post Styling ----- */
.post_viewer .postGrp {
  /* Flexes the Avatar and Text side by side */
  display: flex;
}

/* Post Text Styling */
.post_viewer .postGrp {
  gap: 2%;
}

.post_block img.attachment {
  object-fit: cover;
  width: 100%;
  height: 50vh;
  margin-top: 1.25rem;

  background: #E6CEB6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 8px 8px 0 var(--main-hex);
}

.card-link-icon:hover {
  transform: scale(1.1);

}

.btn-message {
  padding: .7rem 1rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #999;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn-message:hover {
  background: #f5f5f5;
}

/* Posts section */
.posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  background-color: transparent;
  border: none;
}

.posts-header h1 {
  margin: 0;
  padding: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-soil);
}

.filter-btn {
  padding: .6rem 1.2rem;
  border-radius: 999px;
  border: 2px solid #999;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  transition: background 0.2s ease;
}

.filter-btn:hover {
  background: #f5f5f5;
}

/* Drop down Styling */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  min-width: 200px;
  right: 0;
  /* margin: 10% auto; */
}

.dropdown-content button {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.oldest-btn {
  border-radius: 1rem 1rem 0rem 0rem;
}

.newest-btn {
  border-radius: 0rem 0rem 1rem 1rem;
}

.dropdown:hover .dropdown-content {
  display: flex;
  flex-direction: column;
}

.posts-grid, .no_posts {
    display: grid;
    grid-template-columns: 1fr, 1fr, 1fr;
    gap: 1rem;
    padding: 5rem 0;
}

.profile-posts {
  h3 {
    font-size: 1.5rem;
  }

  .achievements {
    padding: 2rem;

    .stickers {
      display: flex;
      gap: 3rem;
      padding-bottom: 3rem;

      img {
        width: 5rem;
        height: 5rem;
      }
    }

    .badges {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: repeat(3, 1fr);
      gap: 1rem;
    }
  }
}

/* ------------------------------ Home Styling ------------------------------ */
/* --------------- Global Styling --------------- */
/* Centers the content to center VV */
.page_pane {
  padding: 0;
  margin: 0% auto;
  width: 60%;
}

#home {
  width: 100%;
  display: block;
}

.post_content p {
  /* Removes the margin in all p tags VV */
  margin: 0;
}

.post_content a.user_name {
  font-weight: bold;
  font-size: 1.25rem;
  position: relative;
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
  color: var(--main-hex);
}

.post_content .usernameGrp {
  display: flex;
  flex-wrap: wrap;
}

/* ----- Avatar Icon Styling ----- */
.post_block .userProfiles {
  display: flex;
  margin-right: 2%;
  text-wrap: nowrap;
}

.post_content img.avatar {
  /* Styles the profiles on top of each other */
  border-radius: 100%;
  width: 47px;
  height: 47px;
  margin: 0%;
}

/* Positions the second avatar VV*/
.post_content img.avatar:nth-child(2) {
  margin-left: -15%;
  margin-top: -10%;
  z-index: -1;
}

/* ----- Creator name Styling ----- */

.post_block .postBar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* ----- Post Styling ----- */
.post_viewer .postGrp {
  /* Flexes the Avatar and Text side by side */
  display: flex;
}

/* Post Text Styling */
.post_viewer .postGrp {
  gap: 2%;
}

.post_block img.attachment {
  object-fit: cover;
  width: 100%;
  height: 70vh;
  margin-top: 1.25rem;

  /* Rounds the post's borders VV */
  border-radius: 15px;
}

/* Icons */
.iconBtns {

  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: .5rem 0;
  align-items: center;

}

.iconBtns button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iconBtns button img {
  width: 50px;
  height: 37px;
  object-fit: contain;
  display: block;
}

.iconBtns>div {
  min-height: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  gap: 3%;
}

.iconBtns > div strong {
    font-size: 1.5rem; 
}

.post_viewer {
  border-bottom: none;
}

.iconBtns div button {
    img {
        display: block;
        border-radius: 0 !important;
        background-image: none;
    }

    strong {
      font-size: 3rem;
    }
}

#scrapbook {
  width: 100%;
  display: block;
}

#scrapbook iframe {
  width: 80%;
  height: calc(100vh - 100px);
  border: 1px solid black;
}

/* -------------------------------------------------------------------------- */
/*                                  MAIN ICON                                 */
/* -------------------------------------------------------------------------- */

.suggestions {
  position: fixed;
}

.sugg-header {
  width: 4rem;

  img {
    width: 100%;
  }
}

/* -------------------------------------------------------------------------- */
/*                                 SEARCH PAGE                                */
/* -------------------------------------------------------------------------- */

search {
  justify-self: center;
  outline: 2px solid var(--dark-soil);
  border-radius: 999rem;
  position: absolute;
  bottom: 4rem;

  form {

    button {
      padding-right: 2rem;
    }

    input {
      padding: 10rem;
      border-radius: 9999rem;
    }

    input:focus {
      outline: none;
    }

  }
}

/* --------------------------------- Masonry -------------------------------- */
/*
/* --------------------------------- Masonry -------------------------------- */

.gridGrp {
  width: 50%;
  height: 50%;
  margin: 0 auto;
}

/*
Source - https://stackoverflow.com/a
Posted by Michael Benjamin, modified by community. See post 'Timeline' for change history
Retrieved 2025-11-23, License - CC BY-SA 4.0
*/

grid-container {
  padding-top: 12%;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-auto-rows: 50px;
  grid-gap: 3%;
  grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
}

[short] {
  height: 100%;
  grid-row: span 1;
}

[short] {
  height: 100%;
  grid-row: span 1;
}

[tall] {
  height: 100%;
  grid-row: span 2;
}

[taller] {
  height: 100%;
  grid-row: span 3;
}

[tallest] {
  height: 100%;
  grid-row: span 4;
}

grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

#scrapbook {
  margin: 0;
  margin-left: 25rem;

  iframe {
    width: 78%;
    border: none;
    border-radius: 1.5rem;
  }
}

/* -------------------------------------------------------------------------- */
/*                               COMMENT STYLES                               */
/* -------------------------------------------------------------------------- */

.comment_composer img {
  width: 4rem;
  border-radius: 999rem;
  margin-right: 1rem;
}

.post_block .row {
  display: flex;
  width: 100%;
  margin-top: 1rem;
}

.post_content {
    display: flex;
    flex-direction: column;

    img {
      align-self: center;
      margin-bottom: 1rem;
    }
}

.comment_composer textarea {
  width: 100%;
}

.comment_creator {
  width: 100%;
}

.row_full.comment_box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* -------------------------------------------------------------------------- */
/*                                PROFILE POSTS                               */
/* -------------------------------------------------------------------------- */

.profile-posts {
  width: fit-content;

  .comment_box,
  .iconBtns {
    display: none;
  }

  .posts-grid {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: auto auto auto;


  }
}

/* -------------------------------------------------------------------------- */
/*                            EDIT PROFILE MESSAGE                            */
/* -------------------------------------------------------------------------- */

#edit-profile-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(72, 214, 26, 0.2);
  color: var(--success-hex);
  padding: 10px 15px;
  border-radius: var(--border-radius-panel);
  border: 1px solid var(--success-hex);
  margin-top: 0;
  margin-bottom: 20px;
  width: fit-content;
  transition: opacity 0.5s ease;
}

#edit-profile-msg i {
  font-size: 1.2rem;
}


/* Post Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 20px;
}

.modal-content {
  background: var(--bg-color, #fff);
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  margin: auto;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--text-color, #333);
  z-index: 10;
}

.modal-content .post_block {
  margin: 0;
  box-shadow: none;
  border-radius: 12px;
}

/* Ensure images in modal don't overflow */
.modal-content img.attachment {
  max-height: fit-content;
  max-width: fit-content;
  object-fit: contain;
  width: 100%;
}

input:focus {
  outline: none;
}



/* --------------------------------- Masonry -------------------------------- */
/*
/* --------------------------------- Masonry -------------------------------- */

.gridGrp {
  width: 50%;
  height: 50%;
  margin: 0 auto;
}

/*
Source - https://stackoverflow.com/a
Posted by Michael Benjamin, modified by community. See post 'Timeline' for change history
Retrieved 2025-11-23, License - CC BY-SA 4.0
*/

grid-container {
  padding-top: 12%;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-auto-rows: 50px;
  grid-gap: 3%;
  grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
}

[short] {
  height: 100%;
  grid-row: span 1;
}

[short] {
  height: 100%;
  grid-row: span 1;
}

[tall] {
  height: 100%;
  grid-row: span 2;
}

[taller] {
  height: 100%;
  grid-row: span 3;
}

[tallest] {
  height: 100%;
  grid-row: span 4;
}

grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

#scrapbook {
  margin: 0;
  margin-left: 25rem;

  iframe {
    width: 78%;
    border: none;
    border-radius: 1.5rem;
  }
}

.body_no_scroll {
  overflow: hidden;
}


#scrapbook_box {
	width: 93%;
	height: 100vh;
	margin-top: 100px;
	padding: 20px;
	margin: 0;
  position: absolute;
  top: 0;
}

.mce-btn {
  width:100%;
  background-color:var(--pink);
  margin: 2rem 0;
  border-radius: 999rem !important;
  color:white;
  padding:10px 0;
  border-radius: 0;
  border:0;
  font-weight:bold;
  font-size:1.8rem;
  text-transform: uppercase;
}  

.mce-toolbox {
  width: fit-content;
  border-radius: 999rem;
  width: 4rem;
  height: 25rem;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  background-color: var(--dark-soil);
  margin: auto 3.5rem;
}

.mce-workspace {
  background-color: transparent;
}

.mce-toolbar {
  top: auto;
  bottom: 3rem;
  left: 3.5rem;
  background-color: var(--dark-soil);
  padding: 1rem;
  border-radius: 999rem;
}

.mce-sidebar {
  background: transparent;
  max-width: 100%;
}

.mce-panel-tabs {
    margin: 1rem 0;
    border-radius: 999rem;
    background: var(--indigo);
    width: fit-content;
}

.mce-panel-tab {
    display: inline-block;
    background: transparent;
    padding: 0.1rem 1rem 0.6rem 1rem;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: transparent;
}

.mce-prop-simple-label {
    padding: 2px 8px 2px 2px;
    color: var(--dark-soil);
}

.mce-layers-panel-item-label-input {
    color: var(--dark-soil);
}

.mce-icon-button.mce-icon-button-sm svg path {
    fill: var(--dark-soil);
}

.mce-prop-number-input {
    width: 100%;
    background: #dcdcdc;
    color: var(--dark-soil);
    box-sizing: border-box;
    border: 0;
    outline: 0;
    padding: 5px;
    border-radius: 1rem;
}

.mce-layers-panel-item.mce-selected {
    background: #dcdcdc;
}

  
/* -------------------------------------------------------------------------- */
/*                               COMMENT STYLES                               */
/* -------------------------------------------------------------------------- */

.comment_composer img {
  width: 4rem;
  border-radius: 999rem;
  margin-right: 1rem;
}

.post_block .row {
  display: flex;
  width: 100%;
  margin-top: 1rem;
}

.comment_composer textarea {
  width: 100%;
}

.comment_creator {
  width: 100%;
}

/* -------------------------------------------------------------------------- */
/*                                PROFILE POSTS                               */
/* -------------------------------------------------------------------------- */

.profile-posts {
  width: fit-content;

  .comment_box,
  .iconBtns {
    display: none;
  }

  .posts-grid {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: auto auto auto;


  }
}

/* -------------------------------------------------------------------------- */
/*                            EDIT PROFILE MESSAGE                            */
/* -------------------------------------------------------------------------- */

#edit-profile-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(72, 214, 26, 0.2);
  color: var(--success-hex);
  padding: 10px 15px;
  border-radius: var(--border-radius-panel);
  border: 1px solid var(--success-hex);
  margin-top: 0;
  margin-bottom: 20px;
  width: fit-content;
  transition: opacity 0.5s ease;
}

#edit-profile-msg i {
  font-size: 1.2rem;
}


/* Post Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 20px;
}

.modal-content {
  background: var(--bg-color, #fff);
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  margin: auto;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--text-color, #333);
  z-index: 10;
}

.modal-content .post_block {
  margin: 0;
  box-shadow: none;
  border-radius: 12px;
}

/* Ensure images in modal don't overflow */
.modal-content img.attachment {
  max-height: fit-content;
  max-width: fit-content;
  object-fit: contain;
  width: 100%;
  background: #000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10px auto;
  }
}

/* Hide Posts header when modal is open */
body.modal-open .posts-header {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}

/* Prevent scrolling when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Ensure modal is on top of everything */
.modal-overlay {
  z-index: 9999 !important;
}

/* Comment Actions */
.comment_actions {
  margin-top: 5px;
  font-size: 1rem;
  color: #666;
  display: flex;
  gap: 15px;
}

.action-link {
  color: #666;
  text-decoration: none;
  cursor: pointer;
  font-weight: bold;
}


[tall] {
  height: 100%;
  grid-row: span 2;
}

[taller] {
  height: 100%;
  grid-row: span 3;
}

[tallest] {
  height: 100%;
  grid-row: span 4;
}

grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

#scrapbook {
  margin: 0;
  margin-left: 25rem;

  iframe {
    width: 78%;
    border: none;
    border-radius: 1.5rem;
  }
}

/* -------------------------------------------------------------------------- */
/*                               COMMENT STYLES                               */
/* -------------------------------------------------------------------------- */

.comment_composer img {
  width: 4rem;
  border-radius: 999rem;
  margin-right: 1rem;
}

.post_block .row {
  display: flex;
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.comment_composer textarea {
  width: 100%;
}

.comment_creator {
  width: 100%;
}

/* -------------------------------------------------------------------------- */
/*                                PROFILE POSTS                               */
/* -------------------------------------------------------------------------- */

.profile-posts {
  width: fit-content;

  .comment_box,
  .iconBtns {
    display: none;
  }

  .posts-grid {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: auto auto auto;


  }
}

/* -------------------------------------------------------------------------- */
/*                            EDIT PROFILE MESSAGE                            */
/* -------------------------------------------------------------------------- */

#edit-profile-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(72, 214, 26, 0.2);
  color: var(--success-hex);
  padding: 10px 15px;
  border-radius: var(--border-radius-panel);
  border: 1px solid var(--success-hex);
  margin-top: 0;
  margin-bottom: 20px;
  width: fit-content;
  transition: opacity 0.5s ease;
}

#edit-profile-msg i {
  font-size: 1.2rem;
}


/* Post Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 20px;
}

.modal-content {
  background: var(--bg-color, #fff);
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  margin: auto;
  padding: 20px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--text-color, #333);
  z-index: 10;
}

.modal-content .post_block {
  margin: 0;
  box-shadow: none;
  border-radius: 12px;
}

/* Ensure images in modal don't overflow */
.modal-content img.attachment {
  max-height: fit-content;
  max-width: fit-content;
  object-fit: contain;
  width: 100%;
  background: #000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10px auto;
  }
}

/* Hide Posts header when modal is open */
body.modal-open .posts-header {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}

/* Prevent scrolling when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Ensure modal is on top of everything */
.modal-overlay {
  z-index: 9999 !important;
}

/* Comment Actions */
.comment_actions {
  margin-top: 5px;
  font-size: 0.8rem;
  color: #666;
  display: flex;
  gap: 15px;
}

.action-link {
  color: #666;
  text-decoration: none;
  cursor: pointer;
  font-weight: bold;
}

.action-link:hover {
  text-decoration: underline;
  color: var(--main-hex);
}

.action-link.delete {
  color: var(--error-hex);
}

/* Like Button */
.like_button {
  width: 100px;
  height: 35px;
  background-image: url('../img/Icons/Heart.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  background-color: transparent;
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: 0;
}

.like_button:hover {
  transform: scale(1.1);
}

.like_button.unlike_post {
  background-image: url('../img/Icons/HeartFilled.svg');
  margin: 0;
  width: 3rem;
}

.like_button.like_post {
    background-image: url(../img/Icons/Heart.svg);
    background-repeat: no-repeat;
    margin: 0;
    width: 3rem;
}

/* POST CONTENT STYLES */

.post_composer img {
    width: 100px;
    height: 100px;
    display: block;
    margin-left: auto;
    border-radius: 50%;
}

.post-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Post Header Alignment */
.row_full {
  display: flex;
  align-items: center;
  gap: 10px;
}

.userProfiles .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.postBar {
  display: flex;
  /* -------------------------------------------------------------------------- */
  /*                                PROFILE POSTS                               */
  /* -------------------------------------------------------------------------- */

  .profile-posts {
    width: fit-content;

    .comment_box,
    .iconBtns {
      display: none;
    }

    .posts-grid {
      display: flex;
      flex-wrap: wrap;
      grid-template-columns: auto auto auto;


    }
  }
}

/* -------------------------------------------------------------------------- */
/*                            EDIT PROFILE MESSAGE                            */
/* -------------------------------------------------------------------------- */

#edit-profile-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(72, 214, 26, 0.2);
  color: var(--success-hex);
  padding: 10px 15px;
  border-radius: var(--border-radius-panel);
  border: 1px solid var(--success-hex);
  margin-top: 0;
  margin-bottom: 20px;
  width: fit-content;
  transition: opacity 0.5s ease;
}

#edit-profile-msg i {
  font-size: 1.2rem;
}


/* Post Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 20px;
}

.modal-content {
  background: var(--bg-color, #fff);
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  margin: auto;
  padding: 20px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--text-color, #333);
  z-index: 10;
}

.modal-content .post_block {
  margin: 0;
  box-shadow: none;
  border-radius: 12px;
}

/* Ensure images in modal don't overflow */
.modal-content img.attachment {
  max-height: fit-content;
  max-width: fit-content;
  object-fit: contain;
  width: 100%;
  background: #000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10px auto;
  }
}

/* Hide Posts header when modal is open */
body.modal-open .posts-header {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}

/* Prevent scrolling when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Ensure modal is on top of everything */
.modal-overlay {
  z-index: 9999 !important;
}

/* Comment Actions */
.comment_actions {
  margin-top: 5px;
  font-size: 0.8rem;
  color: #666;
  display: flex;
  gap: 15px;
}

.action-link {
  color: #666;
  text-decoration: none;
  cursor: pointer;
  font-weight: bold;
}

.action-link:hover {
  text-decoration: underline;
  color: var(--main-hex);
}

.action-link.delete {
  color: var(--error-hex);
}

/* Like Button */
.like_button {
  width: 35px;
  height: 35px;
  background-image: url('../img/Icons/Heart.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  background-color: transparent;
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: 0;
}

.like_button:hover {
  transform: scale(1.1);
}

.like_button.unlike_post {
  background-image: url('../img/Icons/Heart.png');
}

/* POST CONTENT STYLES */

.post-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Post Header Alignment */
.row_full:not(.comment_box) {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
}

.userProfiles .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.postBar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.usernameGrp {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.usernameGrp .user_name {
  font-weight: bold;
  text-decoration: none;
  color: var(--dark-soil);
  line-height: 1.2;
}

.search_result_link {
  text-decoration: none;
  color: var(--dark-soil);
  display: inline-block;
}