# -------------------------------------------------------------------
# OPERATING SYSTEM FILES
# -------------------------------------------------------------------
# macOS
.DS_Store
.AppleDouble
.LSOverride
.Spotlight-V100
.Trashes
._*
.fseventsd

# Windows
Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/
*.cab
*.msi
*.msm
*.msp
*.lnk

# Linux
*~
.directory
*.swp
*.swo
*.pid
.session
.viminfo

# Cross-platform
.nfs*
*.lock
*.pid
*.seed
*.pid.lock

# -------------------------------------------------------------------
# IDE AND EDITOR CONFIGURATIONS
# -------------------------------------------------------------------
# VS Code
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.vscode/*.code-workspace

# IntelliJ IDEA
.idea/
*.iml
*.iws
*.ipr
modules.xml
workspace.xml

# Eclipse
.project
.classpath
.settings/
.cache/
.metadata/
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties

# Sublime Text
*.sublime-workspace
*.sublime-project
*.sublime-gps
*.sublime-gps-cache

# Atom
.atom/
.atomic/
.blobs/
.compile-cache/
.node-gyp/
.npm/
.snap/
.storage/

# Emacs
*~
\#*\#
.\#*
auto-save-list
tramp
.#*

# Vim
*.swp
*.swo
*.un~
Session.vim
.netrwhist

# -------------------------------------------------------------------
# NODE.JS AND JAVASCRIPT
# -------------------------------------------------------------------
# Dependencies
node_modules/
.node_modules/
npm-packages-offline-cache/

# Logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
pnpm-debug.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Coverage directory used by tools like istanbul
coverage/
.nyc_output/

# Grunt intermediate storage
.grunt

# Bower dependency directory
bower_components/

# Yarn Integrity file
.yarn-integrity

# Yarn 2/3
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
.pnp.*
.yarnrc.yml

# pnpm
node_modules/.pnpm-store/
pnpm-lock.yaml

# Turbo
.turbo/

# -------------------------------------------------------------------
# REACT NATIVE SPECIFIC
# -------------------------------------------------------------------
.expo/
.expo-shared/
.expo-cache/
.expo-web-cache/

# Metro bundler cache
.rn-cache/
.metrobundler/
.metro/
metro.config.js.timestamp
metro-cache/
.haste-map-*
.haste-cache/

# React Native CLI
.react-native/
.rncli/

# Build artifacts
.release-please-manifest.json
.release-it.json
.changelog/

# Hermes debugger
.hermes/

# Fastlane
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output

# -------------------------------------------------------------------
# ANDROID (Comprehensive)
# -------------------------------------------------------------------
# Build
android/**/build/
android/**/.cxx/
android/**/.gradle/
android/**/.idea/
android/**/local.properties
android/**/*.iml
android/**/*.iws
android/**/*.ipr

# Generated files
android/**/generated/
android/**/intermediates/
android/**/outputs/
android/**/tmp/
android/**/.apt_generated/

# Keystores and certificates
android/**/*.keystore
android/**/*.jks
android/**/*.pk8
android/**/*.pem
android/**/*.der
android/**/*.pfx
android/**/*.p12
android/**/debug.keystore
android/**/release.keystore

# Gradle
android/**/.gradle/
android/**/gradle/
android/**/gradlew
android/**/gradlew.bat
android/**/gradle/wrapper/gradle-wrapper.jar
android/**/gradle/wrapper/gradle-wrapper.properties
android/**/caches/
android/**/wrapper/dists/

# Android Studio
android/**/.android/
android/**/captures/
android/**/*.hprof

# NDK
android/**/.externalNativeBuild/
android/**/obj/
android/**/libs/
android/**/jniLibs/
android/**/*.so
android/**/*.o
android/**/*.a

# Autolinking
android/**/src/main/java/com/facebook/react/
android/**/src/main/jni/

# CMake
android/**/.cxx/
android/**/CMakeFiles/
android/**/CMakeCache.txt
android/**/cmake_install.cmake
android/**/Makefile
android/**/*.ninja
android/**/.ninja_deps
android/**/.ninja_log
android/**/compile_commands.json

# -------------------------------------------------------------------
# iOS (Comprehensive)
# -------------------------------------------------------------------
# Build
ios/**/build/
ios/**/DerivedData/
ios/**/xcuserdata/
ios/**/.xcode/

