@extends('emails.layout')

@section('content')
    @if($reminderType === '1h')
        <h1>⏰ Final Hour — Voting Closes Soon!</h1>
        <p>This is your <strong>final reminder</strong> — voting for the <strong>{{ $election->title }}</strong> election closes in approximately <strong>1 hour</strong>.</p>
    @else
        <h1>⏳ Reminder: Voting Closes Tomorrow</h1>
        <p>Don't forget to cast your vote! Voting for the <strong>{{ $election->title }}</strong> election closes in approximately <strong>24 hours</strong>.</p>
    @endif

    <div class="info-box">
        <div class="info-row">
            <span class="info-label">Election</span>
            <span class="info-value">{{ $election->title }}</span>
        </div>
        <div class="info-row">
            <span class="info-label">Voting Closes</span>
            <span class="info-value">{{ $election->voting_end_at?->format('M d, Y \a\t h:i A') ?? 'TBD' }}</span>
        </div>
        <div class="info-row">
            <span class="info-label">Positions</span>
            <span class="info-value">{{ $election->positions()->count() }} position(s)</span>
        </div>
    </div>

    <p>Your voice matters in shaping the future of {{ $association->name }}. Make sure your vote is counted.</p>

    <div style="text-align: center; margin: 32px 0;">
        <a href="{{ config('app.frontend_url', config('app.url')) }}/elections/{{ $election->id }}/vote" class="btn">Vote Now</a>
    </div>
@endsection
