@extends('layouts.app')

@section('title', 'Manual de Usuario - OnAPB')

@section('content')
<div class="container mt-4 mb-5">
    <div class="row">
        <div class="col-lg-10 mx-auto">
            <div class="d-flex justify-content-between align-items-center mb-4 pb-3 border-bottom">
                <div>
                    <span class="text-primary fw-bold text-uppercase small d-block mb-1">Centro de Ayuda</span>
                    <h1 class="display-5 fw-bold mb-0">Manual de Usuario<span class="text-primary">.</span></h1>
                </div>
                <div class="d-flex gap-2">
                    <a href="{{ route('documentacion.download') }}" class="btn btn-primary d-flex align-items-center">
                        <i class="bi bi-file-earmark-pdf-fill me-2"></i> Descargar PDF
                    </a>
                </div>
            </div>

            <div class="card shadow-sm border-0" style="border-radius: var(--radius-lg); overflow: hidden;">
                <div class="card-body p-4 p-md-5 bg-white doc-content">
                    {!! $content !!}
                </div>
            </div>

            <div class="mt-5 p-4 rounded bg-light border">
                <div class="row align-items-center">
                    <div class="col-md-1">
                        <i class="bi bi-info-circle-fill text-primary" style="font-size: 2rem;"></i>
                    </div>
                    <div class="col-md-11">
                        <h5 class="fw-bold mb-1">¿Necesitás más ayuda?</h5>
                        <p class="mb-0 text-muted">Si tenés dudas técnicas o problemas con el sistema, contactá con el administrador de tu club o con la mesa de ayuda de la APB.</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<style>
    .doc-content h1, .doc-content h2, .doc-content h3 {
        font-family: 'Space Grotesk', sans-serif;
        font-weight: 700;
        margin-top: 2rem;
        margin-bottom: 1rem;
        color: var(--on-surface);
    }
    .doc-content p {
        line-height: 1.8;
        color: #555;
        margin-bottom: 1.2rem;
    }
    .doc-content ul, .doc-content ol {
        margin-bottom: 1.5rem;
    }
    .doc-content li {
        margin-bottom: 0.5rem;
    }
    .doc-content code {
        background: #f8f9fa;
        padding: 0.2rem 0.4rem;
        border-radius: 4px;
        color: #b00000;
    }
    .doc-content img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        margin: 1rem 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
</style>
@endsection
