<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Donor Guide | LifeStream Biological System</title>
    <link rel="stylesheet" href="style.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <script src="theme.js"></script>
    <script src="organism.js"></script>
    <style>
        .guide-container {
            max-width: 900px;
            margin: 100px auto;
            position: relative;
            padding: 0 20px;
        }

        .timeline-vessel {
            position: absolute;
            left: 50%;
            top: 0;
            bottom: 0;
            width: 4px;
            background: var(--outline);
            transform: translateX(-50%);
            z-index: 1;
        }

        .timeline-flow {
            position: absolute;
            left: 50%;
            top: 0;
            width: 4px;
            height: 100%;
            background: var(--accent-gradient);
            transform: translateX(-50%);
            z-index: 2;
            animation: flow-down 10s linear infinite;
            background-size: 100% 200%;
        }

        @keyframes flow-down {
            0% { background-position: 0% 0%; }
            100% { background-position: 0% 100%; }
        }

        .guide-step {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 120px;
            position: relative;
            z-index: 3;
        }

        .guide-step:nth-child(even) { flex-direction: row-reverse; }

        .step-content {
            width: 42%;
            padding: 40px;
        }

        .step-node {
            width: 60px;
            height: 60px;
            background: var(--surface);
            border: 3px solid var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            color: var(--primary);
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            box-shadow: 0 0 20px rgba(255, 77, 77, 0.3);
            background-color: var(--surface-bright);
        }

        .step-icon {
            font-size: 32px;
            color: var(--primary);
            margin-bottom: 20px;
        }

        @media (max-width: 768px) {
            .timeline-vessel, .timeline-flow, .step-node { left: 40px; transform: none; }
            .guide-step, .guide-step:nth-child(even) { flex-direction: row; padding-left: 80px; }
            .step-content { width: 100%; }
        }
    </style>
</head>
<body>
    <div class="container">
        <nav>
            <div class="logo">LifeStream</div>
            <button class="nav-toggle" onclick="toggleMenu()">
                <i class="fas fa-bars"></i>
            </button>
            <ul class="nav-links">
                <li><a href="index.html">Home</a></li>
                <li><a href="donor_guide.php" class="active">Donor Guide</a></li>
                <li><a href="availability.php">Availability</a></li>
                <li><a href="donor_registration.php">Become Donor</a></li>
                <li><a href="donor_login.php">Donor Login</a></li>
                <li><a href="request_blood.php">Request Blood</a></li>
                <li><a href="admin_login.php">Admin Login</a></li>
            </ul>
        </nav>

        <button onclick="toggleTheme()" class="theme-toggle-floating">
            <i id="theme-toggle-icon" class="fas fa-sun"></i>
        </button>

        <section class="hero">
            <h1 style="font-size: 64px;">Donor Journey</h1>
            <p>Your blood is a masterpiece of evolution. Here is how you can use it to sustain the biological rhythm of our community.</p>
        </section>

        <div class="guide-container">
            <div class="timeline-vessel"></div>
            <div class="timeline-flow"></div>

            <!-- Step 1 -->
            <div class="guide-step">
                <div class="step-content glass">
                    <div class="step-icon"><i class="fas fa-id-card"></i></div>
                    <h3>Phase I: Digital Alignment</h3>
                    <p>Enter the biological network by registering your profile. Your blood group and medical vitals are stored securely to match you with critical needs.</p>
                </div>
                <div class="step-node">01</div>
            </div>

            <!-- Step 2 -->
            <div class="guide-step">
                <div class="step-content glass">
                    <div class="step-icon"><i class="fas fa-microscope"></i></div>
                    <h3>Phase II: Precision Screening</h3>
                    <p>Check the availability dashboards to see where your specific blood group is in shortest supply. Alignment ensures maximum efficiency.</p>
                </div>
                <div class="step-node">02</div>
            </div>

            <!-- Step 3 -->
            <div class="guide-step">
                <div class="step-content glass">
                    <div class="step-icon"><i class="fas fa-map-marker-alt"></i></div>
                    <h3>Phase III: Locating Centers</h3>
                    <p>Use our real-time map to find the nearest biological donation camps or hospital units. The system tracks your proximity for urgency.</p>
                </div>
                <div class="step-node">03</div>
            </div>

            <!-- Step 4 -->
            <div class="guide-step">
                <div class="step-content glass">
                    <div class="step-icon"><i class="fas fa-tint"></i></div>
                    <h3>Phase IV: The Gift</h3>
                    <p>Present your donor ID at the specialized center. Our medical teams provide a seamless, biological-grade environment for your donation.</p>
                </div>
                <div class="step-node">04</div>
            </div>

            <!-- Step 5 -->
            <div class="guide-step">
                <div class="step-content glass">
                    <div class="step-icon"><i class="fas fa-chart-line"></i></div>
                    <h3>Phase V: Lifeline Impact</h3>
                    <p>Your blood enters the Live Flow. Track how your single donation branches out to stabilize emergency vitals across the region.</p>
                </div>
                <div class="step-node">05</div>
            </div>
        </div>

        <section class="hero" style="margin-top: 0; padding-bottom: 120px;">
            <h3>Ready to join the loop?</h3>
            <div class="hero-btns" style="margin-top: 32px;">
                <a href="donor_registration.php" class="btn btn-primary pulse">Start Registration</a>
            </div>
        </section>

        <footer>
            <p>&copy; 2026 LifeStream Biological Management System. All visual data secured at the molecular level.</p>
        </footer>
    </div>
</body>
</html>
