/* ===== RESET & BASE ===== */
body {
  background-color: #c7eaf5;
  background-size: cover;
  color: #15141c;
  font-family: arial;
  font-size: 18px;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: url('bg.webp'); 
  background-attachment: fixed
}
img {
  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
}
/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #edeff4;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 100;
  box-sizing: border-box;
}

body {
  padding-top: 70px;
}

#auth-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: 30px;
}

.notifications-panel {
    position: fixed;
    width: 380px;
    max-height: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(166, 212, 220, 0.5);
    z-index: 100;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    top:60px;
    right:10px;
}

.notifications-panel.show {
    opacity: 1;
    transform: translateY(0);
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    background: rgba(199, 234, 245, 0.9);
    border-radius: 12px 12px 0 0;
}

.notifications-header h3 {
    margin: 0;
    font-size: 16px;
    color: #02383e;
}

.notifications-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.notifications-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.notifications-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    max-height: 400px;
}

.notifications-loading,
.notifications-empty,
.notifications-error {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 14px;
}

.notifications-date-group {
    margin-bottom: 8px;
}

.notifications-date-header {
    padding: 8px 16px;
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 500;
}

.notification-item {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 12px 16px 12px 60px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.notification-item:hover {
    background: rgba(199, 234, 245, 0.3);
}

.notification-read-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 11px;
    color: #4caf50;
    border-radius: 4px;
    transition: background 0.2s;
}

.notification-read-btn:hover {
    background: rgba(76, 175, 80, 0.1);
}

.notification-avatar {
    position: absolute;
    left: 16px;
    top: 12px;
    width: 32px;
    height: 32px;
}

.notif-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #a6d4dc;
}

.notif-avatar-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.notif-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
}

.notification-content {
    flex: 1;
    margin-right: 12px;
}

.notification-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-preview {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    font-style: italic;
    background: #f9f9f9;
    padding: 6px 10px;
    border-radius: 6px;
    border-left: 3px solid #a6d4dc;
}

.notification-time {
    font-size: 10px;
    color: #999;
    margin-top: 6px;
}

.notification-action-bottom {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.notification-action-btn {
    background: none;
    border: 1px solid #ddd;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    transition: all 0.2s;
    background: white;
}

.notification-action-btn:hover {
    background: #f0f0f0;
}

.notification-action-btn.accept-request {
    color: #4caf50;
    border-color: #4caf50;
}

.notification-action-btn.accept-request:hover {
    background: #4caf50;
    color: white;
}

.notification-action-btn.reject-request {
    color: #f44336;
    border-color: #f44336;
}

.notification-action-btn.reject-request:hover {
    background: #f44336;
    color: white;
}

.notifications-footer {
    display: flex;
    gap: 10px;
    padding: 10px 16px;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
    border-radius: 0 0 12px 12px;
}

.notifications-mark-all-btn,
.notifications-refresh-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.notifications-mark-all-btn:hover {
    background: #4caf50;
    color: white;
    border-color: #4caf50;
}

.notifications-refresh-btn:hover {
    background: #2196f3;
    color: white;
    border-color: #2196f3;
}

.notifications-content::-webkit-scrollbar {
    width: 6px;
}

.notifications-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.notifications-content::-webkit-scrollbar-thumb {
    background: #a6d4dc;
    border-radius: 3px;
}

.notifications-content::-webkit-scrollbar-thumb:hover {
    background: #02383e;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    min-width: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.logout-btn {
  background-color: #bef1fc;
  font-size: 16px;
  border: none;
  padding: 8px 20px;
  cursor: pointer;
  border-radius: 8px;
  width: auto;
  display: inline-block;
  transition: background-color 0.2s;
}

.logout-btn:hover {
  background-color: #9fd9e8;
}

/* ===== MAIN FEED CONTAINER ===== */
.feedmain {
  border-width: 4px;
  border-color: #bccee2;
  border-style: solid;
  border-radius: 12px;
  width: 50%;
  max-width: 1240px;
  min-width:680px;
  flex: 1;
  margin-left: 0;
  background-color: #edeff4;
  box-sizing: border-box;
  word-wrap: normal;
  position: relative;
  margin-top: 32px;
}
.chat-preview-image {
max-height:150px;
max-width:150px;
}
.chat-preview-video {
max-height:150px;
max-width:150px;
}
.feed-tabs {
    display: flex;
    margin:0;
    top:-4px;
    position:relative;
    height:51px;
    border-bottom: 4px solid rgb(127,129,140);
    padding-bottom: 0;
    background: rgb(188, 206, 226);
    justify-content:center;
    filter: drop-shadow(-5px 8px 8px rgba(0, 10, 90, 0.2));
}

.tab-btn {
    background: white;
    border: none;
    height:55px;
    padding: 0;
    width: 120px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border-color: rgb(127, 129, 140);
    border-width: 4px 2px;
    border-style: solid;
    /*border-bottom-style: none;*/
    /*border-radius: 0 0 12px 12px;*/
    /*height: 45px;*/
}

.tab-btn:hover {
    background-color: rgba(190, 241, 252, 0.3);
    color: #15141c;
}

.tab-btn.active {
    font-weight: bold;
    
    
    position: relative;
    background-color: rgba(237, 239, 244, 1);\
    /*top: 10px;
    height: 45px;
    transition: left 1s linear;
    border-radius: 8px 8px 0 0;
    border-top-style: none;*/
}

/* ===== POST STYLES ===== */
.post {
  box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
  border-color: #cccfe0;
  border-width: 2px;
  border-style: outset;
  border-radius: 12px;
  width:100%;
  min-width:670px;
  min-height: 100px;
  height: auto;
  background-color: #ffffff;
  margin-left: 50px;
  margin-top: 60px;
  padding: 25px;
  padding-top: 35px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 0;
  padding-right: 0;
}

/* ===== POST AUTHOR HEADER ===== */
.post-author {
  position: absolute;
  top: -5px;
  left: 25px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  z-index: 10;
  filter: drop-shadow(-5px 8px 8px rgba(0, 0, 0, 0.15));
}

/* Post author section */
.post-author {
  position: absolute;
    top: 0px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding-left: 0px;
    height: 67px;
    padding-top: 0px;
    left: 0;
    border-bottom-style: solid;
    background: linear-gradient(90deg, rgba(223, 238, 246, 1) 0%, rgba(150, 214, 246, 1) 100%);
    margin-bottom: 20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-color: #BCCEE2;
    border-width: 4px;
    z-index: 10;
    width: 100%;
    filter: drop-shadow(-5px 8px 8px rgba(0, 0, 0, 0.15));
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.community-author-avatar {
    margin-left: 25px;
    top: -18px;
    width: 84px;
    height: 84px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}
.author-avatar {
    margin-left: 25px;
    top: -15px;
    width: 78px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}
.post-author .community-author-avatar + .author-avatar {
    margin-left: 0px;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-top:30px;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.author-info.community {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: -20px;
    position: relative;
}

.author-name {
  color: #15141c;
  text-decoration: none;
  font-weight: bold;
  font-size: 24px;
  line-height: 1.2;
  display: inline-block;
  text-shadow: 
    2px 2px 3px rgba(255, 255, 255, 0.8),
    1px 1px 2px rgba(0, 0, 0, 0.1);
}

.community-author-name {
  color: #15141c;
  text-decoration: none;
  font-weight: bold;
  font-size: 32px;
  line-height: 1.2;
  display: inline-block;
  margin-left:-60px;
  text-shadow: 
    2px 2px 3px rgba(255, 255, 255, 1), 3px 3px 3px rgba(0, 0, 0, 0.2)
}

.community-author-name-alone {
  color: #15141c;
  text-decoration: none;
  font-weight: bold;
  font-size: 32px;
  line-height: 1.2;
  display: inline-block;
  text-shadow: 
    2px 2px 3px rgba(255, 255, 255, 1), 3px 3px 3px rgba(0, 0, 0, 0.2)
}

.author-name:hover {
  text-decoration: underline;
  color: #2c5282;
}

.community-author-name:hover {
  text-decoration: underline;
  color: #2c5282;
}

.community-author-name-alone:hover {
  text-decoration: underline;
  color: #2c5282;
}
.author-timestamp {
  color: #666;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.9;
  text-decoration: none;
}
.author-timestamp:hover {
  text-decoration: underline;
}


/* ===== POST CONTENT ROW ===== */

.post-image {
  max-width: 300px;
  max-height: 300px;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s;
}

.post-image:hover {
  opacity: 0.9;
}

.post-text {
  white-space: pre-wrap;
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  word-wrap: break-word;
}

/* ===== POST BOTTOM ROW ===== */
.post-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: auto;
    margin-top: 15px;
    background: linear-gradient(90deg, rgba(223, 238, 246, 1) 0%, rgba(150, 214, 246, 1) 100%);
    /*padding: 10px 20px;*/
    border: 2px solid #bccee2;
    border-width: 2px 0 2px 0;
}

.spoiler-contents {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
}

.spoiler-text {
    padding: 10px;
    background: rgba(243 249 255 / 80%);
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 24px;
    max-width: 70%;
    text-align: center;
}

.nsfw-text {
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 10px;
    background: none;
    border-style: solid;
    border-color: #e85f5f;
    font-size: 24px;
    border-width: 2px;
    color: #e85f5f;
}

.nsfw-text-secondary {
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 6px;
    background: none;
    border-style: solid;
    border-color: #e85f5f;
    font-size: 16px;
    border-width: 2px;
    color: #e85f5f;
}

.spoiler-open {
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: #efefef;
}

.spoiler-open:hover {
    transform: scale(1.1);
    background: #e7e7e7;
}

.spoiler-plaque:hover {
    filter: brightness(105%);
}

.post-interactions {
   padding: 5px;
   margin-right:10px;
   border-radius:6px;
   background: rgba(255,255,255, 0);
   transition: background 0.2s ease;
   position: absolute;
   right:0;
}

.post-interactions:hover {
   background: #e1ebf3;
   cursor:pointer;
}

.author-author-section {
  display:flex;
  flex-direction: row;
  gap:10px;
}

.post-left-section {
  display: flex;
  align-items: center;
  /*gap: 8px;*/
  flex-wrap: wrap;
  height:48px;
}

.post-right-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== LIKE BUTTON ===== */
.like-button {
  background: linear-gradient(208deg, rgba(190, 241, 252, 1) 0%, rgba(190, 252, 228, 1) 100%);
  font-size: 16px;
  border-style: none;
  padding: 6px 15px;
  cursor: pointer;
  min-width: 80px;
  transition: all 0.2s ease;
  color: #15141c;
  width: auto !important;
  margin: 0;
  height:100%;
}

.like-button:hover {
  background: linear-gradient(208deg, rgba(170, 221, 242, 1) 0%, rgba(170, 242, 218, 1) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 10, 90, 0.2);
}

.like-button:active {
  background: linear-gradient(208deg, rgba(150, 201, 222, 1) 0%, rgba(150, 222, 198, 1) 100%);
  transform: translateY(0);
  box-shadow: none;
}

.like-button.liked {
  background: linear-gradient(208deg, rgba(150, 201, 222, 1) 0%, rgba(150, 222, 198, 1) 100%);
  border-color: #6fc0c1;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.like-button.liked:hover {
  background: linear-gradient(208deg, rgba(140, 191, 212, 1) 0%, rgba(140, 212, 188, 1) 100%);
}

.dislike-button {
  background: linear-gradient(208deg, rgba(132, 123, 232, 0.5) 0%, rgba(190, 199, 255, 0.5) 100%);
  font-size: 16px;
  border-style: none;
  padding: 6px 15px;
  cursor: pointer;
  min-width: 80px;
  transition: all 0.2s ease;
  color: #15141c;
  width: auto;
  margin: 0;
  height:100%;
  border-width:2px;
  border-right-style:solid;
  border-color: #bccee2;
}

.dislike-button:hover {
  background: linear-gradient(208deg, rgb(92 83 195 / 50%) 0%, rgb(90 109 227 / 50%) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 10, 90, 0.2);
}

.dislike-button:active {
  background: linear-gradient(208deg, rgb(60 51 157 / 50%) 0%, rgb(55 71 169 / 50%) 100%);
  transform: translateY(0);
  box-shadow: none;
}

.dislike-button.disliked {
  background: linear-gradient(208deg, rgb(69 56 215 / 50%) 0%, rgb(25 40 135 / 50%) 100%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dislike-button.liked:hover {
  background: linear-gradient(208deg, rgba(140, 191, 212, 1) 0%, rgba(140, 212, 188, 1) 100%);
}


.like-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    /* padding: 4px 8px; */
    height: 100%;
    /* border: 2px solid #8FDADB; */
    border-width: 0px 2px 0px 2px;
    border-color: #bccee2;
    border-style: solid;
    font-size: 16px;
    font-weight: normal;
    background-color: white;
    color: #15141c;
    transition: all 0.2s ease;
}

.like-button.liked + .like-counter {
  border-color: #6fc0c1;
  background-color: #f5f5f5;
}

/* ===== COMMENT COUNT ===== */
.comment-count-text {
  margin-left: 15px;
  font-size: 14px;
  color: #666;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===== DELETE/EDIT BUTTONS ===== */
.delete-btn {
  background: linear-gradient(208deg, rgba(190, 241, 252, 1) 0%, rgba(190, 252, 228, 1) 100%);
  font-size: 16px;
  border-style: solid;
  border-width: 2px;
  border-color: #8FDADB;
  padding: 6px 15px;
  cursor: pointer;
  border-radius: 8px;
  min-width: 80px;
  transition: all 0.2s ease;
}

.delete-btn:hover {
  background: linear-gradient(208deg, rgba(170, 221, 242, 1) 0%, rgba(170, 242, 218, 1) 100%);
}

.delete-btn:active {
  background: linear-gradient(208deg, rgba(150, 201, 222, 1) 0%, rgba(150, 222, 198, 1) 100%);
}

/* ===== POST CREATOR SECTION ===== */
#new-post-box {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-left: 50px;
  width: calc(100% - 50px);
}

.post-creator-row {
  display: flex;
  flex-direction: row;
  gap: 18px;
  width: 100%;
  align-items: stretch;
}

.content-row-container {
    margin-top: 65px;
    margin-bottom: 15px;
}

.spoiler-plaque {
    width:100%;
    height:100%;
    pointer-events: none;
    user-select: none;
    position: relative;
    transition: all 0.2s ease;
}

.spoiler-plaque * {
    pointer-events: none;
}

.spoiler-plaque button {
    pointer-events: auto;
}

.spoiler-content {
filter: blur(1.5rem);
height: 200px;
  overflow: hidden;
}

#post-input {
  flex: 3;
  min-width: 0;
  padding: 12px;
  font-size: 18px;
  border: 2px solid #bccee2;
  border-radius: 8px;
  background-color: #edeff4;
  resize: none;
}

.post-buttons {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 120px;
}

.post-dropdown {
  position: absolute;
  top: 40px;
  right: -150px;
  margin-top: 8px;
  min-width: 180px;
  background-color: white;
  border: 2px solid #8FDADB;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 10, 90, 0.2);
  display: none;
  z-index: 1000;
  overflow: hidden;
}

.author-name-user {
  text-decoration:none;
    font-weight: bold;
  color:#15141c;
}

.author-name-user:hover {
  text-decoration:underline;
    font-weight: bold;
  color: #2c5282;
}

.postbutton {
  background-color: #bef1fc;
  font-size: 18px;
  border: none;
  padding: 12px 15px;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.postbutton:hover {
  background-color: #9fd9e8;
}

.postbutton:active {
  background-color: #7479a1;
}

/* File input styling */
#image-input {
  color: transparent;
  padding: 12px 15px;
  background-color: #bef1fc;
  border-radius: 8px;
  cursor: pointer;
}

#image-input::file-selector-button {
  background-color: #bef1fc;
  font-size: 18px;
  border: none;
  padding: 0;
  margin-right: 10px;
  cursor: pointer;
  color: black;
  background: none;
  font-family: inherit;
}

/* ===== COMMENTS SECTION ===== */
.comments-section {
  //margin-top: 20px;
  padding-top: 15px;
  //border-top: 1px solid rgba(190, 241, 252, 0.3);
    margin-right:20px;
    margin-left:20px;
}

/* Comment input area */
.comment-input-area {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  align-items: flex-start;
}

.comment-input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 12px;  /* Rounded squares! */
  object-fit: cover;
  flex-shrink: 0;
}

