:root {

    --header-padrao: 60px;
    --container: 0 5em;
    --color-dark: #27282f;

    /* sidebar lateral */
    --color-text-primary: #1f2936;  
    --color-text-placeholder: #798eae;
    --color-bg-primary: #f9fafb;    
    --color-bg-secondary: #ececfd;  
    --color-bg-sidebar: #ffffff;
    --color-border-hr: #e2e8f0; 
    --color-hover-secondary: #e2e2fb;   
    --color-shadown: rgba(0,0,0,0.5);

    --aside-background: #fff;
    --bg-modal: rgba(0,0,0, 0.3);

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Outfit", sans-serif;
}

body {
    background: #f0f2f5;
    color: #5f5f5f;
}

a {
    text-decoration: none;
    color: #5f5f5f;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 6px 6px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 10px rgba(0,0,0, 0.1);
    height: var(--header-padrao);
}

.navbar h1 {
    font-size: 25px;
}

.logo img {
    width: 30px;
    margin-left: 15px;
    display: block;
}

.navbar-center ul li {
    display: inline-block;
    list-style: none;
}

.navbar-center ul li a {
    display: flex;
    gap: 5px;
    align-items: center;
    font-size: 14px;
    margin: 5px 8px;
    padding-right: 5px;
    position: relative;
}

.navbar-center ul li a::after {
    content: '';
    width: 0;
    height: 2px;
    background: #045be6;
    position: absolute;
    bottom: -15px;   
    transition: width 0.3s;
}

.navbar-center ul li a:hover::after,
.navbar-center ul li a.active-link::after {
    width: 100%;
}


.nav-profile-img {
    width: 40px;
    border-radius: 50%;
    display: block;
    cursor: pointer;
    position: relative;
}

.online {
    position: relative;
}

.online::after {
    content: '';
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 50%;
    right: 0px;
    top: 0px;
    background: #41db51;
    position: absolute;
}

.search-box {
    position: relative;
    background: #f0f2f5;
    width: 250px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box input {
    width: 100%;
    background: transparent;
    padding: 8px;
    outline: none;
    border: 0;
}

/* ----- final navbar ------------------ */

.container {
    padding: 20px 6%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/*  ---- left-sidebar -------------- */

.left-sidebar {
    flex-basis: 25%;
    align-self: flex-start;
    position: sticky;
    top: 73px;
    position: relative;
}

.sidebar-profile-box {
    background: #fff;
    width: 100%;
}

.sidebar-profile-info {
    padding: 0 25px;
    text-align: center;
}



.sidebar-profile-info img {
    width: 100px;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    margin-top: -45px;
}

.sidebar-profile-info h1 {
    font-size: 22px;
    font-weight: 600;
    color: #222;
}

.sidebar-profile-info h2 {
    font-size: 20px;
    font-weight: 500;
    color: #777;
}

.sidebar-profile-info ul {
    list-style: none;
    margin: 20px 0;
}

.sidebar-profile-info ul li {
    width: 100%;
    margin: 5px 0;
    font-size: 13px;
}

.sidebar-profile-info ul li span {
    float: right;
    color: #045be6;
}

.sidebar-profile-link {
    display: flex;
    align-items: center;
    border-top: 1px solid #ccc;
}

.sidebar-profile-link a {
    flex-basis: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    font-size: 13px;
    border-left: 1px solid #ccc;
}

.sidebar-profile-link a:first-child {
    border-left: 0;
}






.sidebar-activity {
    background: #fff;
    padding: 5px 25px;
    margin: 12px 0;
}

.sidebar-activity h3 {
    color: #777;
    font-size: 14px;
    font-weight: 500;
    margin: 20px 0 10px;
}

.sidebar-activity a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
    color: #888;
    margin: 3px 0;
}

.discover-more-link {
    border-top: 1px solid #ccc;
    text-align: center;
    margin-top: 20px;
    margin-left: -25px;
    margin-right: -25px;
}

.discover-more-link a {
    color: #045be6;
    display: inline-block;
    margin: 10px 0;
}


 /*  ----- right-sidebar ----------- */

 .right-sidebar {
    flex-basis: 25%;
    align-self: flex-start;
    position: sticky;
    top: 73px;

}

.sidebar-news {
    background: #fff;
    padding: 10px 25px;
}

.sidebar-news .material-symbols-outlined {
    float: right;
    margin-top: 8px;
    font-size: 26px !important;
}

.sidebar-news h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 10px 0 30px;
}

.sidebar-news a {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: -5px;
}

.sidebar-news span {
    font-size: 12px;
}

.sidebar-news .read-more-link {
    color: #045be6;
    font-weight: 600;
    margin: 20px 0;
}

