@extends('layouts.app')

@section('page-title', 'Submit - ' . config('app.name'))

@section('content')

{{ \Diglactic\Breadcrumbs\Breadcrumbs::render() }}
<div class="page-title">Submit content</div>

<div class="submit-body">

    <div class="submit-section-label">Entries</div>

    <div class="submit-grid">

        @foreach($entryTypes as $type)
            <a href="{{ route('submit.create', ['section' => $type['slug']]) }}"
               class="submit-card"
               style="--card-color: {{ $type['color'] }}; --card-bg: {{ $type['bg'] }}; --card-border: {{ $type['border'] }}">
                <div class="submit-card-top">
                    <div class="submit-card-icon">
                        <i data-lucide="{{ $type['icon'] }}" size="17"></i>
                    </div>
                    <div class="submit-card-info">
                        <div class="submit-card-title">{{ $type['label'] }}</div>
                    </div>
                </div>
                <div class="submit-card-bottom">
                    <span class="submit-card-cta">
                        Submit <i data-lucide="arrow-right" size="11"></i>
                    </span>
                </div>
            </a>
        @endforeach

    </div>

    <div class="submit-section-label">News</div>

    <div class="submit-news-row" style="display:flex;align-items: center;justify-content: center">
        <a href="{{ route('news.create') }}" class="submit-news-card">
            <div class="submit-news-icon">
                <i data-lucide="newspaper" size="17"></i>
            </div>
            <div class="submit-news-info">
                <div class="submit-news-title">News article</div>
            </div>
            <span class="submit-news-cta">
                Submit <i data-lucide="arrow-right" size="11"></i>
            </span>
        </a>
    </div>

    <div class="submit-section-label">Rules</div>

    <div class="submit-rules">
        <div class="submit-rule">
            <span class="submit-rule-num">1</span>
            <p><strong>One entry per submission.</strong> Do not bundle multiple hacks or versions in a single form.</p>
        </div>
        <div class="submit-rule">
            <span class="submit-rule-num">2</span>
            <p><strong>You must be the author</strong> or have explicit permission from the original creator.</p>
        </div>
        <div class="submit-rule">
            <span class="submit-rule-num">3</span>
            <p><strong>Patch files only.</strong> Never upload ROM files — attach an IPS, BPS or xdelta patch.</p>
        </div>
    </div>

</div>

@endsection
