/* Full-screen hero background */
#page-header {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

#page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

#page-header #site-info {
  z-index: 1;
  position: relative;
}

/* Transparent navbar */
#nav {
  background: rgba(255, 255, 255, 0) !important;
  backdrop-filter: none;
  transition: all 0.3s ease;
}

#nav.fixed {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] #nav.fixed {
  background: rgba(26, 27, 46, 0.8) !important;
}

/* Glassmorphism card effects */
#recent-posts > .recent-post-item,
.aside-content .card-widget,
#aside-content .card-widget {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: saturate(180%) blur(20px);
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

#recent-posts > .recent-post-item:hover {
  box-shadow: 0 12px 40px rgba(76, 155, 255, 0.15);
  transform: translateY(-3px);
}

[data-theme="dark"] #recent-posts > .recent-post-item,
[data-theme="dark"] .aside-content .card-widget,
[data-theme="dark"] #aside-content .card-widget {
  background: rgba(30, 32, 48, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Page background - fixed full-screen image */
body {
  background: url('https://img.001315.xyz/file/tg/1778924977571.webp') center center / cover no-repeat fixed !important;
}

[data-theme="dark"] body {
  background: url('https://img.001315.xyz/file/tg/1778924977571.webp') center center / cover no-repeat fixed !important;
}

/* Force background image on Butterfly's #web_bg layer */
#web_bg {
  background: url('https://img.001315.xyz/file/tg/1778924977571.webp') center center / cover no-repeat fixed !important;
}

/* Make content wrappers transparent so background shows through */
#page,
#content-inner,
.layout,
.page,
main#content-inner,
#body-wrap {
  background: transparent !important;
  background-color: transparent !important;
}

/* Category card tiles */
#aside-content .card-categories .card-category-list .card-category-list-item {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  margin: 4px;
  background: rgba(76, 155, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(76, 155, 255, 0.2);
  transition: all 0.3s ease;
}

#aside-content .card-categories .card-category-list .card-category-list-item:hover {
  background: rgba(76, 155, 255, 0.2);
  transform: translateY(-2px);
}

/* Sidebar author card enhancement */
.card-widget.card-info {
  text-align: center;
}

.card-info .avatar-img {
  width: 110px !important;
  height: 110px !important;
  border-radius: 50%;
  border: 3px solid rgba(76, 155, 255, 0.4);
  box-shadow: 0 4px 16px rgba(76, 155, 255, 0.2);
}

/* Subtitle typewriter cursor */
#subtitle .typed-cursor {
  color: #fff;
  font-size: 1.2em;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Scroll down arrow animation */
#scroll-down {
  animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Footer glassmorphism */
#footer {
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: saturate(180%) blur(20px);
}

#footer::before {
  background: transparent !important;
}

[data-theme="dark"] #footer {
  background: rgba(26, 27, 46, 0.7) !important;
}

/* Post card cover image rounded */
#recent-posts .recent-post-item .post_cover img {
  border-radius: 8px;
}

/* Tag pills */
.tag-cloud-list a {
  border-radius: 6px !important;
  padding: 4px 10px !important;
  transition: all 0.3s ease;
}

.tag-cloud-list a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 155, 255, 0.2);
}

/* Announcement card style */
.card-announcement .item-content {
  font-style: italic;
  color: #666;
}

[data-theme="dark"] .card-announcement .item-content {
  color: #aaa;
}

/* Smooth page transitions */
.recent-post-item,
.card-widget {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.recent-post-item:nth-child(1) { animation-delay: 0.1s; }
.recent-post-item:nth-child(2) { animation-delay: 0.2s; }
.recent-post-item:nth-child(3) { animation-delay: 0.3s; }
.recent-post-item:nth-child(4) { animation-delay: 0.4s; }
.recent-post-item:nth-child(5) { animation-delay: 0.5s; }

/* Mobile responsive adjustments */
@media screen and (max-width: 768px) {
  #recent-posts > .recent-post-item {
    border-radius: 8px !important;
    margin: 8px 0;
  }
}
