:root {
    --primary-color: #673de6;
    --gray: #727586;
    --gray-light: #f2f3f6;
    --gray-lightest: #7275861a;
    --gray-dark: #36344d;
    --gray-border: #dad9da;
    --gray-border-dark: #b9b9b9;
    --dark: #262626;
}

* {
    /* font-family: Arial, Helvetica, sans-serif; */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    height: 100%;
}

body {
    /* background-color: #afafaf; */
    height: 100%;
}


main {
    display: flex;
    flex-direction: column;
    gap: 5px;
}



/* Remove o azul ao tocar */
button, a, input, textarea, select {
  -webkit-tap-highlight-color: transparent;
  -webkit-focus-ring-color: transparent;
  outline: none;
}



header {
    display: flex;
    gap: 10px;
    padding: 10px;
    align-items: center;
    justify-content: space-between;
}

header img {
    height: 30px;
    width: auto;
}







input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea
{
  padding: 10px 15px;
  border: 1px solid var(--gray-border-dark);
  border-radius: 5px;
  user-select: none;
  outline: none;
  transition: 0.2s ease-in-out;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
textarea:focus
{
  border-color: var(--primary-color);
}






#feed {
    background-color: #afafaf;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 55px;
}

.post {
    background-color: #fff;
    display: flex;
    flex-direction: column;
}
.post .post-header {
    display: flex;
    padding: 10px;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}
.post .post-header .profile-follow {
    background-color: transparent;
    border: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    margin-right: 10px;
}
.post .post-header .profile-data {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #000;
}
.post .post-header .profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #d9d9d9;
    object-fit: cover;
}
.post .post-header .profile-username {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 7px;
}
.post .post-header .profile-username ion-icon {
    color: var(--primary-color);
}
.post .post-content {
  width: 100vw;
  height: calc(100vw * 5 / 4);
  background-color: #d9d9d9;
  object-fit: cover;
  overflow: hidden;
  position: relative;
}
.post .post-foot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 15px;
}
.post .post-foot .post-tools {
    display: flex;
    gap: 20px;
    align-items: center;
}
.post .post-foot .post-tools .interaction {
    display: flex;
    align-items: center;
    gap: 5px;
}
.post .post-foot .post-tools ion-icon {
    font-size: 27px;
}
.post .post-foot .post-desc {
    margin-bottom: 10px;
}
.post .post-tools button {
    padding: 2px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}
.post .post-tools button ion-icon {
    font-size: 27px;
    transform: translateY(2px);
}

.post .post-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    background-color: transparent;
    border: none;
}

.post .post-menu ion-icon {
    color: var(--gray-dark);
    font-size: 16px;
}





#toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 7px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
    background-color: #fff;
    border-top: 1px solid var(--gray-border-dark);
}

#toolbar button {
    border: none;
    background-color: transparent;
    cursor: pointer;
}


#toolbar button ion-icon {
    font-size: 27px;
    color: var(--primary-color);
}





#post {
    padding-bottom: 50px;
    background-color: #afafaf;
}






#create {
    padding: 20px;
}



#create #post-image {
    display: none;
}

#create #post-image-label {
    /* background-color: var(--primary-color); */
    display: flex;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-color);
}

#create #post-image-label ion-icon {
    color: var(--primary-color);
    font-size: 25px;
}







#profile  {

}


#profile .profile-buttons {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

#profile .profile-buttons button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 1;
    display: none;
}












.flex {
    display: flex;
}

.mg-l-auto {
    margin-left: auto;
}








/* #profile-follow {
} */



#profile-banner {
    position: absolute;
    background-color: var(--primary-color);
    width: 100%;
    height: 110px;
    z-index: -1;
}
#profile-header {
    position: absolute;
    top: 20px;
    left: 15px;
    width: calc(100% - 30px);
    display: flex;
    align-items: center;
    gap: 15px;
}
#profile-header > ion-icon {
    font-size: 16px;
    color: #fff;
}
#profile-username {
    font-size: 15px;
    display: flex;
    flex: 1;
    gap: 7px;
    align-items: center;
    color: #fff;
}

#profile-username ion-icon {
    color: inherit;
}

.profile-followers {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    gap: 5px;
    position: absolute;
    right: 20px;
    bottom: -20px;
    transform: translateY(100%);
}

.profile-followers ion-icon {
    font-size: 14px;
    transform: translateY(1px);
}