.sidebar-ad {
    background: #fff;
    padding: 15px 15px;
    text-align: center;
    margin: 12px 0;
    font-size: 12px;
}

.sidebar-ad p {
    font-size: 16px;
    margin-top: 30px;
    margin-bottom: 10px;
}

.sidebar-ad  form {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    background: #ac36c4;
    padding: 20px;
    border-radius: 10px;
}

.sidebar-ad  form > div {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    gap: 3px;
}

.sidebar-ad  form > div label {
    font-size: 16px;
    display: flex;
    justify-content: flex-start;
    color: #fff;
}

.sidebar-ad  form > div input, textarea {
    padding: 5px;
}


.ad-link {
    display: inline-block;
    border-radius: 30px;
    padding: 5px 15px;
    background: #1db2dd;
    color: #fff;
    font-weight: 500;
    margin: 20px auto 10px;
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

.sidebar-useful-links {
    padding: 15px 25px;
    text-align: center;
}

.sidebar-useful-links a {
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
}

.copyright-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-top: 10px;
    font-weight: 500;
}

.copyright-msg img {
    width: 18px;
    margin-right: 4px;
}

.modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0, 0.6);
    padding: 20px;
    z-index: 1000;
}

.modal > div {
    position: relative;
    width: 100%;
    height: 100%;
    background: #fff;
}





/*  ---- main-content -------------- */

.main-content {
    flex-basis: 47%;
}

.create-post {
    background: #fff;
}

.create-post-input {
    padding: 20px 25px 10px;
    display: flex;
    align-items: flex-start;
}

.create-post-input img {
    width: 35px;
    border-radius: 50%;
    margin-right: 10px;
}

.create-post-input textarea {
    width: 100%;
    border: 0;
    outline: 0;
    resize: none;
    background: transparent;
    margin-top: 8px;
}
::placeholder {
    font-weight: 500;
}

.create-post-links {
    display: flex;
    align-items: flex-start;
    background: #fff;
}

.create-post-links li {
    list-style: none;
    border-top: 1px solid #ccc;
    border-right: 1px solid #ccc;
    flex-basis: 25%;
    height: 40px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.create-post-links li:last-child {
    background: #045be6;
    color: #fff;
    border-top: 0;
    border-right: 0;
}

.sort-by {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

/* .sort-by .material-symbols-outlined {
    font-size: 50px;
}
 */
.sort-by hr {
    flex: 1;
    border: 0;
    height: 1px;
    background: #ccc;
}

.sort-by p {
    font-size: 13px;
    padding-left: 5px;
}

.sort-by span {
    font-weight: 600;
    cursor: pointer;
}

.post {
    background: #fff;
    padding: 20px 25px 5px;
    margin: 5px 0 15px;
}

.post-author {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.post-author img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    border-radius: 50px;
    margin-right: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
}

.post-author h1 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.post-author small {
    display: block;
    margin-bottom: -2px;
}

.post p {
    font-size: 14px;
    margin-bottom: 15px;
}

.post-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 6px;
}

.post-stats div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.liked-user {
    margin-left: 10px;
}

.post-activity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
}

.post-activity div {
    display: flex;
    align-items: center;
} 

.post-activity-user-icon {
    width: 22px;
    border-radius: 50%;
}

.post-activity-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ---- profile dropdown menu ------------- */

.profile-menu-wrap {
    position: absolute;
    top: 100%;
    right: 5%;
    width: 320px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s;
}

.profile-menu-wrap.open-menu {
    max-height: 400px;
}