.comment-input {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid #bccee2;
  border-radius: 8px;
  background: #edeff4;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
  width: 70%
}

.comment-input:focus {
  outline: none;
  border-color: #bef1fc;
}

.comment-button {
  width: auto !important;
  padding: 8px 16px !important;
  font-size: 14px !important;
  align-self: flex-end;
}

/* Comments list */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Individual comment */
.comment-item {
  background: rgba(237, 239, 244, 0.5);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}



.comment-author {
  color: #2c5282;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.comment-author:hover {
  text-decoration: underline;
}

.comment-time {
  color: #666;
  font-size: 10px;
  white-space: nowrap;
}

.comment-content {
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  margin-bottom: 8px;
  padding-left: 32px;
}

/* Comment footer - like button at bottom right */
.comment-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.comment-like-btn {
  background: linear-gradient(208deg, rgba(190, 241, 252, 1) 0%, rgba(190, 252, 228, 1) 100%);
  font-size: 14px;
  border: 2px solid #8FDADB;
  padding: 4px 12px;
  cursor: pointer;
  border-radius: 8px;
  min-width: 50px;
  max-width: 50px;
  transition: all 0.2s ease;
  color: #15141c;
}

.comment-like-btn:hover {
  background: linear-gradient(208deg, rgba(170, 221, 242, 1) 0%, rgba(170, 242, 218, 1) 100%);
  transform: translateY(-1px);
}

.comment-like-btn.liked {
  background: linear-gradient(208deg, rgba(150, 201, 222, 1) 0%, rgba(150, 222, 198, 1) 100%);
  border-color: #6fc0c1;
}

.comment-like-counter {
  font-size: 14px;
  color: #666;
  min-width: 16px;
  border: 1px solid #8FDADB;
  border-radius: 4px;
  text-align: center;
  padding: 2px 6px;
    background: white;
}

.show-all-comments-container {
  margin-top: 10px;
  text-align: right;
}

.comments-divider {
  border: none;
  border-top: 1px solid #bccee2;
  margin: 10px 0;
  width: 100%;
}

