/*
Theme Name: DTF WP Blog
Theme URI: https://digitaltechfusion.ca
Author: Digital Tech Fusion
Description: Nuxt-matched WordPress blog theme.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: dtf-wp-blog
*/

html,
body {
  margin: 0;
  background: #0f172a;
  color: #e2e8f0;
  font-family: Inter, "Segoe UI", sans-serif;
}

.dtf-bg-base {
  background: linear-gradient(135deg, #1f2937 0%, #1e3a8a 52%, #2563eb 100%);
}

.dtf-orb-cyan {
  background: rgba(34, 211, 238, 0.2);
}

.dtf-orb-purple {
  background: rgba(168, 85, 247, 0.16);
}

.dtf-orb-pink {
  background: rgba(236, 72, 153, 0.12);
}

.dtf-static-glow {
  position: fixed;
  z-index: 4;
  width: 500px;
  height: 500px;
  left: 50%;
  top: 34%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(236, 72, 153, 0.33) 0%, rgba(139, 92, 246, 0.26) 30%, rgba(59, 130, 246, 0.16) 55%, transparent 72%);
  filter: blur(42px);
  mix-blend-mode: screen;
  pointer-events: none;
}

.grid-pattern {
  background-image: linear-gradient(#e5e7eb 1px, transparent 1px),
    linear-gradient(90deg, #e5e7eb 1px, transparent 1px);
  background-size: 50px 50px;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

#dtf-site-header.scrolled-state {
  padding-bottom: 5px;
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(99, 102, 241, 0.2);
}

#dtf-site-header {
  background: transparent;
  min-height: 70px;
}

.dtf-main {
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.dtf-featured-wrap {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.dtf-featured {
  display: grid;
  grid-template-columns: minmax(300px, 40%) 1fr;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.78);
  text-decoration: none;
  color: inherit;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.dtf-featured:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.58);
}

.dtf-featured-media {
  position: relative;
  min-height: 240px;
}

.dtf-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dtf-featured-fallback {
  width: 100%;
  height: 100%;
  min-height: 240px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.28), rgba(217, 70, 239, 0.28));
}

.dtf-featured-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.4);
  background: rgba(6, 182, 212, 0.2);
  color: #bae6fd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
}

.dtf-featured-content {
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dtf-featured-content h2 {
  margin: 0.4rem 0 0.7rem;
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.15;
}

.dtf-hero {
  max-width: 900px;
  margin: 0 auto 2.2rem;
  text-align: center;
  padding: 0 1rem;
}

.dtf-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.08;
  color: #fff;
}

.dtf-hero p {
  margin-top: 0.9rem;
  color: #cbd5e1;
  font-size: 1.12rem;
}

.dtf-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.2rem;
  justify-items: center;
}

.dtf-card {
  display: block;
  width: 100%;
  max-width: 360px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.78);
  text-decoration: none;
  color: inherit;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.dtf-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.58);
}

.dtf-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.dtf-card-fallback {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(99, 102, 241, 0.22));
}

.dtf-card-content {
  padding: 0.85rem 0.95rem 1rem;
}

.dtf-card-meta,
.dtf-post-meta {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

.dtf-card-title {
  margin: 0.55rem 0;
  font-size: 1.1rem;
  line-height: 1.24;
  color: #fff;
}

.dtf-post-wrap {
  width: min(920px, 92vw);
  margin: 0 auto;
}

.dtf-post-header h1 {
  margin: 0.55rem 0 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
}

.dtf-post-lead {
  margin-top: 0.9rem;
  margin-bottom: 0;
  color: #cbd5e1;
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 75ch;
}

.dtf-post-cover {
  margin: 1.1rem 0 2rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(129, 140, 248, 0.25);
}

.dtf-post-cover img {
  width: 100%;
  display: block;
}

.dtf-post-paper {
  margin-top: 1rem;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 25px 60px rgba(2, 6, 23, 0.35);
  padding: clamp(1.2rem, 2.2vw, 2rem);
}

.dtf-prose {
  color: #0f172a;
  font-size: 1.07rem;
  line-height: 1.82;
}

.dtf-prose > * {
  margin-block: 1.15rem;
}

.dtf-prose hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.45), rgba(217, 70, 239, 0.45));
  margin: 2rem 0;
}

