/* ===================================================
   BloodWaly — MEWA Foundation Blood Gateway Styles
   Apple Liquid Glassmorphism + Blood Red Accent
   Language: Standard English (LTR)
   =================================================== */

/* --- 1. Variables --- */
:root {
    --blood-red: #dc2626;
    --blood-red-deep: #b91c1c;
    --blood-red-glow: rgba(220, 38, 38, 0.35);
    --blood-red-soft: rgba(220, 38, 38, 0.12);
    --emerald: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.3);
    --amber-warm: #f59e0b;

    --bg-dark: #0a0a0a;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-hover: rgba(255, 255, 255, 0.12);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glass-hover: rgba(255, 255, 255, 0.22);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --radius-xl: 1.75rem;
    --radius-lg: 1.25rem;
    --radius-md: 1rem;
    --radius-full: 9999px;

    --blur: blur(20px);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 2. Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    direction: ltr;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- 3. Blood Mesh Background --- */
.blood-mesh {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 30%, rgba(220, 38, 38, 0.22), transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(185, 28, 28, 0.16), transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.08), transparent 35%);
    filter: blur(60px);
    opacity: 0.9;
    animation: bloodPulse 15s ease-in-out infinite alternate;
}

@keyframes bloodPulse {
    0% { transform: scale(1); filter: blur(60px); }
    50% { transform: scale(1.08); filter: blur(75px); }
    100% { transform: scale(1); filter: blur(60px); }
}

/* --- 4. Header --- */
.blood-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: var(--blur) saturate(180%);
    -webkit-backdrop-filter: var(--blur) saturate(180%);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.85rem 0;
}

.blood-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.header-brand img {
    border-radius: 10px;
}

.header-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
    background: var(--surface);
    transition: var(--transition);
}

.header-back:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
    border-color: var(--border-glass-hover);
}

/* --- 5. Hero --- */
.blood-hero {
    padding: 8.5rem 0 3rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.25rem;
    background: var(--blood-red-soft);
    border: 1px solid rgba(220, 38, 38, 0.28);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: #fca5a5;
    margin-bottom: 1.5rem;
}

.hero-badge i {
    color: var(--blood-red);
}

.blood-hero h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    background: linear-gradient(135deg, #ffffff 0%, #fca5a5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- 6. Gateway Cards --- */
.blood-gateway {
    padding: 2.5rem 0 4.5rem;
}

.gateway-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.gateway-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3.25rem 2.25rem 2.75rem;
    background: var(--surface);
    backdrop-filter: var(--blur) saturate(180%);
    -webkit-backdrop-filter: var(--blur) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.gateway-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glass-hover);
}

.gateway-card:active {
    transform: scale(0.97);
}

.card-glow {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.gateway-card:hover .card-glow {
    opacity: 0.45;
}

.donate-glow {
    background: var(--emerald);
}

.need-glow {
    background: var(--blood-red);
}

.card-donate:hover {
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 20px 60px -15px rgba(16, 185, 129, 0.25);
}

.card-need:hover {
    border-color: rgba(220, 38, 38, 0.35);
    box-shadow: 0 20px 60px -15px rgba(220, 38, 38, 0.25);
}

.card-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    font-size: 1.85rem;
}

.card-donate .card-icon {
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.card-need .card-icon {
    background: var(--blood-red-soft);
    color: var(--blood-red);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.gateway-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.card-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 380px;
    margin-bottom: 2rem;
}

.card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.card-donate .card-action {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.card-donate:hover .card-action {
    background: var(--emerald);
    color: #fff;
}

.card-need .card-action {
    background: var(--blood-red-soft);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.card-need:hover .card-action {
    background: var(--blood-red);
    color: #fff;
}

/* --- 7. Eligibility Info Grid --- */
.blood-info {
    padding: 4rem 0;
}

.info-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.info-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2.75rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.info-card {
    text-align: center;
    padding: 2.25rem 1.25rem;
    background: var(--surface);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-4px);
}

.info-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--blood-red-soft);
    color: #f87171;
    font-size: 1.35rem;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.info-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- 8. Trust Section --- */
.blood-trust {
    padding: 3rem 0 4.5rem;
}

.trust-content {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
    padding: 3.5rem 2.5rem;
    background: var(--surface);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
}

.trust-content h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.trust-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.25rem;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: #6ee7b7;
}

.badge i {
    font-size: 0.85rem;
}

/* --- 9. Footer --- */
.blood-footer {
    padding: 2.25rem 0;
    border-top: 1px solid var(--border-glass);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    text-align: center;
}

.footer-inner img {
    border-radius: 8px;
}

.footer-inner p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.35rem 1rem;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.footer-home:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}

/* --- 10. Responsive --- */
@media (max-width: 768px) {
    .blood-header {
        padding: 0.5rem 0;
    }
    .header-brand {
        font-size: 1rem;
        gap: 0.5rem;
    }
    .header-brand img {
        width: 34px;
        height: 34px;
    }
    .header-back {
        padding: 0.35rem 0.75rem;
        font-size: 0.82rem;
    }
    .blood-hero {
        padding: 5.2rem 0 2rem;
    }

    .blood-hero h1 {
        font-size: 2.5rem;
    }

    .gateway-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .gateway-card {
        padding: 2.5rem 1.5rem 2rem;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-content {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .gateway-card h2 {
        font-size: 1.5rem;
    }

    .trust-content h2 {
        font-size: 1.6rem;
    }
}


/* Breadcrumb Navigation (Universal for Blood Portals) */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.breadcrumb-nav ol {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumb-nav li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.55);
}

.breadcrumb-nav li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-nav li a:hover {
    color: #10b981;
}

.breadcrumb-nav .separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}

.breadcrumb-nav .current {
    color: #ef4444;
    font-weight: 500;
}

.context-link {
    color: #10b981;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 0.25rem;
    transition: color 0.2s ease;
}

.context-link:hover {
    color: #34d399;
}