#profile-name {
    display: flex;
    gap: 7px;
    align-items: center;
}







.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.custom-alert-box {
    background: white;
    border-radius: 7px;
    padding: 15px;
    /* min-width: 300px; */
    max-width: 90%;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    text-align: center;
    font-family: sans-serif;
}

.custom-alert-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.custom-alert-description {
    font-size: 16px;
    margin-bottom: 20px;
}

.custom-alert-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.custom-alert-buttons button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.custom-alert-buttons button:hover {
    filter: brightness(0.95);
}




/* a {
    color: #303030;
} */













#profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 5px;
    padding-top: 20px;
}

.grid-item {
    background: var(--gray);
    aspect-ratio: 1 / 1; /* Faz o item ser quadrado */
    /* border-radius: 5px; */
    border-radius: 5px;
    overflow: hidden;
}

.grid-item .post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}







#drawer-mask {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #00000080;  
    display: none;  
}
.drawer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #fff;
    border-radius: 10px 10px 0 0;
    min-height: 70px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
}

.drawer button {
    padding: 10px;
    border-radius: 5px;
    border: none;
    display: flex;
    align-items: start;
    justify-content: center;
    gap: 3px;
    border: 1px solid var(--gray-border);
}

.drawer #post-trash {
    color: #c80000;
}

#drawer-outside {
    position: absolute;
    width: 100%;
    height: 100%;
}


#profile-menu {
    display: none;
}

.drawer #profile-logout {
    color: #c80000;
}







#post-comments {
    position: fixed;
    left: 0;
    bottom: 0;
    background-color: #fff;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
}
#post-comments .head {
    padding: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
#post-comments .head span {
    font-weight: 500;
}
#post-comments .head ion-icon {
    font-size: 25px;
}
#post-comments > .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 0 40px;
    overflow-y: auto;
    gap: 30px;
}
#post-comments .content .comment {
    padding: 0 13px;
    display: flex;
    gap: 12px;
}
#post-comments .content .comment .content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
#post-comments .content .comment .content span {
    font-size: 16px;
}
#post-comments .content .comment .content .username {
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px;
}
#post-comments .content .comment .content .username ion-icon {
    color: var(--primary-color);
}
#post-comments .content .comment .content .respond {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray);
}
#post-comments .content .comment .content .showResponses {
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translate(-50%, 100%);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 12px;
}
#post-comments .content .comment img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
#post-comments .foot {
    border-top: 1px solid var(--gray-border);
    display: flex;
    align-items: center;
    padding: 7px;
    gap: 7px; /* controla o espaçamento entre input e botão */
    box-sizing: border-box;
}

#post-comments .foot input {
    flex: 1;
    min-width: 0; /* ESSENCIAL pra evitar overflow do flex item */
    padding: 10px;
    border: none;
}

#post-comments .foot button {
    padding: 7px 12px;
    color: #fff;
    background-color: var(--primary-color);
    border: none;
    border-radius: 3px;
}











#login-form {
  /* --primary-color: orangered;
  --gray-border-dark: #b9b9b9;
  --gray-light: #f2f3f6;
  --gray: #727586;
  --dark: #262626; */

  max-width: calc(100% - 40px);
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#login-form .header-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

#login-form .header-form .title {
  /* font-size: 34px; */
  font-size: 30px;
  font-weight: 500;
  text-align: center;
}

#login-form .header-form .subtitle {
  color: var(--gray);
}

#login-form input {
  padding: 10px 15px;
  border: 1px solid var(--gray-border-dark);
  border-radius: 5px;
  user-select: none;
  outline: none;
  transition: 0.2s ease-in-out;
}

#login-form input:focus {
  border-color: var(--primary-color);
}

#login-form button {
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.1s ease-in-out;
}

#login-form button[type="submit"] {
  background-color: var(--primary-color);
  color: #fff;
}
#login-form button[type="submit"]:hover {
  opacity: 0.9;
}

#login-form button:disabled {
  background-color: var(--gray-light);
  color: var(--gray);
  cursor: not-allowed;
}

#login-form #google-btn {
  background-color: #fff;
  border: 1px solid var(--gray-border-dark);
}
#login-form #signup-btn {
  background-color: var(--dark);
  color: #fff;
}

#login-form .division-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 5px 0;
}
#login-form .division-or span {
  color: var(--gray);
}
#login-form .h-line {
  flex: 1;
  height: 1px;
  background-color: var(--gray-border-dark);
}