/* Custom styles for The Debug Diary */

/* Latest post styles */
.latest-post {
  background-color: rgba(33, 37, 41, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  margin-bottom: 2rem;
}

.latest-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  border-color: rgba(110, 168, 254, 0.4) !important;
}

.latest-post h3 a {
  color: #f8f9fa;
  text-decoration: none;
}

.latest-post h3 a:hover {
  text-decoration: underline;
}

.post-meta {
  color: #6c757d;
  font-size: 0.9rem;
}

.post-thumbnail img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

/* Recent posts styles */
.recent-posts a {
  color: #f8f9fa;
  text-decoration: none;
}

.recent-posts a:hover {
  color: #6ea8fe;
  text-decoration: underline;
}

.recent-posts li {
  transition: padding-left 0.2s ease;
}

.recent-posts li:hover {
  padding-left: 5px;
}

/* Main content minimum height */
main {
  min-height: calc(100vh - 300px); /* Subtract footer height plus some margin */
}

/* Footer styles */
footer {
  background-color: rgba(33, 37, 41, 0.3);
  padding: 2rem 0;
  margin-top: 3rem;
  height: auto;
  max-height: 250px;
  overflow-y: auto;
}

footer h5 {
  color: #f8f9fa;
  font-size: 1rem;
  margin-bottom: 1rem;
}

footer a {
  color: #6ea8fe;
}

footer a:hover {
  color: #9ec5fe;
}

/* Post thumbnail styles */
.post-thumbnail-container {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  margin-top: 0.75rem;
}

.post-thumbnail-small {
  width: 70px;
  height: 70px;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.post-thumbnail-small:hover {
  transform: scale(1.05);
}

/* Badge style */
.badge {
  padding: 0.35em 0.65em;
  font-weight: normal;
  font-size: 0.85em;
  transition: background-color 0.2s;
  color: #ffffff;
  text-decoration: none;
}

.badge:hover {
  background-color: #0d6efd;
  color: #ffffff;
}

/* Adjust spacing in containers */
.container {
  max-width: 1140px;
}

@media (max-width: 768px) {
  .latest-post {
    padding: 1rem;
  }
}
