/* Mobile First CSS - RealMe Profile */

/* Base styles para mobile */
@media (max-width: 768px) {
  body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }

  

  /* Esconder elementos desktop */
  .sidebar {
    display: none !important;
  }

  .navbar {
    display: none !important;
  }

  .full-profile-container {
    overflow: auto;
  }

  .visao-tab {
    overflow: hidden;
  }

  .backarea button{
    background-color: #00000000 !important;
    border: none;
    padding: 20px;
  }
  .backarea button i{
    color: #fff !important;
    font-size: 20px;
  }

    .backarea a{
    background-color: #00000000 !important;
    border: none;
    padding: 20px;
  }
  .backarea i{
    color: #fff !important;
    font-size: 20px;
  }

  /* Container principal mobile */
  .full-profile-container {
    width: 100vw;
    height: 100vh;
    margin: 0;

    border: none;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
  }

  /* Header do perfil mobile */
  .profile-header {
    padding: 20px 16px 0 16px;
    border: none;
    position: relative;
    z-index: 10;
    margin-top: 60px; /* Espaço para navbar */
  }

.profile-header::after {
  content: '';
  position: absolute;
  top: 90%; left: 0; right: 0; bottom: 0;
  width: 100%; height: 10%;
  background: #000000;
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, 1) 100%);
  z-index: 0;
}

  /* Layout do header - foto + info */
  .profile-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 20px;
  }

  /* Foto de perfil mobile */
  .profile-pic-block {
    flex-shrink: 0;
  }

  .profile-pic {
    width: 120px !important;
    height: 120px !important;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  }

  /* Info do perfil */
  .profile-info-block {
    min-width: 0; /* Para permitir text overflow */
    padding: 0px 10px;
  }

  /* Nome e pronomes */
  .name-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
  }
  
  .sobre-content {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

  .profile-name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
  }

  .pronouns {
    font-size: 12px;
    color: #ccc;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
  }

  /* Username */
  .handle {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 12px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  }

  /* Stats do perfil */
  .profile-stats {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #ddd;
    margin-bottom: 16px;
    text-align: center;
  }

  .profile-stats p{
    flex-direction: column;
  }

  .profile-stats strong {
    color: #4A90E2;
    font-weight: 700;
  }

  .stats p{
    display: flex;
    flex-direction: column;
  }


    .stats span{
    display: flex;
    flex-direction: column;
  }

  /* Botões de ação mobile */
  .action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 0;
    flex: 1;
  }

  .action-buttons button {
    background: #4A90E2;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px !important;
    font-weight: 600;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    align-items: center;
  }

  .action-buttons button:hover {
    background: #4A90E2;
    color: #fff;
    transform: translateY(-1px);
  }

  /* Botão Nudge especial */
  .btn-nudge {
    min-width: 44px;
    padding: 10px 24px !important;
  }

  .btn-nudge p {
    display: block !important;
  }

  .btn-nudge i {
    display: none !important;
    font-size: 16px;
  }

  /* Status box mobile */
  .status-box {
    margin: 16px;
    padding: 12px 16px;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    border-left: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }

  .status-text {
    font-size: 14px;
    color: #fff;
  }

  /* Menu horizontal mobile */
  .profile-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .profile-menu {
    width: 100%;
    height: auto;
    backdrop-filter: blur(16px);
    border: none;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding: 0;
    margin: 0 8px;
    margin-left: 0px;
  }

  .status-box {
    margin: 0px;
  }

  /* Esconder scrollbar do menu */
  .profile-menu::-webkit-scrollbar {
    display: none;
  }

  /* Items do menu mobile */
  .menu-item {
    min-width: auto;
    background: transparent;
    border: none;
    color: #fff;
    padding: 5px;
    margin: 20px;
    text-align: center;
    font-size: 26px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
  }
    .menu-item i{
    display: block;
    align-items: center;
    font-size: 22px;
  }

  .menu-item p{
    display: none;
  }

  .menu-item:focus,
  .menu-item.active {
    border-bottom: 3px solid #fff;
    background-color: transparent;
    color: #fff;
  }

  .menu-item:hover {
        background-color: transparent;
    color: #fff;
  }

  /* Área de conteúdo scrollável */
  .mural-tab,
  .amigos-tab,
  .visao-tab,
  .gostos-tab,
  .deps-tab,
  .links-tab {
    flex: 1;
    background: transparent;
    overflow-y: auto;
    padding: 0 16px 100px 16px; /* Espaço para navbar bottom */
  }

  /* Esconder títulos das tabs */
  .mural-tab h3,
  .amigos-tab h3,
  .visao-tab h3,
  .gostos-tab h3,
  .deps-tab h3,
  .links-tab h3 {
    display: none;
  }

  /* Grid masonry mobile */
  .mural-masonry {
    column-count: 2;
    column-gap: 12px;
    padding: 16px 0;
  }

  /* Post cards mobile */
  .post-card {
    display: inline-block;
    width: 100%;
    margin-bottom: 12px;
    break-inside: avoid;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
  }

  .post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  }

  /* Navbar superior mobile */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 9999;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  }

  .logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    padding: 0;
    margin-right: 16px;
  }