.show-all-comments-btn {
  background: none;
  border: none;
  color: #2c5282;
  font-size: 13px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.show-all-comments-btn:hover {
  background-color: rgba(190, 241, 252, 0.3);
  text-decoration: underline;
}

/* Hidden comments container */
.hidden-comments {
  margin-top: 10px;
}

/* Make textarea non-resizable */
.comment-input {
  resize: none !important;
}
.show-all-comments-container {
  margin: 0px;
  width: 100%;
}

.line-with-button {
  position: relative;
  width: 100%;
  height: 20px;
  border-bottom: 1px solid #bccee2;
  text-align: center;
  margin: 10px 0;
}

.show-all-comments-btn {
  position: relative;
  background-color: #edeff4; /* Match your feed background */
  border: 1px solid #bccee2;
  border-radius: 8px;
  color: #2c5282;
  font-size: 13px;
  padding: 5px 15px;
  cursor: pointer;
  display: inline-block;
  white-space: nowrap;
  transition: all 0.2s;
}

.show-all-comments-btn:hover {
  background-color: #bef1fc;
  border-color: #8FDADB;
  transform: scale(1.02);
}

/* Hidden comments container */
.hidden-comments {
  margin-top: 10px;
}

/* ===== EDIT MODE STYLES ===== */
.edit-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
}

.edit-text-editor {
  flex: 2;
  min-width: 0;
  resize: none;
  min-height: 80%;
  font-size: 18px;
  background-color: #edeff4;
  padding: 12px;
  border: 2px solid #bccee2;
  border-radius: 8px;
}

.edit-post-image {
  flex: 1;
  max-width: 300px;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

/* ===== LIGHTBOX ===== */
#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s;
}

#lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s;
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.2s;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

#lightbox-close:hover {
  color: #ff4444;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===== FRUTIGER AERO BORDER ===== */
.frutiger-aero-border {
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 0 0 2px rgba(190, 241, 252, 0.6),
    0 8px 16px -6px rgba(0, 0, 0, 0.3),
    inset 0 -3px 8px rgba(255, 255, 255, 0.8),
    inset 0 3px 8px rgba(255, 255, 255, 0.8);
  border-radius: 12px;
}

.frutiger-aero-border::after {
  content: '';
  position: absolute;
  top: 8%;
  left: 8%;
  width: 30%;
  height: 30%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 50%;
  pointer-events: none;
  transform: rotate(-15deg);
}

/* ===== RESPONSIVE ===== */


/* ===== NAVIGATION UPDATES ===== */
.nav-left-links {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: auto;  /* Pushes everything else to the right */
}

.nav-link {
  color: #15141c;
  text-decoration: none;
  font-size: 16px;
  padding: 6px 6px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.nav-link:hover {
  background-color: rgba(190, 241, 252, 0.5);
  text-decoration: none;
}

.chats-toggle-btn {
  background: linear-gradient(208deg, rgba(190, 241, 252, 1) 0%, rgba(190, 252, 228, 1) 100%);
  border: 2px solid #8FDADB;
  font-size: 16px;
  padding: 6px 15px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  color: #15141c;
}

.chats-toggle-btn:hover {
  background: linear-gradient(208deg, rgba(170, 221, 242, 1) 0%, rgba(170, 242, 218, 1) 100%);
  transform: translateY(-1px);
}

.nav-user-section {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.nav-user-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #15141c;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.nav-user-link:hover {
  background-color: rgba(190, 241, 252, 0.5);
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;  /* Rounded square */
  object-fit: cover;
}

.nav-username {
  font-weight: 600;
  font-size: 16px;
}

/* ===== CHATS PANEL ===== */
.chats-panel {
  position: fixed;
  right: 5%; 
  top: 90px;
  width: 40%;  
  max-width: 550px;  
  height: auto;
  max-height: calc(100vh - 100px); 
  background-color: #edeff4;
  border: 4px solid #bccee2;
  border-style: outset;
  border-radius: 12px;
  box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
  display: none;
  flex-direction: column;
  z-index: 90;
  overflow: hidden;
  transition: all 0.2s ease;
}

.chats-panel.open {
  display: flex;
}

/* Friends list view */
.chats-friends-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  margin-bottom:0;
  padding-bottom:0;
}

.chats-header {
  padding: 15px;
  border-bottom: 2px solid #bccee2;
  background: linear-gradient(208deg, rgba(190, 241, 252, 0.3) 0%, rgba(190, 252, 228, 0.3) 100%);
  flex-shrink: 0;
}

.chats-header h3 {
  margin: 0;
  color: #15141c;
  font-size: 18px;
}

.friends-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  min-height: 0;  /* Важно для правильного скролла */
}

.friend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  margin-bottom: 5px;
  background-color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.friend-item:hover {
  border-color: #8FDADB;
  transform: translateX(-2px);
  box-shadow: 2px 4px 8px rgba(0, 10, 90, 0.1);
}

.friend-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.friend-info {
  flex: 1;
  overflow: hidden;  /* Для обрезания длинных имён */
}

.friend-name {
  font-weight: 600;
  font-size: 16px;
  color: #15141c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-preview {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chat view - expanded */
.chat-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border-bottom: 2px solid #bccee2;
  background: linear-gradient(208deg, rgba(190, 241, 252, 0.3) 0%, rgba(190, 252, 228, 0.3) 100%);
  flex-shrink: 0;
}

.back-to-friends {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #15141c;
  padding: 0 10px;
  line-height: 1;
}

.back-to-friends:hover {
  color: #2c5282;
  transform: scale(1.1);
}

.chat-friend-info {
  display: flex;
  align-items: center;
  gap: 15px;  /* Больше gap */
  flex: 1;
}

.chat-friend-avatar {
  width: 60px;  /* Больше аватарка */
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}

.chat-friend-name {
  font-weight: bold;
  font-size: 20px;
  color: #15141c;
}

.messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.5);
  min-height: 0;  /* Важно для скролла */
}

.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 15px;
  border-top: 2px solid #bccee2;
  background-color: white;
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  padding: 10px;
  border: 2px solid #bccee2;
  border-radius: 8px;
  font-size: 14px;
  resize: none;
  font-family: inherit;
}

.chat-input:focus {
  outline: none;
  border-color: #8FDADB;
}

.chat-send-btn {
  background: linear-gradient(208deg, rgba(190, 241, 252, 1) 0%, rgba(190, 252, 228, 1) 100%);
  border: 2px solid #8FDADB;
  font-size: 14px;
  padding: 8px 20px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  align-self: flex-end;
}

.chat-send-btn:hover {
  background: linear-gradient(208deg, rgba(170, 221, 242, 1) 0%, rgba(170, 242, 218, 1) 100%);
  transform: translateY(-1px);
}

/* Empty state */
.no-friends-message {
  text-align: center;
  padding: 40px;
  color: #666;
  font-style: italic;
}

@media (max-width: 1200px) {
  .feedmain {
    margin-right: 0;  /* On smaller screens, chats panel might cover feed */
  }
}

/* ===== USER MENU DROPDOWN ===== */
.user-menu-container {
  position: relative;
  display: inline-block;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.user-menu-trigger:hover {
  background-color: rgba(190, 241, 252, 0.5);
}

.dropdown-arrow {
  font-size: 12px;
  color: #666;
  margin-left: 2px;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 180px;
  background-color: white;
  border: 2px solid #8FDADB;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 10, 90, 0.2);
  display: none;
  z-index: 1000;
  overflow: hidden;
}

.user-dropdown.show {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: #15141c;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
}

.dropdown-item:hover {
  background-color: rgba(190, 241, 252, 0.5);
}

.logout-item {
  color: #ff4444;
}

.logout-item:hover {
  background-color: #fff0f0;
}

.dropdown-divider {
  height: 1px;
  background-color: #e0e4e9;
  margin: 4px 0;
}

/* ===== FRIENDS PAGE STYLES ===== */
.friends-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.friend-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background-color: white;
  border: 4px solid #cccfe0;
  border-style: outset;
  border-radius: 12px;
  box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
  transition: all 0.2s ease;
}

.friend-card:hover {
  transform: translateX(-2px);
  box-shadow: 8px 12px 12px -5px rgba(0, 10, 90, 0.4);
}

.friend-card-avatar {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}

.friend-card-info {
  flex: 1;
  margin-top:0;
  display: block;
  gap: 4px;
}

.friend-card-name {
  color: #15141c;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
}

.chat-card-name {
  color: #15141c;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
}

.friend-card-name:hover {
  text-decoration: underline;
  color: #2c5282;
}

.friend-card-status {
  font-size: 12px;
  color: #4CAF50;
}

.friend-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.friend-card-type {
    font-size: 12px;
    color: #8891A8;
}

.friend-card-subcount {
    font-size: 12px;
    color: #1CA67E;
}

.friend-card-btn {
  background:  linear-gradient(208deg, rgba(190, 241, 252, 1) 0%, rgba(190, 252, 228, 1) 100%);
  border: 2px solid #8FDADB;
  font-size: 14px;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  min-width: 100px;
}

.promote-btn {
  background: #edeff4;
  border: 1px solid #bccee2;
  font-size: 12px;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  min-width: 80px;
}

.friend-card-btn:hover {
  background: linear-gradient(208deg, rgba(170, 221, 242, 1) 0%, rgba(170, 242, 218, 1) 100%);
  transform: translateY(-1px);
}

.accept-btn {
  background: linear-gradient(208deg,rgba(150, 242, 192, 1) 0%, rgba(141, 235, 144, 1) 100%);
  border-color: #65B57E;
  color: white;
}

.reject-btn {
  background: linear-gradient(208deg,rgba(242, 150, 202, 1) 0%, rgba(149, 141, 235, 1) 100%);
  border-color: #6C65B5;
  color: white;
}

