/* Custom CSS - Migrated from v0.2.9 custom theme */
/* Override fonts from Inter/PT Serif to Rubik/Domine */

html {
  font-family: Rubik, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

.font-sans,
.button,
[type=date],
[type=email],
[type=number],
[type=password],
[type=text],
[type=url],
cite,
figcaption,
h1, h2, h3, h4, h5, h6,
textarea,
table,
.kg-card {
  font-family: Rubik, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

.font-serif,
.post-body {
  font-family: Domine, ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
}

/* Hero section enhancements */
.homeHero {
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--bg-base) 100%);
}

.dark .homeHero {
  background: linear-gradient(180deg, var(--gray-200) 0%, var(--bg-base) 100%);
}

/* =====================================================
   FOOTER DESIGN
   ===================================================== */

/* Footer grid layout */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1.3fr;
    gap: 3.5rem;
  }
}

/* Footer headings */
.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.5rem;
  font-family: Rubik, sans-serif;
}

/* --- About section --- */
.footer-logo-area {
  margin-bottom: 1.25rem;
}

.footer-site-logo {
  max-height: 2rem;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  font-family: Rubik, sans-serif;
}

.footer-description {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0;
}

.footer-social-media .icon {
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-social-media .icon:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* --- Tags section --- */
.footer-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-tag-link {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: Rubik, sans-serif;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.25s ease;
  text-transform: capitalize;
}

.footer-tag-link:hover {
  color: #fff;
  background: var(--ghost-accent-color);
  border-color: var(--ghost-accent-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 190, 81, 0.25);
}

/* --- Subscribe section --- */
.footer-sub-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.25rem;
}

.footer-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-input-group {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.25s ease;
}

.footer-input-group:focus-within {
  border-color: var(--ghost-accent-color);
  box-shadow: 0 0 0 3px rgba(10, 190, 81, 0.1);
}

.footer-email-input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: Rubik, sans-serif;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: none !important;
  outline: none;
  border-radius: 0 !important;
  box-shadow: none !important;
  height: auto;
}

.footer-email-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.footer-submit-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: Rubik, sans-serif;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--ghost-accent-color);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease, opacity 0.25s ease;
}

.footer-submit-btn:hover {
  opacity: 0.88;
}

.footer-msg-success {
  font-size: 0.8125rem;
  color: #48e79a;
  margin-top: 0.5rem;
}

.footer-msg-error {
  font-size: 0.8125rem;
  color: #f14668;
  margin-top: 0.5rem;
}

/* --- Bottom bar --- */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copyright {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
  font-family: Rubik, sans-serif;
  margin: 0;
}

.footer-powered {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
  font-family: Rubik, sans-serif;
  margin: 0;
}

.footer-powered a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-powered a:hover {
  color: #fff;
}

/* --- Mobile footer --- */
@media (max-width: 767px) {
  .footer-grid {
    text-align: center;
  }

  .footer-tag-cloud {
    justify-content: center;
  }

  .footer-logo-area {
    display: flex;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* =====================================================
   OTHER ENHANCEMENTS
   ===================================================== */

/* Story cards enhancements */
.story-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Header logo adjustments */
.header-logo-img {
  transition: opacity 0.3s ease;
}

/* Dark mode toggle button */
.js-dark-mode {
  transition: transform 0.3s ease;
}

.js-dark-mode:hover {
  transform: rotate(15deg);
}

/* Reading progress bar */
.loadingBar {
  background: linear-gradient(90deg, var(--ghost-accent-color), #48e79a);
}

/* Back to top button */
.back-to-top {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Post content enhancements */
.post-body blockquote:not([class]) {
  border-left-color: var(--ghost-accent-color);
  font-family: Domine, ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
}

/* Code blocks with Domine font for better readability */
.post-body p,
.post-body li {
  font-family: Domine, ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
}

/* Newsletter CTA */
.content-cta {
  border-radius: 8px;
  overflow: hidden;
}

/* Mobile menu enhancements */
@media (max-width: 999px) {
  .nav-mob {
    background: var(--bg-base);
  }

  .nav-mob a {
    font-family: Rubik, sans-serif;
  }
}
