/* Estilos globais para o webapp mobile anjomeu.com.br */
:root {
  /* Cores baseadas no site ticto.com.br */
  --primary-color: #5e17eb;
  --secondary-color: #ff4d8d;
  --gradient-primary: linear-gradient(90deg, #5e17eb, #ff4d8d);
  --gradient-button: linear-gradient(90deg, #ff4d8d, #8a4fff);
  --text-color: #ffffff;
  --text-dark: #333333;
  --background-dark: #1a0033;
  --background-light: rgba(255, 255, 255, 0.1);
  --glass-background: rgba(30, 0, 60, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --anjomeu-blue: #00b8ff;
  --error-color: #ff3b5c;
  --success-color: #00d68f;
}

/* Reset e estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--background-dark);
  color: var(--text-color);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(94, 23, 235, 0.4) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(255, 77, 141, 0.4) 0%, transparent 30%);
  background-attachment: fixed;
}

/* Container principal */
.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
}

/* Efeito Glass */
.glass-card {
  background: var(--glass-background);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  padding: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

/* Cabeçalho */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
  margin-bottom: 20px;
}

.logo {
  max-width: 150px;
  height: auto;
}

/* Formulários */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--anjomeu-blue);
  box-shadow: 0 0 0 2px rgba(0, 184, 255, 0.3);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Botões */
.btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-button);
  color: var(--text-color);
  box-shadow: 0 4px 15px rgba(255, 77, 141, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 77, 141, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-link {
  background: transparent;
  color: var(--anjomeu-blue);
  padding: 8px;
  text-decoration: underline;
  font-weight: 500;
}

/* Links */
a {
  color: var(--anjomeu-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: underline;
}

/* Navegação inferior */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--glass-background);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  border-top: 1px solid var(--glass-border);
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-color);
  text-decoration: none;
  font-size: 12px;
}

.nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.nav-item.active {
  color: var(--anjomeu-blue);
}

/* Títulos e textos */
.title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.subtitle {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--anjomeu-blue);
}

.text-center {
  text-align: center;
}

.text-muted {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* Divisor */
.divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.6);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.divider::before {
  margin-right: 10px;
}

.divider::after {
  margin-left: 10px;
}

/* Mensagens de alerta */
.alert {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-error {
  background: rgba(255, 59, 92, 0.2);
  border: 1px solid var(--error-color);
  color: var(--error-color);
}

.alert-success {
  background: rgba(0, 214, 143, 0.2);
  border: 1px solid var(--success-color);
  color: var(--success-color);
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Responsividade */
@media (max-width: 480px) {
  .container {
    padding: 15px;
  }
  
  .glass-card {
    padding: 15px;
  }
  
  .title {
    font-size: 22px;
  }
}

/* Estilos específicos para cada página */
/* Login (index.php) */
.login-container {
  padding-top: 40px;
  padding-bottom: 80px;
}

.login-options {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  margin-bottom: 25px;
}

/* Feed */
.feed-item {
  margin-bottom: 15px;
  animation: fadeIn 0.5s ease forwards;
  animation-delay: calc(var(--i) * 0.1s);
  opacity: 0;
}

/* Perfil */
.profile-header {
  text-align: center;
  margin-bottom: 25px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--anjomeu-blue);
  margin: 0 auto 15px;
  display: block;
}

.profile-stats {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--anjomeu-blue);
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* Espaçamento para navegação inferior */
.page-content {
  padding-bottom: 70px;
}
