$cssPath = "site\assets\style.css"
$css = Get-Content $cssPath -Raw

# 1. Fix the pulseGlow definition and the floating keyframes
$css = $css -replace '(?s)@keyframes pulseGlow\s*\{.*?\}\s*70%\s*\{.*?\}\s*100%\s*\{.*?\}\s*\}', '@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(16, 219, 136, 0.9); }
    50% { box-shadow: 0 0 18px 6px rgba(16, 219, 136, 0.75); }
    100% { box-shadow: 0 0 0 0 rgba(16, 219, 136, 0); }
}'

# 2. Fix the broken .card:hover definition
$css = $css -replace '(?s)\.card,\s*\.tool-card,\s*\.article-card\s*\{[^}]*\}\s*\.card:hover,\s*/\* --- GOOGLE ADS', '.card, .tool-card, .article-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover, .tool-card:hover, .article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
/* --- GOOGLE ADS'

Set-Content -Path $cssPath -Value $css -Encoding UTF8
Write-Host "Fixed syntax errors at the end of style.css."
