/* ============================================================
   assets/css/app.css  — HopeForward NGO Custom Styles
   ============================================================ */

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #16a34a; border-radius: 3px; }

/* ── Hero gradient overlays ── */
.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(14,66,30,0.85) 0%,
        rgba(22,163,74,0.70) 50%,
        rgba(14,66,30,0.80) 100%
    );
}

/* ── Animated gradient background ── */
.gradient-bg {
    background: linear-gradient(135deg, #14532d 0%, #166534 30%, #15803d 60%, #16a34a 100%);
    background-size: 300% 300%;
    animation: gradientShift 10s ease infinite;
}
@keyframes gradientShift {
    0%  { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100%{ background-position: 0% 50%; }
}

/* ── Counter number animation ── */
.stat-number { transition: all 0.3s ease; }

/* ── Card hover lift ── */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* ── Gallery grid ── */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.gallery-item img,
.gallery-item .gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img,
.gallery-item:hover .gallery-thumb { transform: scale(1.08); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── Step circles ── */
.step-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px rgba(22,163,74,0.4);
    flex-shrink: 0;
}

/* ── Wallet card ── */
.wallet-card {
    background: linear-gradient(135deg, #14532d, #16a34a);
    border-radius: 16px;
    padding: 28px;
    color: white;
    position: relative;
    overflow: hidden;
}
.wallet-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.wallet-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -20px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

/* ── Table ── */
.data-table th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 12px 16px;
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; }
.data-table tr:hover td { background: #f8fafc; }

/* ── Status badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-approved,
.badge-credited { background: #dcfce7; color: #166534; }
.badge-rejected,
.badge-cancelled{ background: #fee2e2; color: #991b1b; }
.badge-active   { background: #dcfce7; color: #166534; }
.badge-inactive { background: #f1f5f9; color: #64748b; }

/* ── Form inputs ── */
.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: #1e293b;
}
.form-input:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}

/* ── Section headings ── */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dcfce7;
    color: #15803d;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

/* ── Reveal animations ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Referral code box ── */
.referral-box {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px dashed #86efac;
    border-radius: 12px;
    padding: 16px 24px;
    text-align: center;
}

/* ── Admin sidebar ── */
.admin-sidebar { min-height: 100vh; background: #0f172a; }
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-radius: 10px;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 2px;
}
.admin-nav-link:hover, .admin-nav-link.active {
    background: rgba(22,163,74,0.15);
    color: #4ade80;
}
.admin-nav-link i { width: 20px; text-align: center; }

/* ── Spinner ── */
.btn-spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Floating particles (hero) ── */
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    animation: float linear infinite;
    pointer-events: none;
}
@keyframes float {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    10%  { opacity: 0.4; }
    90%  { opacity: 0.2; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* ── Print ── */
@media print {
    nav, footer, #mobile-menu { display: none !important; }
}
