/* رفیق شهید | خراسان جنوبی — design system (extracted from the original SPA) */

* { font-family: 'Vazirmatn', sans-serif; box-sizing: border-box; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #040810; }
::-webkit-scrollbar-thumb { background: #1a2544; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #c8a44e; }

/* Glass surfaces */
.glass { background: rgba(255,255,255,0.04); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.06); }
.glass-gold { background: rgba(200,164,78,0.06); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(200,164,78,0.15); }
.glass-strong { background: rgba(255,255,255,0.08); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border: 1px solid rgba(255,255,255,0.1); }

/* Glows */
.gold-glow { box-shadow: 0 0 40px rgba(200,164,78,0.15), 0 0 80px rgba(200,164,78,0.05); }
.gold-text-glow { text-shadow: 0 0 40px rgba(200,164,78,0.3); }
.emr-glow { box-shadow: 0 0 30px rgba(26,122,90,0.2); }

/* Animations */
@keyframes fadeInUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }
@keyframes pulse-gold { 0%,100% { box-shadow: 0 0 0 0 rgba(200,164,78,0.4); } 50% { box-shadow: 0 0 0 15px rgba(200,164,78,0); } }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes twinkle { 0%,100% { opacity:0.3; } 50% { opacity:1; } }
@keyframes breathe { 0%,100% { transform: scale(1); opacity:0.6; } 50% { transform: scale(1.05); opacity:1; } }