#mobile-search-container {
  position: fixed;
  top: 60px; /* altura da nav-mobile */
  left: 0;
  width: 100vw;
  z-index: 999;
  display: none;
  justify-content: center;
  background: rgba(28,28,28,0.98);
  padding: 12px 0 10px 0;
  box-shadow: 0 4px 16px #0004;
}

#mobile-search-container.active {
  display: flex;
}

#mobile-search-container input {
  width: 90vw;
  max-width: 400px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #444;
  background: #181818;
  color: #fff;
  font-size: 16px;
  outline: none;
}

  .search-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 4px 16px;
    margin: 0 16px 0 0;
    backdrop-filter: blur(8px);
    flex: 1;
  }

  .search-box input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
    width: 100%;
  }

  .search-area {
    flex: 1;
    max-width: 900px;
  }

  .search-box input::placeholder {
    color: #aaa;
  }

  /* Navbar bottom mobile */
  .navbar-bottom {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
      bottom: 0 !important;
  top: auto !important;  /* garante que não vai colar no topo */
  }

  .navbar-bottom-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    padding: 0 16px;
  }

  .navbar-bottom a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #aaa;
    font-size: 20px;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 44px;
  }

  /* Search results mobile */
  #searchResults {
    position: fixed;
    top: 70px;
    left: 50%px;
    right: 16px;
    width: auto;
    max-height: 300px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 10000;
  }

  #searchResults li {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  #searchResults li:hover {
    background: rgba(74, 144, 226, 0.2);
    color: #4A90E2;
  }

  /* Scrollbars customizadas */
  .mural-tab::-webkit-scrollbar,
  .amigos-tab::-webkit-scrollbar,
  .visao-tab::-webkit-scrollbar,
  .gostos-tab::-webkit-scrollbar,
  .deps-tab::-webkit-scrollbar,
  .links-tab::-webkit-scrollbar {
    width: 4px;
  }

  .mural-tab::-webkit-scrollbar-track,
  .amigos-tab::-webkit-scrollbar-track,
  .visao-tab::-webkit-scrollbar-track,
  .gostos-tab::-webkit-scrollbar-track,
  .deps-tab::-webkit-scrollbar-track,
  .links-tab::-webkit-scrollbar-track {
    background: transparent;
  }

  .mural-tab::-webkit-scrollbar-thumb,
  .amigos-tab::-webkit-scrollbar-thumb,
  .visao-tab::-webkit-scrollbar-thumb,
  .gostos-tab::-webkit-scrollbar-thumb,
  .deps-tab::-webkit-scrollbar-thumb,
  .links-tab::-webkit-scrollbar-thumb {
    background: rgba(74, 144, 226, 0.5);
    border-radius: 4px;
  }

  /* Animações e transições suaves */
  * {
    -webkit-tap-highlight-color: transparent;
  }

  button, .menu-item, .navbar-bottom a {
    touch-action: manipulation;
  }

  












}

