/* Blog-specific layout + animations (light theme) */

.container { max-width: 1100px; margin: 40px auto; padding: 0 20px; }

/* Blog header */
.blog-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  padding:28px;
  margin-bottom:28px;
}

.blog-header h1 { font-size:1.8rem; color:#0b4bd8; margin-bottom:6px; }
.blog-header p { color:#455; margin:0 }

/* Controls */
.blog-controls { display:flex; gap:12px; align-items:center; }
#search {
  padding:10px 14px;
  border-radius:10px;
  border:1px solid #e2eeff;
  min-width:260px;
  outline:none;
  box-shadow: 0 4px 10px rgba(34,60,120,0.03);
}
#tag-filter {
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #e2eeff;
  background:#fff;
}

/* Posts grid */
.posts-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:18px; }

/* Post card */
.post-card {
  background: #fff;
  border-radius:14px;
  padding:20px;
  border:1px solid #e8f2ff;
  box-shadow:0 8px 30px rgba(15,45,100,0.04);
  transition: transform .25s ease, box-shadow .25s ease;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:150px;
  position:relative;
  overflow:hidden;
}
.post-card:hover { transform: translateY(-8px); box-shadow:0 18px 40px rgba(15,45,100,0.08); }

/* Icon + meta row */
.post-meta { display:flex; align-items:center; gap:12px; color:#587; font-size:0.92rem; }
.post-title { color:#0b4bd8; font-size:1.05rem; margin:6px 0; }

/* Excerpt */
.post-excerpt { color:#445; line-height:1.5; font-size:0.95rem; }

/* Tag pill */
.tag {
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:linear-gradient(90deg,#e9f3ff,#f4fbff);
  color:#0b4bd8;font-weight:600;font-size:0.8rem;
  border:1px solid #e2eeff;
}

/* No results */
.no-results { text-align:center; padding:40px; color:#466; }

/* Post read view */
.post-article { padding:32px; max-width:900px; margin:auto; background:#fff; border-radius:14px; border:1px solid #e8f2ff; box-shadow:0 8px 30px rgba(15,45,100,0.04); }
.post-article h1 { color:#0b4bd8; font-size:1.8rem; margin-bottom:10px; }
.post-content { color:#445; line-height:1.75; margin-top:14px; font-size:1rem; }
.post-article .back-link { display:inline-block; margin-top:20px; color:#0b4bd8; text-decoration:none; }

/* subtle icon animation */
.icon-bubble {
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:10px; background:linear-gradient(180deg,#f5fbff,#eef7ff);
  border:1px solid #e2eeff;
  box-shadow:0 6px 20px rgba(15,45,100,0.03);
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0% { transform: translateY(0) } 50% { transform: translateY(-6px) } 100% { transform: translateY(0) } }

/* mobile tweaks */
@media (max-width:720px) {
  .blog-header { flex-direction:column; align-items:flex-start; gap:12px; }
  .blog-controls { width:100%; }
  #search { width:100%; min-width:0; }
}