# Xcode
*.xcodeproj/*
!*.xcodeproj/project.pbxproj
!*.xcodeproj/xcshareddata/
!*.xcodeproj/xcshareddata/xcschemes/
*.xcodeproj/xcuserdata/
*.xcodeproj/project.xcworkspace/xcuserdata/
*.xcodeproj/xcshareddata/IDEWorkspaceChecks.plist

# Xcode workspaces
*.xcworkspace/*
!*.xcworkspace/contents.xcworkspacedata
*.xcworkspace/xcuserdata/

# CocoaPods
ios/**/Pods/
Podfile.lock
ios/**/Podfile.lock
ios/**/Manifest.lock
ios/**/Podfile.local

# Carthage
Carthage/
ios/**/Carthage/

# Swift Package Manager
.swiftpm/
Package.resolved
ios/**/.build/
ios/**/.swiftpm/

# Swift/Objective-C precompiled headers
*.pch
*.gch

# Compiled sources
*.o
*.obj
*.dylib
*.framework
*.app
*.ipa
*.dSYM
*.bcsymbolmap

# App-specific
ios/**/app-tvos.app
ios/**/app-tvostests.xctest
ios/**/app.app
ios/**/appTests.xctest
ios/**/*.mode1v3
ios/**/*.mode2v3
ios/**/*.moved-aside
ios/**/*.pbxuser
!ios/**/default.pbxuser
ios/**/*.perspectivev3

# Playgrounds
*.playground/

# SwiftLint
.swiftlint.yml

# -------------------------------------------------------------------
# WEB PLATFORM
# -------------------------------------------------------------------
# Next.js
.next/
out/
.next/cache/

# Nuxt.js
.nuxt/
.nuxt-prod/

# Gatsby
.cache/
public

# Angular
dist/
aot/
**/node_modules/

# Vue
dist/

# Svelte
.svelte-kit/
/build/

# Parcel
.parcel-cache/
dist/

# Webpack
.webpack/
webpack-assets.json
stats.json

# Rollup
rollup.config-*.js

# Vite
dist/
*.local

# Serverless
.serverless/
.serverless_nextjs/

# -------------------------------------------------------------------
# TESTING AND CODE QUALITY
# -------------------------------------------------------------------
# Jest
coverage/
.nyc_output/
*.lcov
jest-coverage/
__snapshots__/
*.snap

# Cypress
cypress/videos/
cypress/screenshots/
cypress/downloads/
cypress/fixtures/example.json

# Playwright
playwright-report/
test-results/
playwright/.cache/

# Detox
artifacts/
*.detoxrc.js

# Code coverage
.clover
cobertura.xml
*.gcda
*.gcno
*.lcov

# Linters
.eslintcache
.stylelintcache
.tsbuildinfo

# -------------------------------------------------------------------
# TYPE/FLOW/JAVASCRIPT COMPILATION
# -------------------------------------------------------------------
# TypeScript
*.tsbuildinfo
dist-tsc/
.build/
*.d.ts
*.js.map
*.ts.map

# Flow
.flowconfig
.flow-typed/

# Babel
*.babelcache
lib-cov/

# SWC
.swc/

# -------------------------------------------------------------------
# ENVIRONMENT AND CONFIGURATION
# -------------------------------------------------------------------
# Environment variables
.env
.env.*
!.env.example
.env.local
.env.development
.env.production
.env.test
.env.staging
.env.ci

# Firebase
.firebase/
.firebaserc

# Docker
.dockerignore
docker-compose.override.yml
docker-compose.*.yml
docker-compose.yml

# CI/CD
.circleci/config.yml
.github/workflows/
.gitlab-ci.yml
.jenkins/
.travis.yml
.azure-pipelines/
appveyor.yml
.codeship/
.shippable.yml
.semaphore/
.buildkite/

# -------------------------------------------------------------------
# DATABASES AND STORAGE
# -------------------------------------------------------------------
# SQLite
*.db
*.db-journal
*.sqlite
*.sqlite3

# Realm
*.realm
*.realm.*

# WatermelonDB
*.watermelondb

# PouchDB
_pouch_

# LocalStorage backups
*.localstorage
*.localstorage-journal

# -------------------------------------------------------------------
# MEDIA AND ASSETS (GENERATED/COMPRESSED)
# -------------------------------------------------------------------
# Images (generated/compressed)
*.jpg
*.jpeg
*.gif
*.webp
*.ico
*.bmp
*.tiff

# Videos
*.mp4
*.mov
*.avi
*.mkv

# Audio
*.mp3
*.wav
*.ogg

# Fonts (generated)
*.ttf
*.otf
*.woff
*.woff2
*.eot

