/* =====================================================
   BASE STYLES - Estilos globales y reset
   ===================================================== */

/* Ocultar tap highlight y outline en móviles */
button, a, input, [role="button"] {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

button:focus, a:focus, input:focus {
  outline: none;
}

/* Safari: prevenir zoom en inputs */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  font-size: 16px !important;
  -webkit-appearance: none;
  appearance: none;
}

/* Estilos base del body */
body { 
  background: #fff;
  color: #000;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  /* Safari: prevenir zoom automático */
  -webkit-text-size-adjust: 100%;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* Ocultar barra de scroll globalmente */
html, body {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  overflow-x: hidden !important;
}

html::-webkit-scrollbar, body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Ocultar barra de scroll en todas las views */
.view-home,
.view-search,
.view-upload,
.view-messages,
.view-profile,
.view-otherprofile,
.view-chat {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.view-home::-webkit-scrollbar,
.view-search::-webkit-scrollbar,
.view-upload::-webkit-scrollbar,
.view-messages::-webkit-scrollbar,
.view-profile::-webkit-scrollbar,
.view-otherprofile::-webkit-scrollbar,
.view-chat::-webkit-scrollbar {
  display: none;
}

/* App View - Estructura principal */
#appView {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh;
  background: #fff;
  width: 100% !important;
  margin: 0 auto !important;
}

@media (min-width: 768px) {
  #appView {
    max-width: 600px !important;
    margin: 0 auto !important;
  }
}

#appView[style*="display:none"],
#appView[style*="display: none"] {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
}

#appContent {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 120px;
}

/* Views generales */
#view-home,
#view-upload,
#view-messages,
#view-profile {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.view-home,
.view-search,
.view-upload,
.view-messages,
.view-profile,
.view-otherprofile,
.view-chat,
.view-followers {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

/* Logo */
.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  width: 100px;
  height: auto;
  margin-bottom: 8px;
}

.logo-small { 
  width: 32px; 
  height: auto; 
}

/* Responsive para desktop */
@media (min-width: 768px) {
  #appView {
    max-width: 600px;
    margin: 0 auto;
  }
}

/* App Container - Centrado a 600px max-width */
.app-container {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}