/* Панель чатов */
.chats-panel {
  position: fixed;
  right: 20px;
  top: 80px;
  width: 350px;
  max-height: 80vh;
  background: white;
  border: 4px solid #cccfe0;
  border-style: outset;
  border-radius: 12px;
  box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
  display: none;
  flex-direction: column;
  z-index: 90;
  overflow: hidden;
}

.chats-panel.open {
  display: flex;
}

/* Список чатов */
.chats-list {
  overflow-y: auto;
  
}

.chat-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #e0e4e9;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-item:hover {
  background: rgba(190, 241, 252, 0.3);
}

.chat-item-avatar {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 12px;
}

.chat-item-info {
  flex: 1;
  display:flex;
  flex-direction: column;
}

.chat-item-name {
  font-weight: bold;
  margin-bottom: 4px;
}

.chat-item-preview {
  font-size: 13px;
  color: #666;
}

.chat-item-time {
  font-size: 11px;
  color: #999;
}

/* Окно чата */
.chat-view {
  display: flex;
  flex-direction: column;
  height: 70vh;
}

.chat-header {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 2px solid #bccee2;
  background: #f5f5f5;
}

.back-to-chats {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  margin-right: 15px;
}

.chat-with-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-with-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}


/* Контейнер сообщений */
.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f9f9f9;
}

.message {
  
  max-width: 70%;
  padding: 10px;
  border-radius: 8px;
  position: relative;
}
/* ===== CHAT PANEL ===== */
.chats-panel {
  position: fixed;
  right: 20px;
  top: 80px;
  width: 40%;  /* 40% of screen width */
  min-width: 400px;  /* Minimum width */
  max-width: 600px;  /* Maximum width */
  height: calc(100vh - 100px);
  background: white;
  border: 4px solid #a3a5b7;
  border-style: outset;
  border-radius: 12px;
  box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
  display: none;
  flex-direction: column;
  z-index: 90;
  overflow: hidden;
}

.chats-panel.open {
  display: flex;
}

/* Chat view takes full height */
.chat-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

/* Messages container - takes all available space */
.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f9f9f9;
  min-height: 0;  /* Important for flex scrolling */
}

/* Message bubbles */
.message {
  max-width: 70%;
  padding: 8px 12px;
  border-radius: 12px;
  position: relative;
  word-wrap: break-word;
}

/* Your messages - on the right, teal color */
.message-mine {
  box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
  align-self: flex-end;
  background: #bef1fc;  /* Your teal color */
  border: 2px solid #4d8e9c;
  border-bottom-right-radius: 4px;
  margin-left: auto;
  transition: transform 0.3s ease 0s;
}

.message-reply {
  box-shadow: 5px 3px 3px -5px rgba(0, 10, 90, 0.2);
  align-self: flex-end;
  background: #9AD1F5;
  border: none;
  margin-left: auto;
  transition: transform 0.3s ease 0s;
  padding: 4px;
  font-size:14px;
  border-radius: 8px;
}

.message-reply:empty {
  display:none;
}

/* Their messages - on the left, light gray */
.message-theirs {
  box-shadow: 5px 10px 10px -5px rgba(10, 80, 30, 0.4);
  align-self: flex-start;
  background: #befcdb;
  border: 2px solid #67af88;
  border-bottom-left-radius: 4px;
  margin-right: auto;
  transition: transform 0.3s ease 0s;
}

.message-text {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.message-time {
  font-size: 10px;
  color: #666;
  text-align: right;
  opacity: 0.8;
}

/* Message input area - fixed at bottom */
.message-input-area {
  display: flex;
  gap: 10px;
  padding: 15px;
  border-top: 2px solid #bccee2;
  background: white;
  flex-shrink: 0;  /* Prevents shrinking */
  align-items: flex-end;
}

/* Textarea styling - fixed size, no resize */
.message-input-area textarea {
  flex: 1;
  padding: 10px;
  border: 2px solid #bccee2;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  resize: none;  /* No resizing */
  height: 60px;  /* Fixed height */
  min-height: 60px;
  max-height: 60px;
  background: #f5f5f5;
}

.message-input-area textarea:focus {
  outline: none;
  border-color: #8FDADB;
  background: white;
}

/* Send button */
.message-input-area button {
  background: #bef1fc;
  border: 2px solid #8FDADB;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  height: 30px;  /* Match textarea height */
  width: 80px;
  margin-left:0;
  padding-left:5px;
  transition: all 0.2s;
  text-align:left;
}

.message-input-area button:hover {
  background: #9fd9e8;
  transform: translateY(-1px);
}

/* Chat list item */
.chat-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #e0e4e9;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-item:hover {
  background: rgba(190, 241, 252, 0.3);
}

.chat-item-avatar {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 12px;
}

.chat-item-info {
  flex: 1;
  min-width: 0;  /* For text truncation */
}

.chat-item-notification {
border-radius:8px;
background:#bef1fc; 
width:16px;height:16px;
font-size:12px; 
text-align: center; 
margin:auto; 
margin-left:10px;
}

.chat-item-notification:empty {
display:none;
}

/* Reply indicator in input area */
.reply-indicator-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f5f5f5;
    border-left: 3px solid #8FDADB;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 13px;
}

.reply-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.reply-arrow {
    font-size: 16px;
    color: #8FDADB;
}

.reply-label {
    color: #666;
    font-weight: normal;
}

.reply-preview {
    color: #333;
    font-style: italic;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cancel-reply {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #999;
    padding: 0 8px;
}

.cancel-reply:hover {
    color: #ff4444;
}

/* Reply preview inside message */
.message-reply-preview {
    padding: 6px 10px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.04);
    border-left: 3px solid #8FDADB;
    border-radius: 6px;
    font-size: 12px;
}

.reply-indicator {
    font-size: 11px;
    color: #8FDADB;
    margin-bottom: 4px;
}

.reply-text {
    color: #666;
    font-style: italic;
    word-break: break-word;
    white-space: pre-wrap;
}

/* Message wrapper for click detection */
.message-wrapper {
    width: 100%;
    cursor: pointer;
}

.message-wrapper:hover .message {
    transform: translateY(-2px);
    transition: transform 0.1s ease;
}

.message-mine:hover {
    background: #E3FAFF;
    border-color: #65B8C9;
}

.message-theirs:hover {
    background: #D6FFEB;
    border-color: #77C99D;
}

.reply-indicator-container {
    padding: 0 15px;
    margin-top: 5px;
}

.reply-indicator-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f5f5f5;
    border-left: 3px solid #8FDADB;
    border-radius: 8px;
    font-size: 13px;
}

.reply-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.reply-arrow {
    font-size: 16px;
    color: #8FDADB;
}

.reply-label {
    color: #666;
    font-weight: normal;
}

.reply-preview {
    color: #333;
    font-style: italic;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cancel-reply {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #999;
    padding: 0 8px;
}

.cancel-reply:hover {
    color: #ff4444;
}

.message-theirs:hover {
background:#D6FFEB;
border-color:#77C99D;
transform: translateY(-2px);
}
.message-mine:hover {
background:#E3FAFF;
border-color: #65B8C9;
transform: translateY(-2px);
}

.chat-item-name {
  font-weight: bold;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display:flex;
  
}

.chat-item-preview {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-item-time {
  font-size: 11px;
  color: #999;
  margin-left: 8px;
  white-space: nowrap;
}

/* Chat header */
.chat-header {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 4px solid #bccee2;
  background: #99effe;
  flex-shrink: 0;
}

.back-to-chats {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  margin-right: 15px;
  padding: 0 5px;
  color: #15141c;
}

.back-to-chats:hover {
  color: #2c5282;
}

.message-select-area {
display: flex;
    flex-direction: column;
width:100%;
}

.chat-with-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-with-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.chat-with-name {
  font-weight: bold;
  font-size: 24px;
  color:black;
  text-decoration:none;
}


/* No messages placeholder */
.no-messages {
  text-align: center;
  padding: 20px;
  color: #666;
  font-style: italic;
}

/* No chats message */
.no-chats-message {
  text-align: center;
  padding: 40px;
  color: #666;
  font-style: italic;
}

/* Notification badges */
.notification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background-color: #4CAF50;
  color: white;
  font-size: 11px;
  font-weight: bold;
  border-radius: 10px;
  margin-left: 5px;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* For the chats toggle button */
#chats-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
}

#chats-toggle .notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  margin-left: 0;
}

/* For the friends link */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  background-color:#bfe0f0;
  border-color:#8cb9df;
  border-style:solid;
  border-width:2px;
  text-shadow: 1px 2px 5px #a1abbc;
  padding-top:2px;
  padding-bottom:2px;
}


.profile-subscriptions-container > label {
    flex: 1;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.sub-sub-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5px;
    margin-top: 5px;
    min-height: 120px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 8px;
    justify-items: center;
    align-items: center;
    width: fit-content;
}

.sub-sub-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    text-align: center;
    width: 80px;
    justify-self: center;
}

.sub-sub-item:hover {
    background: rgba(255, 255, 255, 0.8);
}

