<x-main-inner-page 
    category="History" title="Presenters" 
    subtitle="A comprehensive directory of scholars, researchers, and professionals who have presented their findings at our conferences."
>
<!-- Intro & Filters -->
<div class="bg-white border text-center border-slate-100 rounded-2xl p-8 mb-12 shadow-sm">
    <h2 class="text-2xl font-bold text-slate-900 mb-4">Search Presenters Directory</h2>
    <div class="max-w-3xl mx-auto flex flex-col md:flex-row gap-4">
        <div class="flex-grow relative">
            <i class="fas fa-search absolute left-4 top-1/2 -translate-y-1/2 text-slate-400"></i>
            <input type="text" placeholder="Search by name, university, or research keyword..." class="w-full bg-slate-50 border border-slate-200 text-slate-800 text-sm font-medium rounded-xl pl-11 pr-4 py-3.5 focus:outline-none focus:border-brand-500 hover:border-brand-300 transition-all">
        </div>
        <select class="md:w-48 bg-slate-50 border border-slate-200 text-slate-700 text-sm font-medium rounded-xl px-4 py-3.5 focus:outline-none focus:border-brand-500 hover:border-brand-300 transition-all">
            <option>All Years</option>
            <option>2024</option>
            <option>2023</option>
            <option>2022</option>
        </select>
        <button class="bg-slate-900 hover:bg-brand-600 text-white font-bold text-sm px-6 py-3.5 rounded-xl transition-all shadow-sm shrink-0">Search</button>
    </div>
</div>

<!-- List Layout -->
<div class="space-y-4">
    @php
    $presenters = [
        ['name'=>'Dr. Michael Chang', 'affiliation'=>'National University of Singapore', 'topic'=>'AI in Sustainable Agriculture', 'conference'=>'Business & Economics 2024', 'type'=>'Oral Presentation'],
        ['name'=>'Elena Rostova', 'affiliation'=>'ETH Zurich, Switzerland', 'topic'=>'Biodegradable Polymers Synthesis', 'conference'=>'Health & Medicine 2024', 'type'=>'Poster Presentation'],
        ['name'=>'Prof. Rajesh Kumar', 'affiliation'=>'IIT Delhi, India', 'topic'=>'Socio-economic frameworks for developing nations', 'conference'=>'Social Sciences 2023', 'type'=>'Oral Presentation'],
        ['name'=>'Dr. Haruto Tanaka', 'affiliation'=>'Tokyo Institute of Technology, JP', 'topic'=>'Quantum Computing in Next-Gen Data Encryption', 'conference'=>'Education & Technology 2023', 'type'=>'Virtual Presentation'],
        ['name'=>'Sarah Johnson', 'affiliation'=>'Stanford University, USA', 'topic'=>'Climate Models Data Visualization', 'conference'=>'Health & Medicine 2022', 'type'=>'Oral Presentation'],
    ];
    @endphp

    @foreach($presenters as $p)
    <div class="bg-white border border-slate-100 rounded-2xl p-6 shadow-sm hover:shadow-md hover:border-brand-200 transition-all flex flex-col md:flex-row md:items-center gap-6 group">
        <!-- Avatar Placeholder -->
        <div class="w-16 h-16 rounded-full bg-brand-50 text-brand-600 flex items-center justify-center font-bold text-xl shrink-0">
            {{ substr($p['name'], 0, 1) }}
        </div>
        
        <div class="flex-grow">
            <div class="flex flex-col md:flex-row md:items-center gap-2 mb-1">
                <h3 class="text-lg font-bold text-slate-900 group-hover:text-brand-600 transition-colors">{{ $p['name'] }}</h3>
                <span class="hidden md:block text-slate-300">•</span>
                <p class="text-sm font-medium text-slate-500"><i class="fas fa-university text-slate-300"></i> {{ $p['affiliation'] }}</p>
            </div>
            <p class="text-slate-800 text-sm mb-3">"{!! $p['topic'] !!}"</p>
            <div class="flex flex-wrap gap-2">
                <span class="bg-slate-100 text-slate-600 text-xs font-bold uppercase tracking-wider px-2.5 py-1 rounded-md">{{ $p['conference'] }}</span>
                <span class="bg-blue-50 border border-blue-100 text-blue-600 text-xs font-bold uppercase tracking-wider px-2.5 py-1 rounded-md">{{ $p['type'] }}</span>
            </div>
        </div>
        
        <div class="shrink-0 pt-4 md:pt-0 border-t md:border-t-0 md:border-l border-slate-100 md:pl-6">
            <a href="#" class="inline-flex items-center justify-center w-full md:w-auto px-5 py-2.5 bg-white border border-slate-200 hover:border-brand-400 hover:text-brand-600 text-slate-600 font-bold text-sm rounded-xl transition-all"><i class="fas fa-file-pdf mr-2"></i> Abstract</a>
        </div>
    </div>
    @endforeach
</div>

<div class="mt-10 text-center">
    <button class="px-8 py-3 bg-white border border-slate-200 text-slate-600 font-bold rounded-xl shadow-sm hover:border-brand-500 hover:text-brand-600 transition-colors text-sm">Load More Results</button>
</div>
</x-main-inner-page>