/* profile.css */

.profile__container {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 25px;
    width: 100%;
}

.profile__container--card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}


/* first card: favorites, collections,... */
/************************************************************************************************/

.profile__container--favs__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

.profile__container--favs__item--title,
.profile__container--relations__item--title,
.profile__container--activity__item--title {
    font-size: 1.2rem;
    font-weight: 500;
    text-align: left;
    width: 100%;
    margin-bottom: 15px;
}

.profile__container--favs__item--collections {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.profile__container--favs__item--collections__collection {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
    margin-bottom: 0.875rem;
}

.profile__container--favs__item--collections__collection:hover {
    background: #f1f3f4;
}

.profile__container--favs__item--collections__collection a {
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.profile__container--favs__item--collections__collection p {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile__container--favs__item--collections__collection small {
    font-size: 0.75rem;
    color: #666;
}

.profile__container--favs__item--collections__collection .delete {
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 3px;
    color: #adb5bd;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.profile__container--favs__item--collections__collection .delete:hover {
    background: #e9ecef;
    color: #dc3545;
}

.profile__container--favs__item--collections__collection:hover .delete {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile__container--favs__item--collections__empty {
    width: 100%;
    text-align: center;
    font-size: 14px;
    /* text-transform: uppercase; */
    color: var(--dark-grayish-blue);
}

.profile__container--favs__item--collections__newcol {
    font-size: 12px;
    margin: 15px;
    /* text-transform: uppercase; */
    letter-spacing: 2px;
    text-decoration: none;
    color: var(--white);
    background: var(--brand-color);
    padding: 8px 15px;
    border-radius: 3px;
    border: none;
    outline: none;
    cursor: pointer;
}

/* second card: main content */
/************************************************************************************************/

.profile__container--main__info {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profile__container--main__info--profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.profile__container--main__info--profile .profile__container--main__info--profile__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    border: 2px solid;
    overflow: hidden;
    width: 90px;
    height: 90px;
}

.profile__container--main__info--profile .profile__container--main__info--profile__avatar img {
    width: 90px;
    height: 90px;
}

.profile__container--main__info--profile p {
    font-size: 20px;
    color: var(--brand-color);
}

.profile__container--main__date {
    margin-bottom: 8px;
}

.profile__container--main__info--socials {
    display: flex;
    align-items: center;
    justify-content: center;
    /* width: 100%; */
    width: 100%;
}

.profile__container--main__info--socials__item {
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    justify-content: center;
    /* width: 33%; */
    width: 33%;
}

.profile__container--main__info--socials__item .svg {
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.profile__container--main__info--socials__item div,
.profile__container--main__info--socials__item a {
    text-decoration: none;
}

.profile__container--main__info--welcome {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 15px;
}

.profile__container--main__info--edit,
.profile__container--main__info--follow {
    /* text-transform: uppercase; */
    /* letter-spacing: 2px; */
    text-decoration: none;
    color: var(--white);
    background: var(--brand-color);
    padding: 8px 15px;
    margin: 15px 0;
    border-radius: 3px;
}

.profile__container--main__info--unfollow {
    /* text-transform: uppercase; */
    /* letter-spacing: 2px; */
    text-decoration: none;
    color: var(--black);
    background: var(--light-grayish-blue);
    padding: 8px 15px;
    margin: 15px 0;
    border-radius: 3px;
}

.profile__container--main__info--unfollow:hover {
    background: var(--light-card-hover);
}

.profile__container--main__info--bio {
    font-size: 16px;
    color: var(--dark-grayish-blue);
    text-align: justify;
}

.profile__container--main__pubs {
    width: 100%;
}

.profile__container--main__pubs--title {
    font-size: 1.3rem;
}

.profile__container--main__pubs--pubs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profile__container--main__pubs--pubs .recent {
    border: 1px solid #e0e0e0;
    padding: 24px;
    margin-bottom: 20px;
    background: #ffffff;
    transition: box-shadow 0.2s ease;
    width: 100%;
}

.profile__container--main__pubs--pubs .recent small {
    color: #999999;
    font-size: 13px;
}

.profile__container--main__pubs--pubs .recent .recent__specs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.profile__container--main__pubs--pubs .recent .recent__specs .recent__specs--theme {
    color: #000000;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    flex-grow: 1;
}

.profile__container--main__pubs--pubs .recent .recent__specs .recent__specs--theme:hover {
    text-decoration: underline;
}

.profile__container--main__pubs--pubs .recent .recent__specs .recent__specs--pdf {
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 8px;
    border: 1px solid #cccccc;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.profile__container--main__pubs--pubs .recent .recent__specs .recent__specs--pdf:hover {
    text-decoration: underline;
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

.profile__container--main__pubs--pubs .recent .recent__authors {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile__container--main__pubs--pubs .recent .recent__authors .recent__authors--author {
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.profile__container--main__pubs--pubs .recent .recent__authors .recent__authors--author:hover {
    color: #000000;
    text-decoration: underline;
}

.recent__authors--author:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: #cccccc;
}

.profile__container--main__pubs--pubs .recent .recent__description {
    color: #333333;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 12px 0;
}


.recent__topic {
    display: inline-block;
    background-color: #f5f5f5;
    color: #666666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
    margin-right: 8px;
}

.recent__topic:hover {
    background-color: #e0e0e0;
    color: #000000;
}

.recent__tags {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.recent__tag {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    color: #666666;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    text-decoration: none;
}

.recent__tag:hover {
    background-color: #f5f5f5;
    color: #000000;
}


.profile__container--main__pubs--pubs__empty {
    width: 100%;
    text-align: center;
    font-size: 18px;
    /* text-transform: uppercase; */
    color: var(--dark-grayish-blue);
}

.profile__container--main__pubs--head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile__container--main__pubs--pubs__publish {
    margin: 15px;
    /* text-transform: uppercase; */
    /* letter-spacing: 2px; */
    text-decoration: none;
    color: var(--white);
    background: var(--brand-color);
    padding: 8px 15px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile__container--main__pubs--pubs__publish .svg {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}

/* third card: activiy, relations, contributions */
/************************************************************************************************/

.notification {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    font-size: 13px;
    text-decoration: none;
    color: var(--black);
    position: relative;
    padding: 5px 8px;
    margin-bottom: 15px;
}

.notification-indicator {
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #dc3545; /* Bootstrap red color */
    border-radius: 50%;
    z-index: 1;
}

.notification.unread {
    background-color: #f8f9fc; /* Slightly different background for unread */
}

.notification .text {
    width: calc(100% - 35px);
}

.profile__container--relations,
.profile__container--activity {
    width: 100%;
}

.profile__container--relations__item,
.profile__container--activity__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

.profile__container--relations__item--content,
.profile__container--activity__item--content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}


.profile__container--relations__item--content__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.profile__container--relations__item--content__item--title {
    font-size: 14px;
    margin-bottom: 10px;
    width: 100%;
    text-align: left;
    /* font-weight: 700; */
}

.profile__container--relations__item--content__item--followers {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.profile__container--relations__item--content__item--followers__follower {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.profile__container--relations__item--content__item--followers__follower--photo,
.profile__container--relations__item--content__item--followers__follower--photo img {
    width: 35px;
    height: 35px;
    border-radius: 888px;
}

.profile__container--relations__item--content__item--followers__follower--photo {
    border-radius: 888px;
    margin-right: 10px;
}

.profile__container--relations__item--content__item--followers__follower--content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 35px);
    text-align: left;
}

.profile__container--relations__item--content__item--followers__follower--content .infos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.profile__container--relations__item--content__item--followers__follower--content .infos p {
    font-size: 12px;
    width: 100%;
    text-align: left;
}

.profile__container--relations__item--content__item--followers__follower--content .username {
    margin-right: 8px;
    color: var(--black);
    text-decoration: none;
    font-size: 14px;
    width: 100%;
    text-align: left;
}

.profile__container--relations__item--content__item--followers__follower--content .fol-btn {
    text-decoration: none;
    color: var(--white);
    background: var(--brand-color);
    padding: 6px 12px;
    margin: 7px 0;
    border-radius: 3px;
}

.profile__container--relations__item--content__item--followers__follower--content .unfol-btn {
    text-decoration: none;
    color: var(--black);
    background: var(--light-grayish-blue);
    padding: 6px 12px;
    margin: 7px 0;
    border-radius: 3px;
}

.profile__container--relations__item--content__item--followers__follower--content .unfol-btn:hover {
    background: var(--light-card-hover);
}

.profile__container--relations__item--content__item--followers__follower--content .username:hover {
    text-decoration: underline;
}


/* More functionality css */

.more {
    display: flex;
    align-items: center;
    justify-content:flex-start;
    color: var(--dark-grayish-blue);
    text-decoration: none;
    font-size: 13px;
}

.more:hover {
    text-decoration: underline;
}

.more div {
    display: flex;
    align-items: center;
    justify-content:center;
}








/* Modal for collection creation*/
/************************************************************************************************/

.modal_cont {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal_cont .modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 30%;
    background: var(--white);
    height: auto;
    border-radius: 5px;
    padding: 15px;
}

.modal_cont.show {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.modal__header--title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.modal__form {
    width: 100%;
    position: relative;
}

.modal__form .form__group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.modal__form .form__group label {
    text-align: left;
    width: 100%;
    font-size: 13px;
}

.modal__form .form__group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    color: #333333;
}

.form__group--input:focus {
    outline: none;
    border-color: #000000;
}

.modal__btns {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
}

.modal__btns .create {
    background: var(--brand-color);
    color: var(--white);
    border: none;
    outline: none;
    padding: 5px 8px;
    border-radius: 888px;
    width: 47%;
}

.modal__btns .cancel {
    background: grey;
    color: var(--white);
    border: none;
    outline: none;
    padding: 5px 8px;
    border-radius: 888px;
    width: 47%;
}