.sub-sub-avatar {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 3px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.sub-sub-name {
    font-size: 11px;
    font-weight: normal;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.sub-sub-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.sub-sub-item:hover {
    background: rgba(255, 255, 255, 0.8);
}

.sub-sub-empty {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: normal;
    font-size: 13px;
}

.sub-sub-empty-slot {
    visibility: hidden;
}

.user-notifs {
  position: relative;
  display: inline-flex;
  align-items: center;
  background-color:#f5eecb;
  border-color: #dfbb8c;
  border-style:solid;
  border-width:2px;
  text-shadow: 1px 2px 5px #a1abbc;
  padding-top:2px;
  padding-bottom:2px;
  border-radius: 8px;
  filter: grayscale(0.8);
  transition: filter 0.2s ease, scale 0.2s ease;
}

.user-notifs.has-notifications {
    filter: grayscale(0);
}

.user-notifs:hover {
  scale: 1.07;
  cursor:pointer;
  filter: grayscale(0);
}

.nav-link .notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
}

/* Comment input with attachment preview */
.comment-input-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-preview-container {
  position: relative;
  padding: 8px;
  background: #f0f0f0;
  border: 2px solid #bccee2;
  border-radius: 8px;
  margin-bottom: 8px;
}

.comment-preview-content {
  max-height: 100px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-preview-image {
  max-height: 100px;
  max-width: 100%;
  object-fit: contain;
}

.comment-preview-video {
  max-height: 100px;
  max-width: 100%;
}

.comment-preview-audio {
  width: 100%;
}

.comment-preview-filename {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  text-align: center;
}

.comment-preview-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: #ff4444;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.comment-preview-remove:hover {
  background: #cc0000;
}

.comment-buttons {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.comment-attach-btn {
  background: none;
  border: 2px solid #8FDADB;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.community-layout {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 80px;
    position: relative;
    align-items: flex-start;
    justify-content: flex-start; /* Don't spread, keep left */
}

.community-main {
    flex: 0 0 auto;  
    width: 50%; 
    min-width: 0;
}

.community-rules-container {
    flex: 0 0 auto;  /* Don't grow/shrink */
    width: 300px;    /* Fixed width */
    margin-left: 30px; /* 30px gap after main */
    top: 100px;
    height: fit-content;
    align-self: flex-start;
}

        
        .rules-box {
            background: white;
            border: 4px solid #cccfe0;
            border-style: outset;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
        }
        
        .rules-box h3 {
            margin-top: 0;
            margin-bottom: 15px;
            color: #15141c;
            border-bottom: 2px solid #bccee2;
            padding-bottom: 10px;
        }
        
        .rules-list {
            list-style-type: none;
            padding: 0;
            margin: 0;
        }
        
        .rules-list li {
            padding: 8px 0;
            border-bottom: 1px solid #e0e4e9;
            font-size: 14px;
            line-height: 1.4;
        }
        
        .rules-list li:last-child {
            border-bottom: none;
        }
        
        .rules-list li::before {
            margin-right: 8px;
            opacity: 0.7;
        }
        
        .description-box {
            background: rgba(237, 239, 244, 0.5);
            border: 2px solid #bccee2;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 20px;
            font-size: 16px;
            line-height: 1.5;
        }
        
        /* Anonymous toggle styling */
        .anonymous-toggle {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
            padding: 5px 10px;
            background: rgba(190, 241, 252, 0.2);
            border-radius: 8px;
        }
        
        .anonymous-checkbox {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }
        
        .anonymous-label {
            font-size: 14px;
            color: #666;
            cursor: pointer;
        }
        
        /* Stats styling */
        .community-stats {
            display: flex;
            gap: 30px;

    justify-content: space-around;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 2px solid #bccee2;
        }
        
        .stat {
            text-align: center;
        }
        
        .stat-value {
            display: block;
            font-size: 24px;
            font-weight: bold;
            color: #15141c;
        }
        
        .stat-label {
            font-size: 14px;
            color: #666;
        }

.comment-attach-btn:hover {
  background: #bef1fc;
}

.profile-info {
position:relative;
top:-25px;
    z-index: -1;
}

.comment-content-row {
  display: flex;
  gap: 12px;
  margin: 8px 0;
  margin-left: 32px;
  align-items: flex-start;
}

.comment-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  order: 2; /* Text on the right by default */
}

.comment-attachment {
  order: 1; /* Forces attachment to be left */
  flex-shrink: 0;
  max-width:100%;
}

.comment-attachment-image {
  max-width: 100%;
  max-height: 120px; /* Half of previous */
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
  object-fit: cover;
}

.comment-attachment-image:hover {
  opacity: 0.9;
}

.comment-attachment-video {
  max-height: 260px; /* Half of previous */
  border-radius: 4px;
}

.comment-attachment-audio {
  height:50px;
  width: 100%;
  min-width: 150px;
  height: 30px; /* Smaller audio player */
}

/* Comment footer - FIXED */
.comment-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  margin-left:10px
}

.settings-container {
display:flex;
flex-direction:column;
padding-left:25px;
padding-right:25px;
padding-top:35px;
  gap:10px;
align-items:flex-start;
}

.setting-container {
background: linear-gradient(90deg, rgba(223, 238, 246, 1) 0%, rgba(150, 214, 246, 1) 100%);
width:80%;
margin-bottom:20px;
border-radius:10px;
padding:10px;   
border-color: #cccfe0;
border-width: 4px;
border-style: outset;
box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
}

.toggle-replies-btn {
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    background: rgba(0,0,0,0.05);
}

.settings-textarea {
    padding: 8px 12px;
    border: 2px solid #bccee2;
    border-radius: 8px;
    background: #edeff4;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    margin-left:10px;
}

.setting-row {
    margin-left:10px;
margin-top:10px;
margin-bottom:10px;
display:flex;
align-items: center;
}

.comment-delete-btn {
  border: none;
    position: absolute;
    top: 0;
    right: 0;
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px; 
  background: linear-gradient(208deg, rgba(132, 123, 232, 0.5) 0%, rgba(190, 199, 255, 0.5) 100%);
  border-color: #6C65B5;
  transition: all 0.2s;
}

.comment-delete-btn:hover {
  background: linear-gradient(208deg, rgba(152, 153, 252, 0.5) 0%, rgba(220, 229, 255, 0.5) 100%);
}

/* Like container - RIGHT side */
.comment-like-container {
  display: flex;
  align-items: center;
  gap: 6px;
  order: 2; /* Forces to be right */
  margin-left: auto; /* Pushes it to the right */
}

/* If there's no delete button, like container should still be right */
.comment-footer:has(.comment-delete-btn:only-child) .comment-like-container {
  margin-left: auto;
}

/* ===== COMMUNITIES PAGE STYLES ===== */
.communities-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.communites-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background-color: white;
  border: 4px solid #cccfe0;
  border-style: outset;
  border-radius: 12px;
  box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
  transition: all 0.2s ease;
}

.communites-card:hover {
  transform: translateX(-2px);
  box-shadow: 8px 12px 12px -5px rgba(0, 10, 90, 0.4);
}

.communites-card-avatar {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}

.communites-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.communites-card-name {
  color: #15141c;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
}

.communites-card-name:hover {
  text-decoration: underline;
  color: #2c5282;
}

/* Comment overflow handling */
.comment_overflown {
    display: none;
}

.comment_overflown.visible {
    display: block;
}

.communites-card-status {
  font-size: 12px;
  color: #4CAF50;
}

.communites-card-btn {
  background: linear-gradient(208deg, rgba(190, 241, 252, 1) 0%, rgba(190, 252, 228, 1) 100%);
  border: 2px solid #8FDADB;
  font-size: 14px;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  min-width: 100px;
}

.communites-card-btn:hover {
  background: linear-gradient(208deg, rgba(170, 221, 242, 1) 0%, rgba(170, 242, 218, 1) 100%);
  transform: translateY(-1px);
}

.communites-leave-btn {
  background: linear-gradient(208deg,rgba(242, 150, 202, 1) 0%, rgba(149, 141, 235, 1) 100%);
  border-color: #6C65B5;
  color: white;
}

.profile-content {
    min-width:800px;
}
.profile-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 0px;
    border: 4px solid #cccfe0;
    border-style: outset;
    box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
    margin-top:-200px;
    padding-bottom:0;
}

.profile-header-content {
    display: flex;
    align-items: flex-start;
    margin-bottom: -20px;
}

.profile-box-container {
    background: none;
    backdrop-filter: none;
    border: none;
    padding: 0;
    box-shadow: none;
    margin-top: 0;
    width: auto;
    gap:15px;
}

.profile-subscriptions-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 0px;
    border: 4px solid #cccfe0;
    border-style: outset;
    box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
    margin-top: 10px;
    flex-direction:row;
    gap:10px;
    width: fit-content;
}

.sub-sub-container {
   padding:10px;
    border-radius: 12px;
    margin-top:5px;
    background: rgb(0 0 0 /5%);
}

/* Profile picture container */
.profile-picture-container {
    position: relative;
    height: min-content;
    top: -70px;
    margin-right: 24px;
}