.dtf-prose h2,
.dtf-prose h3,
.dtf-prose h4 {
  color: #020617;
  line-height: 1.22;
  margin-top: 2rem;
}

.dtf-prose h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
}

.dtf-prose h3 {
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
}

.dtf-prose ul,
.dtf-prose ol {
  margin: 0.9rem 0 1.1rem;
  padding-left: 1.35rem;
}

.dtf-prose ul {
  list-style: disc outside !important;
}

.dtf-prose ol {
  list-style: decimal outside !important;
}

.dtf-prose li {
  margin: 0.42rem 0;
  padding-left: 0.15rem;
  display: list-item !important;
}

.dtf-prose strong {
  color: #020617;
}

.dtf-prose a {
  color: #0f766e;
}

.dtf-prose img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(100, 116, 139, 0.35);
}

.dtf-callout {
  margin: 1.35rem 0;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(241, 245, 249, 0.95);
  padding: 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
}

.dtf-callout-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(34, 211, 238, 0.2);
  display: grid;
  place-items: center;
}

.dtf-callout h4 {
  margin: 0 0 0.35rem;
  color: #020617;
}

.dtf-callout-warning {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(254, 243, 199, 0.7);
}

.dtf-callout-tip {
  border-color: rgba(16, 185, 129, 0.42);
  background: rgba(209, 250, 229, 0.68);
}

.dtf-callout-definition {
  border-color: rgba(129, 140, 248, 0.42);
  background: rgba(224, 231, 255, 0.72);
}

.dtf-callout-alert {
  border-color: rgba(248, 113, 113, 0.46);
  background: rgba(254, 226, 226, 0.75);
}

.dtf-key-takeaways {
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(236, 254, 255, 0.9);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.dtf-key-takeaways h3 {
  margin: 0 0 0.55rem;
}

.dtf-key-takeaways ul {
  margin: 0;
  padding-left: 1.2rem;
}

.dtf-prose .dtf-cta-button .wp-block-button__link,
.dtf-cta-button .wp-block-button__link {
  background: linear-gradient(90deg, #0f172a, #1e293b) !important;
  color: #f8fafc !important;
  border: 1px solid #0f766e !important;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.78rem 1.2rem;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.25);
}

.dtf-prose .dtf-cta-button .wp-block-button__link:hover,
.dtf-cta-button .wp-block-button__link:hover {
  background: linear-gradient(90deg, #0b1324, #17253f) !important;
  color: #ffffff !important;
  border-color: #14b8a6 !important;
}

.dtf-services-menu {
  position: relative;
}

.dtf-services-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  margin: 0.4rem 0 0;
  padding: 0.45rem 0;
  list-style: none;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 120;
}

.dtf-services-menu:hover .dtf-services-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dtf-services-menu:hover .dtf-services-chevron {
  color: #f0abfc;
}

.dtf-services-menu:hover .dtf-services-underline {
  width: 100%;
}

#dtf-site-header.scrolled-state .dtf-services-dropdown {
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

.dtf-services-dropdown a {
  display: block;
  padding: 0.62rem 1rem;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.dtf-services-dropdown a:hover {
  color: #67e8f9;
  padding-left: 1.45rem;
}

.dtf-newsletter {
  width: min(100%, 280px);
  display: grid;
  gap: 0.55rem;
}

.dtf-newsletter-input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.75);
  color: #e2e8f0;
  padding: 0.62rem 0.72rem;
}

.dtf-newsletter-input:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.dtf-newsletter-btn {
  border: 0;
  border-radius: 10px;
  padding: 0.65rem 0.84rem;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.85), rgba(99, 102, 241, 0.9));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.dtf-newsletter-btn:hover {
  filter: brightness(1.08);
}

.footer-link {
  text-decoration: none;
}

.footer-link:hover {
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  #dtf-site-header nav {
    display: none;
  }

  .dtf-main {
    padding-top: 7rem;
  }

  .dtf-featured {
    grid-template-columns: 1fr;
  }

  .dtf-featured-media {
    min-height: 220px;
  }
}
