:root {
  --primary-color: #ff416c;
  --secondary-color: #ff4b2b;
  --bg-color: #fafbfc;
  --card-bg: #e1f5fe;
  --text-dark: #333;
  --text-light: #666;
  --border-radius: 24px;
  --header-height: 80px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.5;
}

/* Header & Footer */
.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  min-height: var(--header-height);
  background: #fff;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  font-style: italic;
  background-image: linear-gradient(to right, #ff007f, #ff5e62, #ff9966, #ffdf00);
  -webkit-background-clip: text;
  color: transparent;
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: var(--text-dark);
  font-size: 18px;
  transition: transform 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social-icons a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.social-icon-svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Main Grid */
main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  justify-content: center;
}

/* Post Card */
.post-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.post-image-wrapper {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
  padding: 15px;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.post-title {
  padding: 25px 20px;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  color: var(--text-dark);
}

/* Footer Extras */
.site-footer {
  border-top: 1px solid #eaeaea;
  margin-top: 60px;
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: var(--text-light);
  background: #fff;
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }
}