.profile-picture {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.community-feedmain {
margin-top: 200px; 
width:100%; 
padding:20px;
}

/* Frutiger Aero border effect */
.frutiger-aero-border {
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 0 0 2px rgba(190, 241, 252, 0.5),
        0 10px 20px -5px rgba(0, 0, 0, 0.3),
        inset 0 -5px 10px rgba(255, 255, 255, 0.6),
        inset 0 5px 10px rgba(255, 255, 255, 0.6);
}

/* Glass reflection */
.frutiger-aero-border::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 5%;
    width: 30%;
    height: 30%;
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-container {
            min-width: 700px;
            max-width: 700px;
            margin-top:150px;
	    margin-left:170px;
            background: white;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
            border: 4px solid #cccfe0;
            border-style: outset;
        }
        
        .auth-container h1 {
            text-align: center;
            margin-bottom: 30px;
            color: #15141c;
        }
        
        .auth-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .auth-form input, .auth-form textarea {
            padding: 12px;
            font-size: 18px;
            border: 2px solid #bccee2;
            border-radius: 8px;
            background: #edeff4;
            font-family: inherit;
        }
        
        .auth-form textarea {
            resize: vertical;
            min-height: 100px;
        }
        
        .auth-form button {
            background-color: #bef1fc;
            font-size: 18px;
            border: none;
            padding: 12px;
            cursor: pointer;
            border-radius: 8px;
            margin-top: 10px;
        }
        
        .auth-form button:hover {
            background-color: #9fd9e8;
        }
        
        .auth-link {
            text-align: center;
            margin-top: 20px;
            font-size: 16px;
        }
        
        .error {
            color: #ff4444;
            text-align: center;
            font-size: 16px;
            min-height: 20px;
        }
        
        .success {
            color: #44aa44;
            text-align: center;
            font-size: 16px;
        }
        
        /* New styles for profile picture and name row */
        .profile-name-row {
            display: flex;
            gap: 20px;
            align-items: stretch;
        }
        
        .profile-pic-selector {
            width: 200px;
            height: 200px;
            border: 2px solid #8FDADB;
            border-radius: 8px;
            background: #edeff4;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        
        .profile-pic-selector:hover {
            border-color: #6fc0c1;
            background: #e0e4e9;
        }
        
        .profile-pic-selector img {
            width: 40px;
            height: 40px;
            opacity: 0.5;
            margin-bottom: 5px;
        }
        
        .profile-pic-selector span {
            font-size: 12px;
            color: #666;
            text-align: center;
        }
        
        .name-input-container {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .name-input-container input {
            flex: 1;
            width: 100%;
            box-sizing: border-box;
        }
        
        /* Hide the actual file input */
        #profile-pic-input {
            display: none;
        }

/* Name with background */
.name-container {
    position: relative;
    display: inline-block;
}

.profile-name {
    position: relative;
    font-size: 48px;
    margin: 0;
    z-index: 2;
    color: #15141c;
}



/* Profile actions */
.profile-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.profile-btn {
    background-color: #bef1fc;
    font-size: 16px;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    height:50px;
}

.profile-btn:hover {
    background-color: #9fd9e8;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* Stats bar */
.profile-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(190, 241, 252, 0.5);
}

.stat {
    text-align: center;
}

.description-name {
    border-radius:8px;
    position:relative;
    font-size:16px;
    color: #48484A;
    background:rgb(0 0 0 / 5%);
    padding:5px;
    padding-left:20px;
    left: -20px;
    white-space: pre-wrap;
    min-height:100px;
    min-width:400px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #15141c;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* Profile feed */
.profile-feed {
    margin-top: 20px;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}
.profile-picture-edit-container {
  position: relative;
  cursor: pointer;
  display: inline-block;
}

.profile-picture {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.profile-picture.dimmed {
  opacity: 0.5;
}

.comment-reply-deep {
	margin-left:0;
	margin-right:0;
	margin-bottom:0;
    padding-left: 0;
    padding-right: 0;
    padding-right: 0;
}

.comment-reply {
	margin-left:20px;
}

.profile-picture-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
}

.new-picture-preview {
  margin-top: 10px;
  font-size: 14px;
  color: #4CAF50;
  text-align: center;
  background: rgba(76, 175, 80, 0.1);
  padding: 5px;
  border-radius: 20px;
}

/* Username edit mode */
.profile-name-input {
  font-size: 48px;
  font-weight: bold;
  background: transparent;
  border: 2px solid #bef1fc;
  border-radius: 8px;
  padding: 5px 15px;
  width: 100%;
  font-family: inherit;
  position: relative;
  z-index: 2;
}

.profile-name-input:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

/* Profile actions */
.profile-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.profile-btn {
  background-color: #bef1fc;
  font-size: 16px;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    z-index: 10;
    position: relative;
    border-style: solid;
    border-width: 2px;
    border-color: #8FDADB;
}

.profile-btn:hover {
  background-color: #9fd9e8;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* Frutiger Aero border for profile picture */
.frutiger-aero-border {
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 0 0 2px rgba(190, 241, 252, 0.5),
    0 10px 20px -5px rgba(0, 0, 0, 0.3),
    inset 0 -5px 10px rgba(255, 255, 255, 0.6),
    inset 0 5px 10px rgba(255, 255, 255, 0.6);
}

.profile-btn-container {
    width: 125%;
    left: -12.5%;
    bottom: -50px;
    position: absolute;
    display: flex;
    margin-right: -24px;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
}

.profile-btn-btn {
    background: none;
    border: none;
}

.profile-btn-icon {
    width: 100px;
   filter: drop-shadow(0 0 0 white);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.remove-btn {
   filter: grayscale(0.5);
}

.profile-btn-icon:hover {
   transform: scale(1.1);
   filter: drop-shadow(0 0 0.75rem white) brightness(1.1) grayscale(0);
}

.remove-btn-size {
  width:80px;
}

.frutiger-aero-border::after {
  content: '';
  position: absolute;
  top: 5%;
  left: 5%;
  width: 30%;
  height: 30%;
  background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%);
  border-radius: 50%;
  pointer-events: none;
}

/* ===== POST CREATOR REDESIGN ===== */
#new-post-box {
    padding: 20px;
    background: white;
}

/* Top Row */
.post-creator-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #bccee2;
    flex-wrap: wrap;
    gap: 10px;
}

.creator-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    top: -5px;
}

.creator-avatar {
    margin-top:-56px;
    width: 124px;
    height: 124px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.creator-username {
    font-weight: bold;
    font-size: 48px;
    color: #15141c;
    text-shadow: 2px 4px 3px rgba(0, 0, 0, 0.2);
}

/* Community Dropdown */
.creator-community-dropdown {
    padding: 8px 15px;
    font-size: 16px;
    border: 2px solid #8FDADB;
    border-radius: 8px;
    background: linear-gradient(208deg, rgba(190, 241, 252, 0.3) 0%, rgba(190, 252, 228, 0.3) 100%);
    cursor: pointer;
    min-width: 200px;
}

.creator-community-dropdown:hover {
    border-color: #6fc0c1;
}


/* Text next to switch */
.anonymous-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Files Row */
.post-creator-files-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.file-select-btn {
    width: auto !important;
    min-width: 150px;
    background: linear-gradient(208deg, rgba(190, 241, 252, 1) 0%, rgba(190, 252, 228, 1) 100%);
    border: 2px solid #8FDADB;
}

.files-preview-area {
    flex: 1;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
    min-height: 100px;
    background: rgba(237, 239, 244, 0.5);
    border: 2px dashed #bccee2;
    border-radius: 8px;
    flex-wrap: wrap;
}

/* File Previews */
.preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border: 2px solid #8FDADB;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.preview-item.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item.video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item.audio-preview {
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(208deg, rgba(190, 241, 252, 0.3) 0%, rgba(190, 252, 228, 0.3) 100%);
}

.preview-item.audio-preview .audio-placeholder {
    font-size: 12px;
    text-align: center;
    padding: 5px;
    word-break: break-word;
}

.seq-row {
padding-bottom:15px;
margin-bottom:15px;
}

.remove-file {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.remove-file:hover {
    background: #cc0000;
}

/* File type warning */
.file-type-warning {
    color: #ff4444;
    font-size: 12px;
    margin-left: 15px;
}

/* Text Row */
.post-creator-text-row {
    margin-bottom: 15px;
}

.post-creator-textarea {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border: 2px solid #bccee2;
    border-radius: 8px;
    background-color: #edeff4;
    resize: none;
    box-sizing: border-box;
    font-family: inherit;
}

.post-creator-textarea:focus {
    outline: none;
    border-color: #8FDADB;
}

/* Bottom Row */
.post-creator-bottom-row {
    display: flex;
    justify-content: flex-end;
}

.comment-footer-replies {
    //border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    //padding-bottom: 7px;
    //border-top-color: rgba(0, 0, 0, 0.1);
    //border-right-color: rgba(0, 0, 0, 0.1);
    //border-left-color: rgba(0, 0, 0, 0.1);
    //border-top-width: 2px;
    //border-right-width: 2px;
    //border-left-width: 2px;
}

.send-button {
    width: auto !important;
    min-width: 150px;
    background: linear-gradient(208deg, rgba(190, 241, 252, 1) 0%, rgba(190, 252, 228, 1) 100%);
    border: 2px solid #8FDADB;
}

/* Post content section */
.post-content-section {
  margin-top: 45px;
  margin-bottom: 15px;
}

/* Files container */
.post-files-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

/* Individual post images */
.post-image {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  cursor: pointer;
  transition: opacity 0.2s;
}

.comment-avatar {
  width: 26px;
  height: 26px;
  border-radius: 8px;  /* Rounded squares! */
  object-fit: cover;
}

/* Individual post videos */
.post-video {
  max-width: 100%;
  max-height: 480px;
}

/* Mixed media items (images and videos together) */
.mixed-media-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mixed-media-item {
  flex: 1 1 200px;
  max-width: 300px;
  max-height: 200px;
  object-fit: cover;
}

/* Audio container - always at bottom */
.post-audio-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
  width: 100%;
}

.post-audio {
  width: 100%;
  height: 40px;
}

/* Backward compatibility for old posts */
.post-image:only-child {
  max-width: 300px;
}

.settings-profile-picture {
    width: 200px;
    height: 200px;
    position: absolute;
    object-fit:cover;
}

.settings-background{
width:100%; 
height:150px; 
margin-top:5px;
    object-fit:cover;
border-radius:12px;
cursor:pointer;
margin-bottom:5px;
}


/* Media container (left side) */
.post-media-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 300px;  /* Fixed max width for images */
  flex-shrink: 0;
}

