/* Community.css */
*{
    font-family: "Outfit", sans-serif;
      font-weight: 500;
      box-sizing: border-box;
      font-style: normal;
}
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    font-family: "Outfit", sans-serif;
    font-weight: 400;
    box-sizing: border-box;
    font-style: normal;
}

h1 {
    margin-bottom: 16px;
    font-weight: 500;
}

h1 + p {
    font-size: 18px;
    color: var(--text-color-p);
    margin-bottom: 30px;
}

.card {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 10px;
    padding: 7px;
    border-radius: 15px;
    background-color: var(--popup-bg-color);
    word-wrap: none;
    width: 100%;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-height:100%;
    height: 100%;
}
::-webkit-scrollbar{
    display: none;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card img {
    object-fit: cover;
    border-radius: 10px;
}

.card-body {
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.own-prof{
    line-height: 20px;
    width: 100%;
    padding-top: 2px;
    padding-bottom: 0px;
}
.own-de{
    line-height: 25px;
}
.moment{
    font-size: small;
    font-weight: 400;
    color: var(--text-color-gray);

}
.mb-0{
    font-size: 1rem;
    color: var(--text-color);
}
.own-de p{
    font-weight: 456;
    color: var(--text-color-p);
    font-size: 14px;
    padding-top: 3px;
    letter-spacing: .014em;
    line-height: 20px;
}
.link-pro{
    color: var(--text-color);
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: .009em;
}
#commentsModalDescription{
    border-bottom: 1px solid rgba(128, 128, 128, 0.193);
    padding: 20px 0;
    font-weight: 300;
    font-size: 18px;
}
#commentsModalTitle{
    
}
.card-text-1{
    padding: 10px;
    max-height: 100vh;
    height: 100%;
}
strong{
    font-size: 1rem;
    font-weight: 500;
}
.own-prof-1{
    display: flex;
    align-items: center;
    gap: 5px;
}
.own-prof-2{
    /* display: flex; */
}
.own-prof-1 img{
    border-radius: 50px;
    border: 2px solid rgba(103, 103, 103, 0.585);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.055);
}

.interaction-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
}

.interaction-buttons button {
    flex: 1;
    margin: 0 2px;
    border-radius: 20px;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.interaction-buttons button:hover {
    background-color: var(--create-btn-bg-color);
    color: var(--txts-btn-color);
}

.show-more-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    padding: 0;
    margin-top: 5px;
}

.show-more-btn:hover {
    color: var(--create-btn-bg-color);
}

/* Skeleton Loader CSS */
.skeleton-card {
    background-color: var(--bg-color);
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.skeleton-image {
    width: 100%;
    height: 230px;
    background-color: #4b4b4b3d;
    border-radius: 4px;
}

.skeleton-text {
    width: 100%;
    height: 15px;
    background-color: #4b4b4b3d;
    margin: 10px 0;
    border-radius: 4px;
}

/* Tag Buttons */
.tag-buttons .btn {
   
}

/* Not Found Message */
#notFoundMessage {
    display: none;
    font-size: 1.5rem;
    color: red;
    text-align: center;
    margin-top: 20px;
}

/* Navbar styles */
.navbar{
    max-width: 100%;
    margin: auto;
    padding: 10px 0px;
    display: flex;
    align-items: center;
    /* box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px; */
}
.logo{
    width: 130px;
    filter: brightness(var(--image-color));
  
}
.logo-streakcode{
  font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    letter-spacing: -1.50px;
    color: var(--logo-color);
}
.links{
    padding:0px 30px;
}
.links a{
    font-size: 16px;
    line-height: 24px;
    letter-spacing: .009em;
    padding: 8px;
 
    font-weight: 450;
    color: var(--text-color-gray);
}.links a:hover{
    color: var(--text-color);
    text-decoration: none;
}
#myprof{
    padding: 5px 15px;
    border: none;
    border-radius: 50px;
    background-color: var(--create-btn-bg-color);
    color: var(--txts-btn-color);
    font-weight: 600;
}

.navbar-toggler{
    background-color: #fff;
    color: black;
    padding: 8px 10px;
    border:1px solid rgba(24, 24, 24, 0.498);
    font-size: 22px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.055);
}
.full-prof{
    display: none;
}
.container-fluid{
    max-width: 92%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: auto;
}

.form-inp{
    padding: 10px;
    width: 400px;
    border-radius: 50px;
    border: none;
    outline: none;
    background-color:var(--popup-bg-color);
    color: var(--text-color);
    padding-left: 20px;
}