.profile-menu {
    background: #222;
    color: #fff;
    padding: 20px;
    margin: 10px;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info img {
    width: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.user-info h3 {
    font-weight: 500;
    margin-bottom: -7px;
}

.user-info a {
    color: #c9dbf8;
    font-size: 12px;
}

.profile-menu hr {
    border: 0;
    height: 1px;
    width: 100%;
    background: #fff;
    margin: 15px 0 10px;
}

.profile-menu-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    margin: 12px 0;
    font-size: 14px;
}

.profile-menu-link p {
    width: 100%;
}

/*  ---------------  página profile --------------- */

.profile-main {
    flex-basis: 73%;
}

.profile-sidebar {
    flex-basis: 25%;
    align-self: flex-start;
    position: sticky;
    top: 73px;
}

.profile-container {
    background: #fff;
}

.profile-container > img {  /* fiz por minha conta */
    width: 100%;
    height: 200px;
    object-fit: cover;

}

.profile-container-inner {
    padding: 0 4% 10px;
}

.profile-pic {
    width: 150px;
    border-radius: 50%;
    margin-top: -75px;
    padding: 5px;
    background: #fff;
}

.profile-container h1 {
    font-size: 28px;
    font-weight: 600;
    color: #222;
}

.profile-container b {
    font-weight: 500;
}

.profile-container p {
    margin-top: 5px;
}

.profile-container p a {
    color: #045be6;
    font-weight: 500;
}

.mutual-connection {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.mutual-connection img {
    width: 30px;
    border-radius: 40%;
    margin-right: 5px;
}


.profile-btn {
    margin: 20px 0;
}

.profile-btn a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e4e6eb;
    padding: 6px 15px;
    border-radius: 4px;
    margin-right: 10px;
}

.profile-btn .primary-btn {
    background: #045be6;
    color: #fff;
}

.profile-description {
    background: #fff;
    padding: 20px 4% 30px;
    margin: 12px 0;
}

.profile-description h2 {
    color: #333;
    margin: 10px 0 20px;
    font-weight: 600;
}

.see-more-link {
    display: block;
    text-align: right;
    font-size: 15px;
}


.profile-desc-row {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.profile-desc-row img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 25px;
    margin-top: 5px;
}

.profile-desc-row div {
    width: 100%;
}

.profile-desc-row h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.profile-desc-row b {
    display: block;
    font-weight: 500;
    font-size: 15px;
}

.profile-desc-row p {
    margin-top: 15px;
}

.profile-desc-row hr {
    border: 0;
    border-bottom: 1px solid #999;
    margin-top: 10px;
}

.experience-link {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    padding-top: 20px;
    font-weight: 500;
}

.skills-btn {
    display: inline-block;
    margin: 10px 5px;
    padding: 6px 18px;
    border: 1px solid #777;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

.language-btn {
    display: inline-block;
    margin: 10px 5px;
    padding: 6px 18px;
    background: #e4e6eb;
    font-size: 12px;
    font-weight: 500;
}

/*  ------ profile right sidebarr */

.profile-sidebar .sidebar-ad {
    margin: 0;
}

.sidebar-people {
    background: #fff;
    padding: 15px 25px;
    margin: 12px 0;
    font-size: 12px;
}

.sidebar-people h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0 20px;
}

.sidebar-people-row {
    display: flex;
    align-items: center;
    margin: 6px 0;
}

.sidebar-people-row img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 8px;
    margin-top: 5px;
}

.sidebar-people-row h2 {
    font-weight: 500;
    font-size: 16px;
}

.sidebar-people-row a {
    display: inline-block;
    margin: 10px 0;
    padding: 5px 25px;
    border: 1px solid #5f5f5f;
    border-radius: 30px;
    font-weight: 500;
}

.profile-footer {
    padding: 0 6% 30px;
}

.profile-footer .sidebar-useful-links {
    text-align: left;
    padding: 0;
}

.profile-footer .copyright-msg {
    justify-content: flex-start;
}

#showMoreLink {
    display: none;
}

/* ************ CUSTOMIZAÇÕES ************** */

.principal {
    position: relative;
    width: 100%;
    height: calc(100svh - var(--header-padrao) - 25px);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}

.principal .logo-descricao {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    text-align: center;
}

.principal .logo-descricao img {
    height: 90px ;
    object-fit: contain;
}

.btns-acao {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btns-acao a {
    flex-basis: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    font-size: 13px;
    border-left: 1px solid #ccc;

}

.btns-acao #btn_entrar {
    background: #1db2dd;
    color: #fff;
    font-size: 16px;
    
}

.btns-acao #btn_registrar {
    background: #ac36c4;
    color: #fff;
    font-size: 16px;
}



/* 

HEIGHT:

100svh (smallest
100lsv (largest
100dvh  (dinamic)

calc(100 * --vh


*/



/*  MENU SIDEBAR */

aside.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 260px;
    background: var(--aside-background);
    padding: 15px;
    transition: all 0.5s ease;
    z-index: 2000;
    box-shadow: 0 3px 9px var(--color-shadown);

}

aside.sidebar.close {
    left: -260px;
}

aside.sidebar .logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    font-size: 25px;
    padding: 0 15px;
}

aside.sidebar .logo > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

aside.sidebar a {
    color: var(--color-text-primary);
    text-decoration: none;
}

aside.sidebar .search-form {
    min-height: 48px;
    border-radius: 8px;
    display: flex;
    padding: 0 15px;
    margin: 5px 0 20px;
    align-items: center;
    white-space: nowrap;
    background: var(--color-bg-secondary);
    transition: 0.4s ease;
}

aside.sidebar .search-form:focus-within {
    background: var(--color-hover-secondary);
}

aside.sidebar .search-form input {
    border: none;
    background: none;
    outline: none;
    font-size: 1rem;
    width: 100%;
    margin-left: 15px;
    color: var(--color-text-primary);
}