/* Individual post images - proper size */
.post-image {
  max-width: 300px;
  max-height: 300px;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s;
  width: auto;
  height: auto;
}

/* Videos - same size as images */
.post-video {
  max-width: 300px;
  max-height: 300px;
  border-radius: 8px;
}

/* Text on the right */
.post-text {
  white-space: pre-wrap;
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  word-wrap: break-word;
  min-width: 200px;
    word-wrap: break-word;
}

/* Audio container - full width below everything */
.post-audio-container {
  width: 100%;
  margin-top: 15px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-audio {
  width: 100%;
  height: 40px;
}

.comment-item {
    transition: background-color 0.2s ease;
}

.reply-reference {
    margin-left: 5px;
    font-size: 13px;
}

.reply-ref-link {
    cursor: pointer;
}

.reply-ref-link:hover {
    text-decoration: underline;
}


/* Backward compatibility */
.post-image:only-child {
  max-width: 300px;
}

/* Responsive */
@media (max-width: 700px) {
  .post-content-row {
    flex-direction: column;
  }
  
  .post-media-container {
    max-width: 100%;
  }
  
  .post-image, .post-video {
    max-width: 100%;
  }
}

/* Post carousel - images keep their natural size */
.post-carousel {
    float: left;
  position: relative;
  min-width:200px;
  min-height:200px;
  display: inline-block; /* This shrinks to fit content */
  max-width: 100%;
    margin-bottom: 10px;
}

.carousel-current {
  display: inline-block;
  line-height: 0; /* Removes extra space below image */
}

.carousel-image {
  max-width:100%;
  width: auto; /* Natural width */
  height: auto; /* Natural height */
  max-height: 500px; /* Optional: prevent extremely tall images */
  cursor: pointer;
  border: none;
  border-radius: 0;
  display: block;
}

.carousel-video {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 500px;
  border: none;
  border-radius: 0;
}

.profile-btn-mobile { display:none; }

.post-media-container {
  display: inline-block;
  flex-shrink: 0;
}

/* SQUARE navigation buttons - NOT CIRCLES */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #8FDADB;
  border-radius: 8px; /* RECTANGLE/SQUARE corners */
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
  color: #15141c;
}

.carousel-nav:hover {
  background: white;
  border-color: #6fc0c1;
}

.carousel-prev {
  left: 5px;
}

.carousel-next {
  right: 5px;
}

.carousel-counter {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 12px;
  border-radius: 4px; /* SLIGHTLY rounded, not circles */
  font-size: 12px;
  font-family: monospace;
}

/* Lightbox - SQUARE buttons */
.lightbox-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid white;
  border-radius: 8px; /* SQUARE corners */
  color: white;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  transition: all 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.5);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}
.message-attachment-container:not(:has(img)) {
display:none;
}

.message-attachment-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 4px;
    margin-top: 5px;
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 1002;
  font-family: monospace;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1002;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: #ff4444;
}
/* Post content row - image left, text right */
.post-content-row {
  display: flow-root;
  flex-direction: row;
  gap: 0px;
  width: auto;
  align-items: flex-start;
  flex-wrap: wrap;
  background: rgb(237, 239, 244);
    border-radius: 5px;
    margin-right:20px;
    margin-left:20px;
}

/* Text takes remaining space */
.post-text {
  padding: 10px;
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  word-wrap: break-word;
  min-width: 200px;
overflow-wrap: anywhere; 
}

.community-rules-container {
    margin-left: 10px;
}
.name-container {
    position: relative;
    display: inline-block;
}
.profile-name {
    position: relative;
    font-size: 48px;
    margin: 0;
    z-index: 2;
    color: #15141c;
}
.name-background {
    position: absolute;
    top: 70%;
    left: -20px;
    width: 100%;
    height: 60%;
    padding-right: 40px;
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 8px;
}

.status-background {
    position: relative;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1;
    border-radius: 0 6px 6px 0;
    padding: 5px 10px;
    padding-left: 20px;
}

.status-container {
    display: flex;
    justify-content: flex-start;
    margin-left: -20px;
    margin-top: 5px;
}



.status-text {
    padding: 0;
    margin: 0;
}

.status-text:empty {
    display:none;
}

.chat-attachment-image {
  position: relative;
    overflow: hidden;
width: 100%;
    height: 100%;
    object-fit: cover; /* Use 'contain' if you don't want cropping */
    display: block;
}

.chat-attachment-video {
  max-width: 100%;
  margin-top: 5px;position: relative;
    overflow: hidden;
}

.chat-attachment-audio {
  width: 200px;
  margin-top: 5px;
}

.chat-attachments {
  margin-top: 5px;
}
.chat-preview-item {
max-height:150px;
max-width:150px;
}
.profile-picture-container.editable {
  position: relative;
  cursor: pointer;
}

.edit-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  text-align: center;
  padding: 5px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 0 0 12px 12px;
}

.profile-picture-container.editable:hover .edit-overlay {
  opacity: 1;
}

.edit-name-btn {
  cursor: pointer;
  background-color:rgba(0,0,0,0);
  border-style:none;
  transition: background-color 0.2s;
}

.name-container:hover .edit-name-btn {
  background-color:rgba(0,0,0,0.3);
}

.community-name-input {
  font-size: 32px;
  font-weight: bold;
  background: white;
}

.status-background.editable {
  cursor: pointer;
  position: relative;
}

.pfp-choose-new {
opacity:0%;
transition: opacity 0.5s ease;
}

.pfp-choose-new:hover {
opacity:90%;
cursor:pointer;
}

.status-input, .description-input, .rules-input {
  width: 100%;
  padding: 8px;
  font-size: 16px;
  border: 2px solid #8FDADB;
  border-radius: 8px;
  font-family: inherit;
  background: white;
  resize: vertical;
}
.post-carousel {
margin:10px;
max-width:50%;
}
.lightbox-single-img {
max-height:80%;
max-width:90%;
width:auto;
}
.top-bar {
display: flex; 
justify-content: space-between; 
padding: 10px; 
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
background: linear-gradient(90deg, rgba(150, 246, 216, 1) 0%, rgba(100, 188, 255, 1) 100%);
border-width: 0 0 2px 0;
    border-style: solid;
    border-color: rgb(222, 250, 255);
}
.logo-name {
display: flex; 
align-items: center; 
justify-content: center; 
gap:10px;
}

.chat-preview-image {
max-height:150px;
}

.remove-preview {
top:-40px;
}

.postbox-hideable {
	
}

.new-postbutton {
  font-size: 18px;
  border: none;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  transition: background-color 0.2s;
max-width:200px; 
max-height:40px; 
font-size:18px; 
padding: 10px 0; 
background: linear-gradient(208deg, rgba(190, 241, 252, 1) 0%, rgba(190, 252, 228, 1) 100%);
}

.new-postbutton-exit {
position:absolute;
top:-10px;
right:-10px;
  font-size: 18px;
  border: none;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  transition: background-color 0.2s;
max-width:40px; 
max-height:40px; 
font-size:18px; 
padding: 10px 0; 
background: linear-gradient(208deg,rgba(132, 123, 232, 1) 0%, rgba(190, 199, 255, 1) 100%);
}

.postbox {
        min-width:640px;
  }

.mainpage-logo {
padding:30px; 
padding-top:45px;
max-width:55%; 
min-width:700px; 
}
.carousel-current {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    max-height: 500px;
    overflow: hidden;
}

