/* Color customization - restore original blue theme */
:root {
  --color-primary: #1976D2;
  --color-primary-hover: #1565C0;
  --color-border: rebeccapurple;
  --color-callout: dodgerblue;

  /* Legacy variable names for compatibility */
  --maincolor: #1976D2;
  --bordercl: rebeccapurple;
  --callouctcolor: dodgerblue;
  --hovercolor: navy;
}

/* Post Navigation */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 2em;
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.post-nav-item {
  flex: 1;
  max-width: 50%;
}

.post-nav-item a {
  display: flex;
  flex-direction: column;
  padding: 1em;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  border-bottom: 3px solid var(--maincolor);
  transition: all 0.2s ease;
}

.post-nav-item a:hover {
  background: rgba(0, 0, 0, 0.02);
  transform: translateY(-2px);
  color: inherit;
}

.post-nav-item a:hover .post-nav-label {
  color: var(--hovercolor);
}

.post-nav-item a:hover .post-nav-title {
  color: inherit;
}

.post-nav-prev a {
  align-items: flex-start;
}

.post-nav-next a {
  align-items: flex-end;
}

.post-nav-label {
  font-size: 0.8em;
  color: var(--maincolor);
  margin-bottom: 0.5em;
  font-weight: bold;
}

.post-nav-title {
  font-size: 0.9em;
  color: inherit;
}

@media (max-width: 768px) {
  .post-nav {
    flex-direction: column;
  }

  .post-nav-item {
    max-width: 100%;
  }
}

/* Link Card */
/* Override default link styles for linkcard */
a.link-card-wrapper {
  border-bottom: none;
  text-decoration: none;
}

a.link-card-wrapper:hover,
a.link-card-wrapper:focus {
  background-color: transparent;
  color: inherit;
  outline: none;
}

.link-card {
  display: flex;
  flex-direction: column;
  padding: 1.5em;
  margin-top: 1em;
  margin-bottom: 1em;
  border: solid 2px rgba(0,0,0,0.15);
  border-radius: 5px;
  transition: all 0.2s ease;
}

.link-card:hover {
  border-color: var(--maincolor);
  background-color: rgba(0, 0, 0, 0.02);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.link-card-title {
  font-weight: bold;
  margin-bottom: 0.8em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
}

.link-card-hostname {
  display: flex;
  align-items: center;
  height: 1.5em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-card-hostname-img {
  height: 100%;
  display: flex;
  align-items: center;
  margin-right: 0.5em;
}

.link-card-hostname-img img {
  max-height: 1.2em;
  max-width: 1.2em;
  width: auto;
  height: auto;
  object-fit: contain;
}

.link-card-hostname span {
  font-size: 0.9em;
  color: inherit;
}
