@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible+Next:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Tiro+Bangla:ital@0;1&display=swap');

body { 
    font-family: 'Tiro Bangla', serif; 
    -webkit-tap-highlight-color: transparent;
    background: #f7f9fb;
    color: #191c1e;
}

h1, h2, h3, h4, h5, h6, .font-display {
    font-family: 'Atkinson Hyperlegible Next', 'Tiro Bangla', sans-serif;
}

.custom-scrollbar::-webkit-scrollbar { width: 4px; height: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #f2f4f6; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #bdc9c6; border-radius: 9999px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #6e7977; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }

.report-card { opacity: 0; }
.report-card.visible { animation: fade-in-up 0.4s ease-out forwards; }

.shimmer-bg {
    background: linear-gradient(90deg, #f2f4f6 25%, #e6e8ea 50%, #f2f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s ease-in-out infinite;
}

.hero-glow {
    background: radial-gradient(ellipse at 30% 50%, rgba(0, 92, 85, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 20%, rgba(144, 77, 0, 0.04) 0%, transparent 50%);
}

.chip-btn { transition: all 0.2s ease; }
.chip-btn:active { transform: scale(0.96); }

.modal-backdrop { transition: opacity 0.25s ease; }
.modal-card { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease; }

@media (max-width: 640px) {
    .modal-card { border-radius: 1rem 1rem 0 0; }
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}
.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid currentColor;
    animation: pulse-ring 1.5s ease-out infinite;
    opacity: 0.3;
}

@keyframes radar-ping {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 0; }
}

.report-card {
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0,92,85,0.1), 0 4px 10px -5px rgba(0,0,0,0.04);
    border-color: #b2dfdb;
}

.nav-active-indicator {
    position: relative;
}
.nav-active-indicator::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #005c55;
    border-radius: 1px;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox-overlay.active { opacity: 1; }
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    backdrop-filter: blur(8px);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

.share-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: white;
    border-radius: 1.5rem 1.5rem 0 0;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
}
.share-sheet.active { transform: translateY(0); }
.share-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.share-sheet-backdrop.active { opacity: 1; pointer-events: auto; }

.trending-card {
    transition: all 0.2s ease;
    cursor: pointer;
}
.trending-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px -3px rgba(0,0,0,0.08);
}

.skeleton-pulse {
    animation: skeleton-pulse 1.8s ease-in-out infinite;
}
@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.progress-step { transition: all 0.3s ease; }
.progress-step.active { background: #005c55; color: white; }
.progress-step.completed { background: #b3e5df; color: #005c55; }

.category-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #ba1a1a;
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
}

.flag-btn { transition: all 0.2s; }
.flag-btn:hover { transform: scale(1.1); }
.flag-btn.flagged { color: #ba1a1a !important; }
