@extends('app')

@section('title', 'Ressources - (RE)Sources Relationnelles')

@section('content')
    <section class="container mx-auto px-4 py-12">
        <div class="text-center mb-12">
            <h1 class="text-4xl font-extrabold mb-4">Catalogue des <span class="text-niagara">Ressources</span></h1>
            <p class="text-gray-600 max-w-2xl mx-auto">Accédez à des outils et conseils pour renforcer vos liens. Filtrez les ressources selon vos besoins.</p>
        </div>

        <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-200 mb-10">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-4">
                <div class="md:col-span-1">
                    <label class="block text-xs font-bold uppercase text-gray-500 mb-2">Rechercher</label>
                    <input type="text" placeholder="Ex: Communication non-violente" class="w-full px-4 py-2 border rounded-lg focus:ring-2 focus:ring-niagara outline-none">
                </div>
                <div>
                    <label class="block text-xs font-bold uppercase text-gray-500 mb-2">Catégorie</label>
                    <select class="w-full px-4 py-2 border rounded-lg outline-none focus:border-niagara">
                        <option>Toutes</option>
                        <option>Communication</option>
                        <option>Développement Personnel</option>
                        <option>Gestion de conflit</option>
                    </select>
                </div>
                <div>
                    <label class="block text-xs font-bold uppercase text-gray-500 mb-2">Type de Relation</label>
                    <select class="w-full px-4 py-2 border rounded-lg outline-none focus:border-niagara">
                        <option>Toutes</option>
                        <option>Conjoints</option>
                        <option>Famille (Parents/Enfants)</option>
                        <option>Professionnelle</option>
                        <option>Amis</option>
                    </select>
                </div>
                <div>
                    <label class="block text-xs font-bold uppercase text-gray-500 mb-2">Format</label>
                    <select class="w-full px-4 py-2 border rounded-lg outline-none focus:border-niagara">
                        <option>Tous</option>
                        <option>Article</option>
                        <option>Vidéo</option>
                        <option>Activité / Jeu</option>
                    </select>
                </div>
            </div>
        </div>

        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
            
            <div class="bg-white rounded-xl border border-gray-200 overflow-hidden flex flex-col hover:shadow-xl transition-smooth">
                <div class="h-48 bg-gray-200 flex items-center justify-center text-5xl">📖</div>
                <div class="p-6 flex-grow">
                    <div class="flex justify-between items-start mb-2">
                        <span class="text-[10px] font-bold bg-gray-100 px-2 py-1 rounded uppercase">Article</span>
                        <div class="flex gap-2">
                            <button title="Ajouter aux favoris" class="text-gray-400 hover:text-red-500">❤️</button>
                            <button title="Mettre de côté" class="text-gray-400 hover:text-niagara">🔖</button>
                        </div>
                    </div>
                    <h3 class="font-bold text-xl mb-2">L'écoute active en famille</h3>
                    <p class="text-gray-600 text-sm mb-4 line-clamp-3">Découvrez comment la méthode de l'écoute active peut transformer vos échanges avec vos enfants et réduire les tensions quotidiennes.</p>
                    <div class="flex flex-wrap gap-2 mb-6">
                        <span class="text-[10px] bg-blue-50 text-blue-700 px-2 py-1 rounded font-bold uppercase">Famille</span>
                        <span class="text-[10px] bg-niagara/10 text-niagara px-2 py-1 rounded font-bold uppercase">Communication</span>
                    </div>
                </div>
                <div class="p-6 pt-0 mt-auto">
                    <a href="#" class="block text-center py-3 bg-gray-900 text-white font-bold rounded-lg hover:bg-niagara transition-smooth">Consulter la ressource</a>
                </div>
            </div>

            <div class="bg-white rounded-xl border-2 border-candlelight overflow-hidden flex flex-col hover:shadow-xl transition-smooth">
                <div class="h-48 bg-candlelight/20 flex items-center justify-center text-5xl">🎲</div>
                <div class="p-6 flex-grow">
                    <div class="flex justify-between items-start mb-2">
                        <span class="text-[10px] font-bold bg-candlelight px-2 py-1 rounded uppercase">Activité Collective</span>
                        <div class="flex gap-2 text-niagara font-bold text-xs">NOUVEAU</div>
                    </div>
                    <h3 class="font-bold text-xl mb-2">Le Jeu des Complices</h3>
                    <p class="text-gray-600 text-sm mb-4 line-clamp-3">Un jeu de cartes interactif à faire en couple ou entre amis pour redécouvrir vos forces communes et vos meilleurs souvenirs.</p>
                    <div class="flex flex-wrap gap-2 mb-6">
                        <span class="text-[10px] bg-pink-50 text-pink-700 px-2 py-1 rounded font-bold uppercase">Couple</span>
                        <span class="text-[10px] bg-niagara/10 text-niagara px-2 py-1 rounded font-bold uppercase">Jeu</span>
                    </div>
                </div>
                <div class="p-6 pt-0 mt-auto">
                    <button class="w-full py-3 bg-niagara text-white font-bold rounded-lg shadow-md hover:opacity-90 transition-smooth">Lancer l'activité</button>
                </div>
            </div>

            <div class="bg-white rounded-xl border border-gray-200 overflow-hidden flex flex-col hover:shadow-xl transition-smooth">
                <div class="h-48 bg-gray-200 flex items-center justify-center text-5xl">🎥</div>
                <div class="p-6 flex-grow">
                    <div class="flex justify-between items-start mb-2">
                        <span class="text-[10px] font-bold bg-gray-100 px-2 py-1 rounded uppercase">Vidéo</span>
                        <button title="Déjà exploitée" class="text-niagara">✅</button>
                    </div>
                    <h3 class="font-bold text-xl mb-2">Gérer les conflits au bureau</h3>
                    <p class="text-gray-600 text-sm mb-4 line-clamp-3">10 minutes pour apprendre à désamorcer une situation tendue avec un collègue sans sacrifier votre bien-être.</p>
                    <div class="flex flex-wrap gap-2 mb-6">
                        <span class="text-[10px] bg-orange-50 text-orange-700 px-2 py-1 rounded font-bold uppercase">Pro</span>
                        <span class="text-[10px] bg-niagara/10 text-niagara px-2 py-1 rounded font-bold uppercase">Médiation</span>
                    </div>
                </div>
                <div class="p-6 pt-0 mt-auto">
                    <a href="#" class="block text-center py-3 border-2 border-gray-900 text-gray-900 font-bold rounded-lg hover:bg-gray-900 hover:text-white transition-smooth">Visionner</a>
                </div>
            </div>

        </div>
    </section>
@endsection