.carousel-image, .carousel-video, .youtube-preview {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.youtube-preview {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.youtube-preview iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.communities-page-container {
  margin-top: 50px; 
  max-width:750px; 
  background: #edeff4;
  }
  

.friends-page-buttons {
  display: flex; 
  gap: 10px;
}

.rules-mobile {
display:none;
}

.comment-item {
    position: relative;
}

.comment-replies-container {
    margin-top: 8px;
}

.reply-input-container {
    margin-top: 10px;
    padding: 10px;
    background: rgba(237, 239, 244, 0.5);
    border-radius: 8px;
}

.reply-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.reply-btn, .cancel-reply-btn {
    background: none;
    border: none;
    color: #2c5282;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 6px;
}

.reply-btn:hover {
    text-decoration: underline;
}

.settings-bio-container {
display:flex; 
flex-direction:row; 
gap:10px;
}

.profile-feedmain {
    margin-top: 280px;
    padding:15px;
}

@media (max-width: 1300px) {
	.community-rules-container {
	display:none;
	}
	.community-layout, .community-main {
	display:block;
	}

}



@media (max-width: 830px) {
  /* Reset body padding and overflow */
  body {
    overflow-x: hidden;
    width: 100%;
  }
  .mainpage-logo {
  display:none;
  }
	.postbox {
	max-width:100%
        min-width:100%
  }
  /* Navigation container - full width, no overflow */
  nav.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background-color: #edeff4;
    box-sizing: border-box;
    z-index: 100;
  }
  
  /* Logo stays left */
  .logo-name {
    display: flex;
    align-items: center;
    gap: 8px;
        margin-left: 10px;
        margin-top: 10px;
        margin-bottom: 10px;
  }
  
  .logo-name img {
    height: 32px;
  }
  
  .logo-name a {
    font-size: 18px;
  }
  
  /* User menu stays right */
  .nav-user-section {
    margin-left: auto;
  }
  
  .user-menu-trigger {
    padding: 4px 6px;
  }
  
  .nav-avatar {
    width: 28px;
    height: 28px;
  }
  
  .nav-username {
    font-size: 0px;
  }
  
  /* Button row - spans full width under the top row */
  .nav-left-links {
    order: 2;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    gap: 0;
    margin-top: 0;
    margin-bottom: 0;
    background-color: #8FDADB;
    border-radius: 0;
  }
  
  /* All three buttons in one row, no rounding, cassette style */
  .nav-link,
  .chats-toggle-btn {
    flex: 1;
    text-align: center;
    padding: 12px 5px;
    margin: 0;
    background: #8FDADB;
    border: none;
    border-radius: 0 !important;
    font-size: 14px;
    font-weight: 500;
    color: #15141c;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  
  .nav-link img {
    height: 20px;
    width: auto;
    margin: 0 !important;
  }
  
  .nav-link:first-child {
    border-right: 1px solid #6caeaf;
  }
  
  .nav-link:last-child {
    border-left: 1px solid #6caeaf;
  }
  
  .chats-toggle-btn {
    background: #8FDADB;
    border-left: 1px solid #6caeaf;
    border-right: 1px solid #6caeaf;
  }
  
  .nav-link:hover,
  .chats-toggle-btn:hover {
    background: #7fc9ca;
    transform: none;
  }
  
  /* Hide the old separate button containers */
  #auth-buttons {
    display: contents;
  }

  .feedmain {
    min-width: 100%;
    max-width: 100%;
    width:100%;
    background-image: url('/bg.webp');
    background-size: cover;
    background-position: right bottom;
    background-attachment:fixed;
    margin-right:0;
  }

  .profile-feedmain {
    padding:0;
    background: linear-gradient(90deg,rgba(0, 0, 0, 1) 1%, rgba(0, 0, 0, 0) 50%);
    border:none;
  }

  .community-feedmain {
    padding:0;
    background: rgba(0,0,0,0);
    border:none;
  }
  
  /* Make posts full width */
  .post {
    margin-left: 0; 
    min-width: 90%; 
    max-width: 90%;
    width: 90%;
    margin-top: 60px;
        padding-left: 0;
        padding-right: 0;
  }
  
  /* Post creator adjustments */
  #new-post-box {
    margin-left: 0;
    width: 100%;
  }
  
  .creator-avatar {
    width: 60px;
    height: 60px;
    margin-top: -30px;
  }
  
  .creator-username {
    font-size: 24px;
  }
  
  .post-creator-top-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .post-creator-files-row {
    flex-wrap: wrap;
  }
  
  /* Make chat panel fit phone */
  .chats-panel {
    height:80%;
    margin-top:60px;
    width: 90%;
    right: 5%;
    left: 5%;
    max-width: none;
    min-width: auto;
  }
  
  .chat-friend-avatar {
    width: 40px;
    height: 40px;
  }
  
  .chat-friend-name {
    font-size: 16px;
  }
  
  .chat-with-name {
    font-size: 18px;
  }
  
  /* Profile page adjustments */
  .profile-header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  

  
  .profile-name {
    font-size: 28px;
  padding:0px;
  }
  

  
  /* Post content adjustments */
  .post-content-row {
  display: flex;
    margin-right:20px;
    margin-left:20px;
    flex-direction: column;
  }
  
  .post-media-container {
    max-width: 100%;
  }
  
  .post-image, .post-video, .carousel-image, .carousel-video {
    max-width: 100%;
    height: auto;
  }
  
  .post-carousel {
    max-width: 90%;
    width: auto;
    min-width: auto;
  }
  
  /* Comments */
  .comment-content-row {
    margin-left: 10px;
    flex-direction:column;
  }
  
  .comment-footer {
    margin-left: 0;
  }
  
  /* Friend and community cards */
  .friend-card {
    flex-wrap: wrap;
  }
  
  .friend-card-info {
    width: 100%;
  }
  
  .friend-card div[style*="display: flex"] {
    width: 100%;
    justify-content: stretch;
  }
  
  .friend-card-btn {
    text-align: center;
  }
  

  /* Limit community name length in posts */
.community-author-name {
  max-width: 200px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  display: inline-block;
  font-size: 18px;
}

.community-author-name-alone {
        max-width: 200px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        display: inline-block;
        font-size: 24px;
        margin-top: 0;
        position: relative;
}

.community-author-name {
margin-left:-35px;
}
/* For the user name below community name */
.author-name {
  font-size: 18px;
  display: block;
  max-width: 290px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.author-name-user {
  display: block;
  max-width: 250px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size:14px;
}
.author-avatar {
  width:50px;
  height:50px;
  border-radius:6px;
  top:0;
}

.author-timestamp {
  font-size:10px;
}

.community-author-avatar {
  width:50px;
  height:50px;
  border-radius:6px;
  top:0;
}
.post-author .community-author-avatar + .author-avatar {
  width:25px;
  height:25px;
  border-radius:4px;
  top:auto;
  bottom:3px;
}
.author-info {
top:0px;
margin-top:5px;
gap:0px;
}

.tab-btn {
width: 100px;
font-size:14px;
}


	.community-rules-container {
	display:none;
	}
  .community-layout {
  top:15px;
  }

	.community-layout, .community-main {
	display:block;
	}

	.community-main {
	width:100%;
	}

  .profile-header {
  padding:5px;
  min-width:100px;
  }

     .profile-header-content {
                text-align: left;
        display: flex;
        grid-auto-flow: column;
        gap: 0;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        margin-bottom:  10px;
    }

  .profile-picture-container {
    position: relative;
  top: -10px;
  }
  .profile-actions {
  display:none;
  }
  .status-background {
  left:0;
  border-top-left-radius:0;
  border-bottom-left-radius:0;
  top:0;
  }
  .name-background {
  border-top-left-radius:0;
  border-bottom-left-radius:0;
  }
  .name-container {
        margin-bottom: 5px;
  }
  
  .profile-picture-container.editable {
    width: 130px;
  }
  .profile-picture {
        width:130px;
        height:130px;
        margin-top: -5px;
  }
	.profile-btn-mobile {
  display: block;
  background: linear-gradient(208deg, rgba(190, 241, 252, 1) 0%, rgba(190, 252, 228, 1) 100%);
  border: 2px solid #8FDADB;
  font-size: 16px;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.profile-btn-mobile:hover {
  background-color: #9fd9e8;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.profile-picture-overlay {
font-size:10px;
width:80%;
}
  .communities-page-container {
  margin-top:120px;
  background: #edeff4;
  }

.friends-page-buttons {

    width: 100px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.community-post-buttons {
  display:flex;
  flex-direction: column;
  gap: 5px;

}

.profile-stats {
  border-top: 2px solid rgba(160, 211, 222, 1);
margin-top:0;
}

.rules-mobile {
display:block;
}

.settings-container {
width:95%;
min-width:95%;
max-width:95%;
padding:0;
}
.setting-container {
width:95%;
margin-left:10px;
}

.settings-bio-container {
display:flex; 
flex-direction: column; 
gap:10px;
}

.profile-btn-container {
    width: 120%;
    left: -12.5%;
    bottom: -30px;
    position: absolute;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}
.profile-btn {
padding: 5px 10px;
font-size:14px;
}

.profile-info {
position: relative;
width:100%;
top:0;
}

.description-name {
    min-height: 60px;
    min-width: 200px;
}

.main-feed {
background-image:none;
background: linear-gradient(90deg, rgba(0, 0, 0, 1) 1%, rgba(0, 0, 0, 0) 50%);
        border-right-style: hidden;
        border-left-style: hidden;
}

.comment-reply-deep {
	margin-top: 10px;
	padding-top:5px;
	margin-left:0;
	margin-right:0;
	margin-bottom:0
	padding-right:2px;
	padding-left:2px;
}

.comment-reply {
	margin-top: 10px;
	padding-top:5px;
	margin-left:0;
	margin-right:0;
	margin-bottom:0;
	padding-right:2px;
	padding-left:2px;
}

.comment-footer-replies{
	padding-bottom:20px;
}

.toggle-replies-btn {
	//margin-top:-15px;
}

.post-author {

}

.author-info.community {
margin-top:0;
}

.post-dropdown {
right:0;
}
.profile-content {
min-width:0;
}
.sub-sub-avatar {
    width: 50px;
    height: 50px;
}
.sub-sub-name {
    width: 70px;
}
.sub-sub-item {
    width: auto;
    padding: 5px 0;
}
.sub-sub-container {
    padding: 10px 5px;
    gap: 0;
    margin-top: 5px;
    width: min-content;
}
.profile-box-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-bottom: 0px;
    box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
    flex-direction:row;
    border-radius: 0;
    padding: 20px 10px;
    margin-bottom: 0px;
    margin-top: 10px;
    flex-direction: row;
    gap: 5px;
    width:100%
}

.profile-subscriptions-container {
    background: none;
    backdrop-filter: none;
    border: none;
    padding: 0;
    box-shadow: none;
    margin-top: 0;
    width: auto;
    border-radius:0;
}

.profile-btn-icon {
    width:60px;
}
.remove-btn-size {
  width:55px;
}

.notifications-panel.show {
max-width:90vw;
}

.lightbox-media {
  max-width: 100vw;
}

        .profile-pic-selector {
            width: 120px;
            height: 120px;
            border: 2px solid #8FDADB;
            border-radius: 8px;
            background: #edeff4;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        
        .profile-pic-selector:hover {
            border-color: #6fc0c1;
            background: #e0e4e9;
        }
        
        .profile-pic-selector img {
            width: 40px;
            height: 40px;
            opacity: 0.5;
            margin-bottom: 5px;
        }
.auth-container {
padding:15px;
}
}