@media (max-width: 768px) {
  .profile-header.shrink,
  .profile-header.shrink *,
  .full-profile-container.shrink-header,
  .mural-tab.shrink-header {
    all: unset !important;
    display: revert !important;
    font-size: revert !important;
    padding: revert !important;
    margin: revert !important;
    height: revert !important;
    min-height: revert !important;
    border-radius: revert !important;
    transition: none !important;
    background: none !important;
    box-shadow: none !important;
  }

@media (max-width: 768px) {
  .profile-header.shrink,
  .full-profile-container.shrink-header,
  .mural-tab.shrink-header {
    all: unset !important;
    display: revert !important;
    font-size: revert !important;
    padding: revert !important;
    margin: revert !important;
    height: revert !important;
    min-height: revert !important;
    border-radius: revert !important;
    transition: none !important;
    background: none !important;
    box-shadow: none !important;
  }
}
  .profile-menu-area {
  backdrop-filter: blur(0px) !important;
  background: #000000;
background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 4, 8, 1) 20%, rgba(0, 2, 3, 1) 80%, rgba(0, 0, 0, 0) 100%);
  }

.profile-menu {
  backdrop-filter: blur(0px) !important;
    background-color: transparent;
}
}
@media (max-width: 768px) {
  .post-card {
    padding: 16px !important;
    margin-bottom: 12px !important;
    border-radius: 12px !important;
    min-height: 130px !important;
    background: rgba(20, 20, 20, 0.85) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  }
}
/* Breakpoint para telas muito pequenas */
@media (max-width: 400px) {
  .profile-name {
    font-size: 20px;
  }
  
  .profile-pic {
    width: 80px;
    height: 80px;
  }
  
  .action-buttons button {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .mural-masonry {
    column-count: 1;
    padding: 12px 0;
  }
  
  .menu-item {
    font-size: 13px;
    padding: 10px 6px;
  }
  .last-update-area {
    display: none !important;
  }

  .navbar-top {
  display: flex;
  justify-content: space-between; /* joga um grupo p/ esquerda e outro p/ direita */
  align-items: center;            /* centraliza na vertical */
}

.top-left, .top-right {
  color: white;
  text-decoration: none;
  display: flex;
}



.tabnav h2 {
  color: white;
  margin: 0;
  padding: 15px;
  text-align: center;
  width: 100%;

}
  /* Container principal - SEM altura fixa e overflow */
  .full-profile-container {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
  }

  /* Body do perfil - SEM overflow bloqueado */
  .profile-body {
    overflow: visible !important;
    height: auto !important;
  }

  /* TODAS as tabs - SEM scroll próprio */
  .mural-tab,
  .amigos-tab,
  .visao-tab,
  .gostos-tab,
  .deps-tab,
  .links-tab {
    overflow-y: visible !important;
    height: auto !important;
    max-height: none !important;
  }

  /* Menu - altura automática */
  .profile-menu {
    height: auto !important;
    overflow-x: visible !important;
  }

  /* Body da página - permitir scroll */
  body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
  }

  /* HTML - scroll suave */
  html {
    overflow-y: auto !important;
    scroll-behavior: smooth !important;
  }

  /* Método 1: Webkit (Chrome, Safari, Edge) */
  body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  
  html::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* Método 2: Padrão CSS (Firefox e outros) */
  body {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* Internet Explorer 10+ */
  }
  
  html {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* Internet Explorer 10+ */
  }

  /* Método 3: Para containers específicos também */
  * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  
  *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
.profile-body {
  background-color: transparent;
}

  .profile-menu-area {
  backdrop-filter: blur(0px) !important;
  background: #000000;
background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 4, 8, 1) 20%, rgba(0, 2, 3, 1) 80%, rgba(0, 0, 0, 0) 100%);
  }

.profile-menu {
  backdrop-filter: blur(0px) !important;
    background-color: transparent;
}

.tab {
  backdrop-filter: blur(0px) !important;
}
}





