html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  color: #222;
  background: #f5f7fa;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

header {
  background: #0078ff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: hidden;
}

header h1 {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  animation: slideFade 1.5s ease-out forwards;
}

@keyframes slideFade {
  0% { transform: translateY(-50px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.destaque {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  gap: 20px;
  padding: 30px 5%;
}
.destaque-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.destaque-item:hover { transform: scale(1.02); }
.destaque-item img { width: 100%; height: 200px; object-fit: cover; }
.destaque-item h3 { margin: 15px; color: #0078ff; }
.destaque-item p { margin: 0 15px 20px; color: #555; }

main { flex: 1; padding: 30px 5%; }
#feed-principal { display: flex; flex-direction: column; gap: 20px; }
.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, opacity 0.5s ease-in-out;
  opacity: 0;
}
.card.visible { opacity: 1; }
.card:hover { transform: translateY(-5px); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card h4 { margin: 10px; color: #0078ff; }
.card p { margin: 0 10px 15px; font-size: 0.9rem; color: #555; }

footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 20px 5%;
  margin-top: auto;
}
footer p { margin: 5px 0; font-size: 0.95rem; }
footer .links { margin-top: 5px; }
footer .links a {
  color: #ffcc00;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s;
}
footer .links a:hover { color: #fff; text-decoration: underline; }

#loading-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
}
.loader {
  border: 6px solid rgba(0,0,0,0.1);
  border-top: 6px solid #0078ff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
#loading-overlay p {
  font-size: 1.2rem;
  font-weight: 500;
  color: #222;
  text-align: center;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100%{opacity:1;}
  50%{opacity:0.6;}
}
