/* ==========================================================================
   GeneratePress Child Theme Design System
   Archetype: Editorial Gazette
   ========================================================================== */

/* 1. LAYOUT & CONTAINERS */
.wf-container {
  width: 100%;
  max-width: var(--gp-container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.wf-section {
  padding: 4.5rem 0;
}

/* 2. READING PROGRESS BAR */
.wf-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gp-primary);
  width: 0%;
  z-index: 99999;
  transition: width 0.1s linear;
}

/* 3. NAVIGATION ENHANCEMENTS */
.wf-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.wf-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--gp-text-muted);
  transition: background-color 0.2s, color 0.2s;
}

.wf-search-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--gp-primary);
}

.wf-nav-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--gp-radius-sm);
  background-color: var(--gp-primary);
  color: #ffffff !important;
  transition: background-color 0.2s, transform 0.1s;
}

.wf-nav-cta-btn:hover {
  background-color: var(--gp-primary-hover);
  transform: translateY(-1px);
}

.wf-mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.wf-mobile-menu-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--gp-secondary);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* 4. HERO SECTION */
.wf-hero-section {
  padding: 5rem 0 4rem;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
  border-bottom: 1px solid var(--gp-border);
}

.wf-hero-wrapper {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.wf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gp-primary);
  background-color: rgba(37, 99, 235, 0.08);
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wf-badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--gp-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  animation: wfPulse 2s infinite;
}

@keyframes wfPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(37, 99, 235, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.wf-hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--gp-secondary);
}

.wf-hero-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--gp-text-muted);
  max-width: 720px;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
}

/* Hero Search */
.wf-hero-search-wrapper {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.wf-hero-search-form {
  display: flex;
  gap: 0.5rem;
  background: var(--gp-surface);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-md);
  padding: 0.35rem;
  box-shadow: var(--gp-shadow-subtle);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wf-hero-search-form:focus-within {
  border-color: var(--gp-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.wf-hero-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--gp-text-main);
  outline: none;
}

.wf-hero-search-submit {
  padding: 0.75rem 1.5rem;
  background-color: var(--gp-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--gp-radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.wf-hero-search-submit:hover {
  background-color: var(--gp-primary-hover);
}

/* Category Pills */
.wf-hero-categories {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.wf-categories-label {
  color: var(--gp-text-muted);
  font-weight: 500;
  margin-right: 0.25rem;
}

.wf-categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.wf-category-pill {
  padding: 0.35rem 0.85rem;
  background-color: var(--gp-surface);
  border: 1px solid var(--gp-border);
  border-radius: 9999px;
  color: var(--gp-text-main);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s;
}

.wf-category-pill:hover {
  background-color: var(--gp-primary);
  color: #ffffff;
  border-color: var(--gp-primary);
  transform: translateY(-1px);
}

/* 5. SECTION HEADERS */
.wf-section-header {
  margin-bottom: 2.5rem;
}

.wf-section-kicker {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gp-primary);
  margin-bottom: 0.25rem;
}

.wf-section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: 0;
  color: var(--gp-secondary);
}

.wf-section-rule {
  height: 2px;
  width: 48px;
  background-color: var(--gp-primary);
  margin-top: 0.75rem;
}

/* 6. FEATURED CONTENT GRIDS */
.wf-featured-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.wf-lead-card {
  background-color: var(--gp-card-bg);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wf-lead-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--gp-shadow-elevated);
}

.wf-card-media {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: #e2e8f0;
}

.wf-card-media-sm {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.wf-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.wf-lead-card:hover .wf-card-img,
.wf-standard-card:hover .wf-card-img {
  transform: scale(1.03);
}

.wf-card-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(15, 23, 42, 0.08) 100%);
}

.wf-placeholder-badge {
  padding: 0.5rem 1.25rem;
  background: var(--gp-surface);
  border: 1px solid var(--gp-border);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gp-primary);
}

.wf-lead-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.wf-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
}

.wf-card-category {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gp-primary);
}

.wf-card-time {
  color: var(--gp-text-muted);
}

.wf-lead-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.wf-lead-title a {
  color: var(--gp-secondary);
}

.wf-lead-title a:hover {
  color: var(--gp-primary);
}

.wf-card-excerpt {
  color: var(--gp-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.wf-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--gp-border);
  padding-top: 1rem;
  font-size: 0.8125rem;
  color: var(--gp-text-muted);
}

.wf-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.wf-standard-card {
  background-color: var(--gp-card-bg);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wf-standard-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--gp-shadow-card);
}

.wf-standard-card .wf-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.wf-card-title {
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  flex: 1;
}

.wf-card-title a {
  color: var(--gp-secondary);
}

.wf-card-title a:hover {
  color: var(--gp-primary);
}

/* 7. KNOWLEDGE PILLARS */
.wf-pillars-section {
  background-color: rgba(0, 0, 0, 0.015);
  border-top: 1px solid var(--gp-border);
  border-bottom: 1px solid var(--gp-border);
}

.wf-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.wf-pillar-card {
  background-color: var(--gp-surface);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-md);
  padding: 2rem;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.wf-pillar-card:hover {
  border-color: var(--gp-primary);
  transform: translateY(-3px);
}

.wf-pillar-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: rgba(37, 99, 235, 0.2);
  margin-bottom: 0.75rem;
  font-family: var(--gp-font-heading);
}

.wf-pillar-title {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
  color: var(--gp-secondary);
}

