* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #0E1217;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  color: #C0C6CC;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  text-align: center;
  padding: 2rem 1rem;
}

header .logo {
  width: 80px;
  margin-bottom: 1rem;
}

header h1 {
  font-size: 2.5rem;
  color: #82CFFD;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1rem;
  color: #C0C6CC;
}

main {
  width: 90%;
  max-width: 800px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.post {
  background-color: #1A1F28;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.post:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.post h2 {
  font-size: 1.2rem;
  color: #A8DADC;
  margin-bottom: 0.5rem;
}

.post p {
  font-size: 0.95rem;
  color: #C0C6CC;
}

/* Skeleton Loader */
.skeleton {
  background: linear-gradient(90deg, #2A2F38 25%, #3A3F48 50%, #2A2F38 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 10px;
  height: 150px;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

#end-message {
  display: none;
  color: #82CFFD;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* Footer */
footer {
  text-align: center;
  color: #82CFFD;
  padding: 1rem 0;
  font-size: 0.9rem;
}