/* Container styles */
.container-nav-down{
    max-width: 90%;
    margin: auto;
}
.container-nav-down h1{
    font-size: 43px;
    margin-top: 40px;
    font-size: 44px;
        line-height: 44px;
        letter-spacing: -.05em;
        font-weight: 500;
}

/* Tag buttons container */
.tag-buttons-container {
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.tag-buttons {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
    padding: 5px;
    outline: none;
}

.tag-buttons .btn {
    flex: 0 0 auto;
    margin-right: 10px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 420;
    color: var(--text-color);
    border: 1px solid #282727;
}
.tag-buttons .btn:hover{
    background-color: #6d6d6d1b;
    outline: none;
    border:1px solid #162563;
    color: var(--text-color);
}
/* Style for the active button */
.tag-buttons .btn.active {
    background-color: #0016d9;
    color: white;
    border-color: #007bff;
}

.tag-buttons{
    margin-left: 30px;
}
.scroll-button {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
}

.scroll-button:hover {
    background-color: #e9ecef;
}
.tag-buttons::-webkit-scrollbar{
    display: none;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: hsl(0 0% 0% / 80%);
}

.modal-content {
    background-color: var(--popup-bg-color);
    margin: auto;
    padding: 30px 20px;
    border-radius: 0px;
    width: 70%;
    height: 100vh;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: auto;
}.modal-content2{
    text-align: center;
    margin-bottom: 20px;
}.modal-content2 h2{
    font-size: 5rem;
}
.modal-content button{
    background-color: var(--create-btn-bg-color);
    color: var(--txts-btn-color);
    padding: 10px;
    border-radius: 50px;
    border: none;
    margin: 2px;
    font-weight: 600;
}
.modal-content h3{
    font-size: 1.50rem;
    font-weight: 550;
    padding-bottom: 10px;
    color: var(--text-color);
}
.modal-content p{
    font-size: 1.00rem;
    color: var(--text-color-p);
}
.close-btn {
    padding: 10px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
}
/*  */
.community-members-section{
    text-align: center;
    max-width: 60%;
    margin: 10% auto;
}.community-members-section h2{
    font-size:3rem;
    margin-top: 15%;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    letter-spacing: -1.50px;
    color: var(--logo-color);
}
#membersAvatars{

}
#membersAvatars img{
    background-color: var(--txts-btn-color);
    padding: 3px;
    box-shadow: 8px rgba(0, 0, 0, 0.1);
}
.rounded-circle{
    margin: auto -7px;
}
.communityButtonSection{
    background: rgb(250, 114, 10);
      color:white;
      border: none;
      border-radius: 999px;
      padding: 10px 22px;
      font-weight: 600;
      font-size: 0.99rem;
      cursor: pointer;
      transition: all 0.3s ease;
}
.communityButtonSection-2{
    background: var(--create-btn-bg-color);
      color: var(--txts-btn-color);
      border: none;
      border-radius: 999px;
      padding: 10px 22px;
      font-weight: 600;
      font-size: 0.99rem;
      cursor: pointer;
      transition: all 0.3s ease;
}
/* textarea */
.add-comment-section {
  display: flex;
  align-items: center;
  background: #4a4a4a69;
  border: 1px solid #6666668c;
  border-radius: 12px;
  padding: 6px 10px;
  gap: 8px;
  width: 100%;
  max-width: 700px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  margin: auto 10%; 
  position: fixed;
  bottom: 3%;
}
.add-solution-section{
  display: flex;
  align-items: center;
  background: #4a4a4a27;
  border: 1px solid #6666668c;
  border-radius: 12px;
  padding: 6px 10px;
  gap: 8px;
  width: 100%;
  max-width: 700px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  margin: 60px auto; 
  bottom: 3%;
}
.add-solution-section :focus-within{
  border-color: #40404041;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
} 
.add-comment-section :focus-within {
  border-color: #40404041;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}
.add-solution-section textarea{
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  font-size: 16px;
  font-family: "Outfit", sans-serif;
  padding: 10px;
  height: 80px;
  max-height: 100px;
  background: none;
  color: var(--text-color);
}
.add-comment-section textarea {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  font-size: 16px;
  font-family: "Outfit", sans-serif;
  padding: 10px;
  height: 80px;
  max-height: 100px;
  background: none;
  color: var(--text-color);
}

.add-solution-section button{
    border: none;
  background: var(--create-btn-bg-color);
  color: var(--txts-btn-color
  );
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s;
}
.add-comment-section button {
  border: none;
  background: var(--create-btn-bg-color);
  color: var(--txts-btn-color
  );
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s;
}
.add-solution-section button:hover{
    background: #0056b3;
}
.add-comment-section button:hover {
  background: #0056b3;
}

.add-comment-section i {
  margin-left: 2px;
}

/* Create Group Modal Styles */
.create-group-modal {
    max-width: 500px;
    width: 90%;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

.create-group-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

.form-input {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-textarea {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-color);
    background-color: var(--bg-color);
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: 2px dashed #e1e5e9;
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color-gray);
    font-size: 16px;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.file-label:hover {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.05);
}

.submit-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-color-gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-color);
}