aside.sidebar .menu-content {
    position: relative;
    height: 100%;
    width: 100%;
    margin-top: 40px;
    overflow-y: scroll;
}

aside.sidebar .menu-content::-webkit-scrollbar {
    display: none;
}

aside.sidebar .menu-items {
    height: 100%;
    width: 100%;
    list-style: none;
    transition: all 0.4s ease;
}

.submenu-active .menu-items {
    transform: translateX(-56%);
}



aside.sidebar .menu-title {
    color: var(--color-text-primary);
    font-size: 14px;
    padding: 15px 20px;
    
    display: flex;
    align-items: center;

    font-weight: 600;
}

aside.sidebar .menu-items .submenu .menu-title {
    padding: 15px 5px;
}

aside.sidebar a,
aside.sidebar .submenu-item {
    padding: 16px;
    display: inline-block;
    width: 100%;
    border-radius: 12px;
}

/* aside.sidebar .item i {
    font-size: 12px;
} */

aside.sidebar a:hover,
aside.sidebar .submenu-item:hover,
aside.sidebar .submenu .menu-title:hover {
    background: rgba(255, 255, 255, 0.1);
}

aside.sidebar .submenu {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: calc(-100% - 26px);
    height: calc(100% + 100vh);
    background: var(--aside-background);
    display: none;
}

aside.sidebar .submenu.show-submenu {
    display: block;
}

/* .show-submenu ~ .submenu {
    display: block;
} */

/* 14h46 */

aside.sidebar .submenu .menu-title {
    border-radius: 12px;
    cursor: pointer;
}


aside.sidebar .submenu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-primary);
    cursor: pointer;
}


aside.sidebar .submenu .menu-title span.material-symbols-outlined { /* .menu-title i */
    margin-right: 10px;
}

/* *************** tela modal *************** */

.modal {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--bg-modal);
    display: none;
}

.modal.ativo {
    display: block;
}


/*  *********** slider ************** */

.banner-principal {

    position: relative;
    width: 100%; 
    height: 350px;
    overflow: hidden;
}

.slider {
    width: 100%;
    max-width: 100vw;
    height: 400px;
    margin: auto;
    position: relative;
    overflow: hidden;
}



.list {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    width: max-content;
    transition: 1s;
}

/* .list .item {
    border: 1px solid red;
    width: 100%;
} */

.list img {
    width: 1300px;
    max-width: 100vw;
    height: 100%;
    object-fit: cover;
}

.buttons {
    position: absolute;
    top: 45%;
    left: 5%;
    width: 90%;
    display: flex;
    justify-content: space-between;
} 

.buttons button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff5;
    color: #fff;
    border: none;
    font-weight: bold;
}
.dots {
    position: absolute;
    bottom: 10px;
    color: #fff;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.dots li {
    list-style: none;
    width: 10px;
    height: 10px;
    background-color: #fff;
    margin: 20px;
    border-radius: 20px;
    transition: 1s;
}

.dots li.active {
    width: 30px;
}

/* *********** classes padroes, colocar junto com as outras */

.cabecalho {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cabecalho > div {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
}

.cabecalho button {
    background: transparent;
    border: none;
}


/*  ---- media query  tela pequena ------------- */

@media only screen and (max-width: 600px) {
    .search-box {
        background: transparent;
        width: auto;
        padding: 0;
    }

    .search-box input {
        width: 0;
        padding: 0;
    }

    .navbar-center ul li a span {
        display: none;
    }

    .navbar-center ul li a span.material-symbols-outlined {
        display: block;
    }

    .navbar-center ul li a {
        padding-right: 0;
        margin: 5px;
    }

    .nav-profile-img {
        width: 30px;
    }

    .container {
        padding: 15px 3%;
    }

    .left-sidebar, .right-sidebar {
        flex-basis: 100%;
        position: relative;
        top: unset;
    }

    .main-content {
        flex-basis: 100%;
    }

    .post-stats div {
        margin: 2px 0;
    }

    .post-activity span {
        display: none;
    }

    .post-activity span.material-symbols-outlined {
        display: block;
    }

    .profile-main, .profile-sidebar {
        flex-basis: 100%;
    }

    .profile-container {
        font-size: 14px;
    }

    .profile-pic {
        width: 100px;
        margin-top: -50px;

    }

    .profile-description {
        font-size: 14px;
    }

    #showMoreLink {
        display: block;
        width: fit-content;
        margin: 10px auto;
        font-size: 14px;
        cursor: pointer;
    }

    .sidebar-activity {
        display: none;
    }

    .sidebar-activity.open-activity {
        display: block;
    }

}