.wf-pillar-desc {
  font-size: 0.9rem;
  color: var(--gp-text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.wf-pillar-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gp-primary);
}

/* 8. TRUST & E-E-A-T PANEL */
.wf-trust-card {
  background-color: var(--gp-surface);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  box-shadow: var(--gp-shadow-subtle);
}

.wf-trust-kicker {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gp-primary);
  margin-bottom: 0.35rem;
}

.wf-trust-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.wf-trust-text {
  font-size: 0.95rem;
  color: var(--gp-text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.wf-trust-badges {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wf-trust-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gp-secondary);
}

.wf-badge-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #10b981;
  color: #ffffff;
  font-size: 0.75rem;
}

.wf-authors-heading {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--gp-border);
  padding-bottom: 0.5rem;
}

.wf-authors-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.wf-author-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wf-author-mini-avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gp-border);
}

.wf-author-mini-initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--gp-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.wf-author-name {
  display: block;
  font-size: 0.95rem;
  color: var(--gp-secondary);
}

.wf-author-role {
  font-size: 0.8125rem;
  color: var(--gp-text-muted);
}

/* 9. NEWSLETTER CALLOUT */
.wf-newsletter-card {
  background: linear-gradient(135deg, var(--gp-secondary) 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--gp-radius-lg);
  padding: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.wf-newsletter-title {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.wf-newsletter-desc {
  color: #94a3b8;
  font-size: 1rem;
  max-width: 500px;
  margin: 0;
}

.wf-newsletter-form {
  display: flex;
  gap: 0.75rem;
  flex: 1;
  max-width: 460px;
}

.wf-newsletter-input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border-radius: var(--gp-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
}

.wf-newsletter-input:focus {
  border-color: var(--gp-primary);
}

.wf-newsletter-btn {
  padding: 0.85rem 1.75rem;
  border-radius: var(--gp-radius-sm);
  background-color: var(--gp-primary);
  color: #ffffff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.wf-newsletter-btn:hover {
  background-color: var(--gp-primary-hover);
}

/* 10. SINGLE POST E-E-A-T CARD */
.wf-author-eeat-card {
  margin: 3rem 0;
  padding: 2rem;
  background-color: var(--gp-surface);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-subtle);
}

.wf-author-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.wf-author-avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gp-border);
}

.wf-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.wf-author-title {
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}

.wf-author-creds {
  font-size: 0.85rem;
  color: var(--gp-text-muted);
  margin: 0;
}

.wf-author-bio {
  font-size: 0.95rem;
  color: var(--gp-text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.wf-editorial-guarantee {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gp-text-muted);
  border-top: 1px solid var(--gp-border);
  padding-top: 1rem;
}

.wf-guarantee-icon {
  color: #10b981;
  font-weight: 700;
}

/* 11. FOOTER BAR */
.wf-custom-footer-bar {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--gp-text-muted);
}

.wf-footer-brand {
  margin-bottom: 0.5rem;
}

.wf-footer-disclaimer {
  max-width: 650px;
  margin: 0 auto 1rem;
  font-size: 0.8rem;
  opacity: 0.8;
}

.wf-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.wf-footer-links a {
  color: var(--gp-text-muted);
}

.wf-footer-links a:hover {
  color: var(--gp-primary);
}

.wf-dot {
  opacity: 0.4;
}

/* 12. MOBILE NAVIGATION DRAWER */
.wf-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 999999;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
}

.wf-mobile-drawer.active {
  visibility: visible;
  opacity: 1;
}

.wf-drawer-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.wf-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 380px;
  background-color: var(--gp-surface);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.wf-mobile-drawer.active .wf-drawer-panel {
  transform: translateX(0);
}

.wf-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--gp-border);
}

.wf-drawer-logo {
  font-family: var(--gp-font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gp-secondary);
}

.wf-drawer-close {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--gp-text-muted);
  cursor: pointer;
}

.wf-drawer-body {
  padding: 1.5rem;
}

.wf-drawer-search input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--gp-radius-sm);
  border: 1px solid var(--gp-border);
  margin-bottom: 1.5rem;
  outline: none;
}

.wf-drawer-nav-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gp-text-muted);
  margin-bottom: 0.75rem;
}

.wf-drawer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wf-drawer-nav li {
  margin-bottom: 0.5rem;
}

.wf-drawer-nav a {
  display: block;
  padding: 0.65rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gp-secondary);
  border-radius: var(--gp-radius-sm);
}

.wf-drawer-nav a:hover {
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--gp-primary);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (100% Mobile & Tablet Optimization)
   ========================================================================== */
@media (max-width: 1024px) {
  .wf-featured-grid {
    grid-template-columns: 1fr;
  }
  .wf-sub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wf-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wf-trust-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .wf-newsletter-card {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem;
  }
  .wf-newsletter-desc {
    margin: 0 auto;
  }
  .wf-newsletter-form {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .wf-mobile-menu-toggle {
    display: flex;
  }
  .wf-nav-cta-btn {
    display: none;
  }
  .wf-sub-grid {
    grid-template-columns: 1fr;
  }
  .wf-pillars-grid {
    grid-template-columns: 1fr;
  }
  .wf-hero-search-form {
    flex-direction: column;
  }
  .wf-hero-search-submit {
    width: 100%;
  }
  .wf-trust-card {
    padding: 1.75rem;
  }
  .wf-newsletter-form {
    flex-direction: column;
  }
  .wf-newsletter-btn {
    width: 100%;
  }
}