/* Responsive design */
@media (max-width: 1293px){
    .navbar{
        max-width: 98%;
        margin: auto;
        padding: none;
        align-items: center;
    }
    .container-nav-down{
        max-width: 95%;
        margin: auto;
        line-height: 0px;
    }
    .form-inp{
        padding: 8px;
        width:100%;
        border-radius: 50px;
        border: none;
        outline: none;
    }
    .interaction-buttons button {
        font-size: 12px;
        padding: 5px;
    }
}
@media (max-width: 460px){
    .modal-content {
        background-color: var(--popup-bg-color);
        margin: 50% auto;
        padding: 30px 20px;
        border-radius: 10px;
        width: 90%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    .navbar{
        max-width: 98%;
        margin: auto;
        padding: 10px;
        align-items: center;
    }
    .container-nav-down h1{
        font-size: 35px;
        margin-top: 20px;
    }
    .container-nav-down{
        max-width: 95%;
        line-height: 0px;
    }
    .tag-buttons {
        padding: none;
        margin-left: 10px;
    }
    .card{
        margin-top: 0px;
    }
    #myprof {
        padding: 5px 15px;
    border: none;
    border-radius: 50px;
    background-color: var(--create-btn-bg-color);
    color: var(--txts-btn-color);
    font-weight: 600;
    }
    .link-pro {
        font-size: 14px;
    }
    .card {
        padding: 5px;
    }.moment{
        padding-left: 2px;
    }
    .container-nav-down {
        max-width: 97%;
        line-height: 0px;
    }
    .interaction-buttons {
        flex-direction: column;
        gap: 5px;
    }
    .interaction-buttons button {
        width: 100%;
    }
    /*  */
    .community-members-section{
    text-align: center;
    max-width: 100%;
    margin: 10% auto;
}.community-members-section h2{
    font-size:1.90rem;
    margin-top: 15%;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    letter-spacing: -1.50px;
    color: var(--logo-color);
}
.community-members-section p{
    color: var(--text-color-gray);
    font-size: 12px;
}
#membersAvatars{
    width: 80%;
    margin: auto;
}
#membersAvatars img{
    background-color: var(--bg-color);
    padding: 4px;
    box-shadow: 8px rgba(0, 0, 0, 0.1);
}
.communityButtonSection{
    background: rgb(250, 114, 10);
      color:white;
      border: none;
      border-radius: 999px;
      padding: 22px;
      font-weight: 600;
      font-size: 0.99rem;
      cursor: pointer;
      transition: all 0.3s ease;
}
.rounded-circle{
    margin: auto -10px;
}
.container-fluid{
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: auto;
}
}
@media (max-width: 987px){
    .modal-content {
        background-color: var(--popup-bg-color);
        margin: 30% auto;
        padding: 30px 20px;
        border-radius: 10px;
        width: 80%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    .full-prof{
        display: inline;
    }
    .nav-item{
        display: none;
    }
    .links{
        padding:15px 0px;
    }
    .links a{
        padding: 5px 10px;
        display: block;
    }
    .navbar{
        max-width: 100%;
        margin-bottom: 50px;
        padding: none;
        align-items: center;
    }
    /*  */
    .modal-content {
    background-color: var(--popup-bg-color);
    margin: auto;
    padding: 30px 20px;
    border-radius: 0px;
    width: 100%;
    height: 100vh;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: auto;
}.modal-content2{
    text-align: center;
    margin-bottom: 20px;
}.modal-content2 h2{
    font-size: 5rem;
}
.modal-content button{
    background-color: var(--create-btn-bg-color);
    color: var(--txts-btn-color);
    padding: 10px;
    border-radius: 50px;
    border: none;
    margin: 2px;
    font-weight: 600;
}
.modal-content h3{
    font-size: 1.50rem;
    font-weight: 550;
    padding-bottom: 10px;
    color: var(--text-color);
}
.modal-content p{
    font-size: 15px;
    color: var(--text-color-p);
}
.add-comment-section {
  display: flex;
  align-items: center;
  background: #4a4a4a69;
  border: 1px solid #6666668c;
  border-radius: 12px;
  padding: 6px 10px;
  gap: 8px;
  width: 100%;
  max-width: 342px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  margin: auto 0; 
  position: fixed;
  bottom: 2%;
}
}
