.site-loading {
  position: fixed;
  z-index: 9999;
  width: 100%;
  top: 0;
  background: var(--wtk-color-background-default);
  height: 100%;
  justify-content: center;
  display: flex;
  transition-duration: var(--wtk-def-anim-speed);
}

.hero {
  min-height: 100vh;
}

.content {
  margin: 0px var(--wtk-content-margin);
}

.fullcontent > div:first-child {
  padding-top: 96px;
}

.mobile-only {
  display: none;
}

body:not(.css-loaded) {
  display: none;
}

@media screen and (max-width: calc(960px + calc(32px * 2))) {
  .horizontal {
    flex-direction: column !important;
  }

  .mobile-only {
    display: unset;
  }

  .desktop-only {
    display: none;
  }

  .blog-post-cover {
    height: 30vh !important;
  }

  .home-info-box {
    width: 100%;
  }
}

footer {
  margin: 32px 0;
}

.social-button {
  width: 28px;
  height: 28px;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
}

.social-button .WtkImage {
  background-size: 16px;
  width: 16px;
  height: 16px;
}

.blog-post  {
  margin-top: 16px;
  gap: 16px;
}

.blog-post-cover {
  width: 100%;
  height: 40vh;
  display: block;
  border-radius: var(--wtk-rounded-corners);
  background-color: var(--wtk-color-background-default);
  object-fit: cover;
}

.blog-post-header {
  margin-top: 16px;
  gap: 16px;
}

.blog-post-title {
  margin: 0;
}

.blog-post-meta {
  flex-direction: row !important;
  gap: 8px;
  align-items: center;
}

.blog-post-meta > * {
  vertical-align: middle;
  height: fit-content;
}

.blog-post-meta .WtkSeparator {
  margin: 8px 0px;
}

.blog-post-tag-button {
  padding: 4px;
  background-color: var(--wtk-color-white-normal) !important;
}

.blog-post-tag-button:hover {
  background-color: var(--wtk-color-gray-normal) !important;
}

.blog-post-tag-button:active {
  background-color: #999 !important;
}

.blog-post-tag > * {
  vertical-align: middle;
}

.blog-post-tag #author-avatar, .blog-post-tag #category-icon {
  max-width: 16px;
  max-height: 16px;
  border-radius: 4px;
}

.blog-post-author-popover-top {
  min-width: 400px;
  width: fit-content;
  max-width: 50%;
}

@media screen and (max-width: calc(960px + calc(32px * 2))) {
  .blog-post-author-popover-top {
    min-width: 200px;
    max-width: 80%;
  }
}

.blog-post-author-popover {
  gap: 8px;
}

.blog-post-author-popover > #author-avatar-popover {
  width: 72px;
  height: 72px;
  border-radius: 4px;
}

.blog-post-author-popover-info {
  gap: 8px;
}

.blog-post-author-popover-info > #author-name-popover {
  margin: 0px;
}

.blog-post-author-popover-info > #author-name-popover > #author-pronouns-popover {
  font-style: italic;
  color: var(--wtk-color-label-default);
}

@media (prefers-color-scheme: dark) {
  .blog-post-tag-button {
    background-color: var(--wtk-color-black-normal) !important;
  }
  
  .blog-post-tag-button:hover {
    background-color: #535353 !important;
  }
  
  .blog-post-tag-button:active {
    background-color: #777 !important;
  }
}

/* Blog Cards Styles */
.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  padding: 32px 0;
}

.blog-card {
  position: relative;
  background: var(--card-bg, #ffffff);
  border-radius: calc(var(--wtk-rounded-corners) + 4px);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all calc(var(--wtk-def-anim-speed) * 1.5) cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  height: 280px;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: scale(1.075);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
          z-index: 99;
}

.blog-card .blog-card-meta,
.blog-card .blog-card-title {
    transition: all calc(var(--wtk-def-anim-speed) * 1.5) cubic-bezier(0.34, 1.56, 0.64, 1) ;
}

.blog-card:hover .blog-card-title {
    margin-bottom: 64px;
}

.blog-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: inset 0px 4px 16px rgba(255, 255, 255, 0.5), inset 0px -4px 16px rgba(0, 0, 0, 0.25);
  background: var(--cover-image), linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.blog-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 60%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 2;
}

