* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  min-height: 100vh;
  padding: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Tema claro (padrão) */
body {
  background-color: #f5f6fa;
  color: #2c3e50;
}

.container h1 {
  margin: 0 0 2.5rem;
  font-size: 2.2rem;
  color: #34495e;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.5rem;
  padding: 0 10px;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  background: white;
  border-radius: 16px;
  padding: 1.4rem 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.25s ease;
  aspect-ratio: 1 / 1;
}

.app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.14);
}

.app-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  object-fit: contain;
}

.app-name {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Tema escuro */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #e0e0e0;
  }

  .container h1 {
    color: #ecf0f1;
  }

  .app-card {
    background: #1e1e1e;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    color: #e0e0e0;
  }

  .app-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    background: #252525;
  }

  /* Ajuste para ícones que não ficam bons no dark mode (opcional) */
  .app-icon {
    filter: brightness(1.1);
  }
}

/* Responsividade */
@media (max-width: 480px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
  }
  
  .app-icon {
    width: 56px;
    height: 56px;
  }
  
  .app-name {
    font-size: 0.95rem;
  }
}
/* Rodapé */
.footer {
  margin-top: 3.5rem;
  padding: 2rem 1rem 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: #7f8c8d;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.status-links {
  margin-bottom: 1.2rem;
}

.status-links a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.status-links a:hover {
  color: #2980b9;
  text-decoration: underline;
}

.separator {
  margin: 0 1rem;
  color: #95a5a6;
}

/* Redes sociais */
.social-links {
  margin: 1.2rem 0;
}

.social-links a {
  margin: 0 1rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
}

.social-icon {
  width: 36px;
  height: 36px;
  filter: grayscale(30%);
  transition: filter 0.2s ease;
}

.social-links a:hover .social-icon {
  filter: grayscale(0%);
}

/* Texto final do rodapé */
.footer-text {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: #95a5a6;
}

/* Tema escuro - ajustes no rodapé */
@media (prefers-color-scheme: dark) {
  .footer {
    color: #bdc3c7;
    border-top-color: rgba(255,255,255,0.08);
  }

  .status-links a {
    color: #5dade2;
  }

  .status-links a:hover {
    color: #85c1e9;
  }

  .separator {
    color: #7f8c8d;
  }

  .footer-text {
    color: #95a5a6;
  }

  .social-icon {
    filter: brightness(1.1) grayscale(40%);
  }

  .social-links a:hover .social-icon {
    filter: brightness(1.2) grayscale(0%);
  }
}

/* Responsividade extra para rodapé em telas pequenas */
@media (max-width: 480px) {
  .social-links a {
    margin: 0 0.8rem;
  }
  
  .social-icon {
    width: 32px;
    height: 32px;
  }
}