# ------------------------------------
# 1. Project-wide Secrets and Config
# ------------------------------------

# Environment/Secrets files
.env
.env_shared
*/.env
*/.env.*

# Local Certificate files
nginx/certs/

# Docker volumes
pgdata/

# ------------------------------------
# 2. Go (Backend)
# ------------------------------------

# Compiled binaries
backend/bin/
backend/vendor/

# macOS/Linux standard binary names
backend/app
backend/main

# Catch-all: any ELF/Mach-O binary in backend/ (go build, go test -c)
backend/crussell
backend/*.test

# Dependency management cache
backend/.DS_Store

# Go build cache
.cache/

# Go test outputs
*.out
!go.mod
!go.sum

# ------------------------------------
# 3. Node/Svelte (Frontend)
# ------------------------------------

# Dependencies
frontend/node_modules
frontend/package-lock.json

# SvelteKit/Vite build artifacts and cache
frontend/.svelte-kit
frontend/.vite
frontend/.svelte2tsx-language-server-files
frontend/build/
frontend/dist/
frontend/static/portfolio/*

# ------------------------------------
# 4. PHP/SabreDAV
# ------------------------------------

# Composer dependencies
sabredav/vendor/
composer.lock

# ------------------------------------
# 5. Local Tools and Notes
# ------------------------------------

# Bruno testing environments (keep collection files, ignore secrets)
bruno/*/environments/

# IDE files (e.g., VS Code)
.vscode/

# OS-generated files
.DS_Store
.Trash/
Thumbs.db

# ------------------------------------
# Git-specific
# ------------------------------------
*.orig  # Git merge conflict files

# ------------------------------------
# Database dumps/backups
# ------------------------------------
*.sql.gz
*.dump

# ------------------------------------
# Nginx
# ------------------------------------
nginx/logs/
nginx/*.log

# Temp files
frontend/node_modules/.vite-temp