.blog-card-content {
  position: relative;
  z-index: 3;
  padding: 20px;
  color: var(--wtk-color-white-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-end;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
  opacity: 0.9;
}

.blog-card-date {
  font-weight: 500;
}

.blog-card-category {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(var(--wtk-translucent-blur));
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
          color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-card-summary {
  position: absolute;
  bottom: -80px;
  left: 0;
  right: 0;
  background: var(--wtk-translucent-bg);
          backdrop-filter: blur(var(--wtk-translucent-blur));
  color: var(--wtk-color-label-default);
  padding: 12px;
          margin: 4px;
          border-radius: var(--wtk-rounded-corners);
  line-height: 1.5;
  opacity: 0;
  transition: all calc(var(--wtk-def-anim-speed) * 1.5) cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 4;
}

.blog-card-summary-content {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
          height: 39px;
}

.blog-card:hover .blog-card-summary {
  bottom: 0;
  opacity: 1;
}

/* Has cover image */
.blog-card.has-cover .blog-card-bg {
  background-image: var(--cover-image);
}

.blog-homepage-footer1 {
  max-width: 55%;
  width: 100%;
  margin: 0 auto;
  gap: 16px;
}

.blog-homepage-footer1 > * {
  width: 100%;
}

.blog-homepage-footer1 > .WtkButton > * {
  margin: 4px 0;
}

.blog-homepage-footer2 {
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-direction: row !important;
}

.blog-homepage-footer2 > a {
  width: 128px;
  height: 136px;
}

.blog-homepage-footer2 > a span {
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: calc(960px + calc(32px * 2))) {
  .blog-container {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 0;
  }

  .blog-card {
    height: 240px;
  }

  .blog-card-title {
    font-size: 20px;
  }

  .blog-homepage-footer1 {
    max-width: unset;
  }
}

.blog-post-content img,
.blog-post-content video {
  width: 100%;
}

pre.bash {
  border: 1px solid var(--wtk-color-gray-normal);
  border-radius: 0px;
  padding: 4px;
  background: black;
  color: white;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
}

pre.bash code {
  font-family: 'JetBrains Mono', monospace;
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* pill anim start */
.falling-pills {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    background: #00ffcc99;
    z-index: -1;
}

.pill {
    position: absolute;
    border-radius: 60px;
    animation: fall linear infinite;
    background: linear-gradient(90deg, #dc2626 50%, #ffffff 50%);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.4),
        0 3px 6px rgba(0, 0, 0, 0.3);
    will-change: transform;
}

.pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 60px;
    background: linear-gradient(90deg, #dc2626 50%, #ffffff 50%);
    box-shadow: 
        inset 0 3px 6px rgba(0, 0, 0, 0.4),
        inset 0 -2px 4px rgba(255, 255, 255, 0.3);
}

.pill::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 15%;
    width: 70%;
    height: 35%;
    border-radius: 60px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.5) 50%, 
        rgba(255, 255, 255, 0.7) 50%);
    filter: blur(1px);
}

@keyframes fall {
    0% {
        transform: translateY(-120px) rotate(var(--rotation, 0deg));
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 120px)) rotate(var(--rotation, 0deg));
        opacity: 0;
    }
}
/* pill anim end */

.home-info-box {
  gap: 16px;
}

.content {
    animation: content-anim ease-in-out 1s;
}

.label {
  margin: 0;
}

@keyframes content-anim {
    0% {
        transform: translateY(-32px);
        opacity: 0;
        filter: blur(32px);
    }
    25% {
        transform: translateY(-32px);
        opacity: 0;
        filter: blur(32px);
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
        filter: blur(0px);
    }
}