# Archives
*.zip
*.tar
*.gz
*.bz2
*.7z
*.rar

# -------------------------------------------------------------------
# DOCUMENTATION
# -------------------------------------------------------------------
_site/
docs/_build/
docs/_site/
docs/api/
docs/coverage/
docs/build/
docs/dist/

# MkDocs
site/

# JSDoc
out-jsdoc/

# Docusaurus
.docusaurus/
build/

# -------------------------------------------------------------------
# PACKAGE MANAGERS AND LOCKFILES
# -------------------------------------------------------------------
package-lock.json
yarn.lock
pnpm-lock.yaml
shrinkwrap.yaml
npm-shrinkwrap.json

# Ruby
Gemfile.lock
.bundle/
vendor/bundle/

# Python
Pipfile.lock
__pycache__/
*.pyc
*.pyo
*.pyd
.python-version

# Go
go.sum
go.mod
vendor/

# Rust
Cargo.lock
target/

# -------------------------------------------------------------------
# LOGS AND TEMPORARY FILES
# -------------------------------------------------------------------
logs/
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
firebase-debug.log*
metro-bundler-*.log

# Temporary files
tmp/
temp/
*.tmp
*.temp
*.bak
*.backup
*.old

# Crash logs
*.crash
*.error
*.dump

# Performance logs
*.perf
*.profile
*.heapsnapshot

# -------------------------------------------------------------------
# MISC DEVELOPMENT FILES
# -------------------------------------------------------------------
# Storybook
.storybook/
storybook-static/

# Chromatic
.chromatic/

# Sentry
.sentry/
.sentryclirc

# Mixpanel
.mixpanel/

# Analytics
.amplify/
.aws/

# ML/AI
*.pt
*.pth
*.h5
*.keras
.tensorflow/

# -------------------------------------------------------------------
# EXCEPTIONS (MUST BE KEPT IN REPO)
# -------------------------------------------------------------------
# IMPORTANT: These files SHOULD be committed
!android/app/src/main/assets/
!android/app/src/main/res/
!android/app/src/main/java/com/app/
!android/app/src/main/AndroidManifest.xml
!android/app/src/main/res/values/strings.xml
!android/app/src/main/res/values/styles.xml
!android/app/build.gradle
!android/build.gradle
!android/settings.gradle
!android/gradle.properties
!android/gradlew
!android/gradlew.bat
!android/gradle/wrapper/gradle-wrapper.jar
!android/gradle/wrapper/gradle-wrapper.properties

!ios/app/
!ios/App/
!ios/app.xcodeproj/project.pbxproj
!ios/app.xcodeproj/xcshareddata/xcschemes/app.xcscheme
!ios/app/AppDelegate.swift
!ios/app/Info.plist
!ios/app/Assets.xcassets/
!ios/app/LaunchScreen.storyboard
!ios/Podfile

!src/
!App.js
!App.tsx
!index.js
!index.ts
!app.json
!babel.config.js
!metro.config.js
!jest.config.js
!tsconfig.json
!.eslintrc.js
!.prettierrc.js
!.watchmanconfig
!.bundle/config
!Gemfile
!__tests__/
!package.json

!README.md
!LICENSE
!CHANGELOG.md
!CONTRIBUTING.md
!SECURITY.md
!CODE_OF_CONDUCT.md

# Git itself (but allow .git directory)
!.git/
!.git/**

# -------------------------------------------------------------------
# PRODUCTION-SPECIFIC IGNORES
# -------------------------------------------------------------------
# Source maps (can be generated during build)
*.map

# Bundle files (generated during build)
*.bundle
*.jsbundle

# Hermes bytecode
*.hbc

# App binaries
*.apk
*.aab
*.ipa
*.app
*.dmg

# App signing
*.mobileprovision
*.p12
*.cer

# Crashlytics
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Google Services
google-services.json
GoogleService-Info.plist

# Microsoft App Center
appcenter-config.json

# OneSignal
OneSignal.plugin

# RevenueCat
RevenueCat.plugin

# -------------------------------------------------------------------
# SECURITY-CRITICAL FILES (NEVER COMMIT)
# -------------------------------------------------------------------
# API Keys
*.apikey
*.apisecret
*.secret
*.token
*.credential

# SSH Keys
*.pem
*.key
*.pub
id_rsa
id_dsa
*.ppk

# Certificates
*.crt
*.cert
*.pfx
*.p12

# Passwords
*.password
*.pass
*.pwd

# Configuration with secrets
config.local.*
secret.*
private.*
prod.*
staging.*