.animate-fade-in-up { animation: fadeInUp 0.8s cubic-bezier(0.16,1,0.3,1) forwards; }
.animate-fade-in { animation: fadeIn 1s ease forwards; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-gold { animation: pulse-gold 2s ease-in-out infinite; }
.animate-shimmer { background: linear-gradient(90deg, transparent, rgba(200,164,78,0.1), transparent); background-size: 200% 100%; animation: shimmer 3s ease-in-out infinite; }
.animate-breathe { animation: breathe 4s ease-in-out infinite; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* Hero */
.hero-title { font-size: clamp(3rem, 10vw, 8rem); font-weight: 200; line-height: 1.1; letter-spacing: -0.02em; }
.hero-sub { font-size: clamp(1rem, 2.5vw, 1.5rem); font-weight: 300; }

/* Martyr card */
.martyr-card { transition: all 0.5s cubic-bezier(0.16,1,0.3,1); }
.martyr-card:hover { transform: translateY(-8px) scale(1.02); }
.martyr-card:hover .martyr-overlay { opacity: 1; }
.martyr-card:hover .martyr-img { transform: scale(1.08); }
.martyr-card .martyr-img { transition: transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.martyr-card .martyr-overlay { opacity: 0; transition: opacity 0.4s ease; }

/* Horizontal scroller */
.scroll-row { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 1rem; }
.scroll-row::-webkit-scrollbar { height: 4px; }
.scroll-row::-webkit-scrollbar-thumb { background: rgba(200,164,78,0.3); border-radius: 2px; }
.scroll-row > * { scroll-snap-align: start; flex-shrink: 0; }

/* Timeline */
.timeline-line { position: absolute; right: 23px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, transparent, rgba(200,164,78,0.3), rgba(200,164,78,0.1), transparent); }
.timeline-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #c8a44e; background: #070d1a; position: absolute; right: 18px; z-index: 2; }

/* Nav link underline */
.nav-link { position: relative; padding: 0.5rem 0; color: rgba(245,240,232,0.5); transition: color 0.3s; font-size: 0.875rem; font-weight: 400; }
.nav-link:hover, .nav-link.active { color: #f5f0e8; }
.nav-link::after { content:''; position:absolute; bottom:0; right:0; width:0; height:1.5px; background: linear-gradient(to left, #c8a44e, transparent); transition: width 0.4s cubic-bezier(0.16,1,0.3,1); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Buttons */
.btn-gold { background: linear-gradient(135deg, #c8a44e, #a68532); color: #040810; font-weight: 600; border-radius: 12px; padding: 0.875rem 2rem; transition: all 0.3s; position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(200,164,78,0.3); }
.btn-gold::before { content:''; position:absolute; inset:0; background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent); opacity:0; transition: opacity 0.3s; }
.btn-gold:hover::before { opacity:1; }

.btn-outline-gold { border: 1.5px solid rgba(200,164,78,0.4); color: #c8a44e; border-radius: 12px; padding: 0.875rem 2rem; transition: all 0.3s; background: transparent; display: inline-flex; align-items: center; justify-content: center; }
.btn-outline-gold:hover { background: rgba(200,164,78,0.08); border-color: #c8a44e; transform: translateY(-2px); }

/* OTP input */
.otp-input { width: 56px; height: 64px; text-align: center; font-size: 1.5rem; font-weight: 600; background: rgba(255,255,255,0.05); border: 1.5px solid rgba(255,255,255,0.1); border-radius: 16px; color: #f5f0e8; outline: none; transition: all 0.3s; direction: ltr; }
.otp-input:focus { border-color: #c8a44e; box-shadow: 0 0 20px rgba(200,164,78,0.15); background: rgba(200,164,78,0.05); }
.otp-container { direction: ltr; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 0.5rem; }

/* Generic form input */
.form-input { width: 100%; background: rgba(255,255,255,0.05); border: 1.5px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 0.75rem 1rem; color: #f5f0e8; outline: none; transition: all 0.3s; }
.form-input:focus { border-color: #c8a44e; background: rgba(200,164,78,0.05); }

/* Stats */
.stat-card { text-align: center; }
.stat-number { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; background: linear-gradient(135deg, #f0dca0, #c8a44e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Map */
.map-city { cursor: pointer; transition: all 0.3s; }
.map-city:hover { filter: drop-shadow(0 0 8px rgba(200,164,78,0.6)); }

/* Progress ring */
.progress-ring { transform: rotate(-90deg); }
.progress-ring circle { transition: stroke-dashoffset 1.5s cubic-bezier(0.16,1,0.3,1); }

/* Feed */
.feed-card { transition: all 0.3s; }
.feed-card:hover { background: rgba(255,255,255,0.06); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* Stars canvas + desert */
#stars-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.desert-silhouette { position: absolute; bottom: 0; left: 0; right: 0; z-index: 1; }

/* Frame studio */
.frame-option { cursor: pointer; border: 2px solid transparent; border-radius: 12px; transition: all 0.3s; padding: 4px; }
.frame-option:hover, .frame-option.selected { border-color: #c8a44e; }
.frame-option.selected { box-shadow: 0 0 20px rgba(200,164,78,0.2); }

.filter-option { cursor: pointer; border: 2px solid transparent; border-radius: 10px; transition: all 0.3s; padding: 2px; }
.filter-option:hover, .filter-option.selected { border-color: #c8a44e; }
.filter-option.selected { box-shadow: 0 0 20px rgba(200,164,78,0.2); }

/* Toast */
.toast { animation: fadeInUp 0.4s cubic-bezier(0.16,1,0.3,1) forwards; }

/* Friendship heart */
.friendship-heart { font-size: 3rem; cursor: pointer; transition: all 0.3s; }
.friendship-heart:hover { transform: scale(1.2); }
.friendship-heart.active { color: #c8a44e; animation: pulse-gold 2s ease-in-out infinite; }

/* Range slider */
input[type="range"] { -webkit-appearance: none; appearance: none; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #c8a44e; cursor: pointer; box-shadow: 0 0 10px rgba(200,164,78,0.4); }

/* Frame preview image filters */
.filter-sepia { filter: sepia(0.7) saturate(1.2); }
.filter-grayscale { filter: grayscale(1); }
.filter-vintage { filter: sepia(0.4) contrast(1.1) brightness(0.95) saturate(0.9); }
.filter-warm { filter: saturate(1.15) hue-rotate(-8deg) brightness(1.03); }

/* Frame borders */
.frame-gold { border: 4px solid rgba(200,164,78,0.6); box-shadow: inset 0 0 30px rgba(200,164,78,0.1), 0 0 30px rgba(200,164,78,0.1); }
.frame-ornate { border: 8px solid transparent; border-image: linear-gradient(135deg, #dbb85c, #8a6d28, #dbb85c) 1; box-shadow: 0 0 30px rgba(200,164,78,0.2); }
.frame-emerald { border: 4px solid rgba(45,158,120,0.7); box-shadow: inset 0 0 30px rgba(45,158,120,0.1), 0 0 30px rgba(45,158,120,0.15); }
.frame-silver { border: 4px solid rgba(184,173,150,0.7); box-shadow: inset 0 0 30px rgba(184,173,150,0.1), 0 0 30px rgba(184,173,150,0.15); }
.frame-wood { border: 10px solid #5a3d1e; box-shadow: 0 0 30px rgba(90,61,30,0.4), inset 0 0 20px rgba(0,0,0,0.3); }
