<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="robots" content="noindex,nofollow">
    <title>{{ $siteName }} - در حال تعمیرات</title>
    @if(!empty($siteFavicon))
    <link rel="icon" href="{{ $siteFavicon }}">
    @endif
    <link rel="stylesheet" href="{{ asset('theme/assets/css/bootstrap.rtl.min.css') }}">
    <link rel="stylesheet" href="{{ asset('theme/assets/font/bootstrap-icon/bootstrap-icons.css') }}">
    <link rel="stylesheet" href="{{ asset('theme/assets/css/style.css') }}?v={{ @filemtime(public_path('theme/assets/css/style.css')) ?: '1' }}">
    <style>
        body.maintenance-page {
            min-height: 100vh;
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background:
                radial-gradient(ellipse 80% 60% at 50% -10%, rgba(185, 28, 28, .12), transparent 55%),
                linear-gradient(180deg, #f8f6f4 0%, #efeae6 100%);
        }
        .maintenance-card {
            width: min(520px, calc(100% - 2rem));
            text-align: center;
            padding: 2.5rem 1.75rem;
        }
        .maintenance-logo {
            max-height: 64px;
            max-width: 220px;
            object-fit: contain;
            margin-bottom: 1.75rem;
        }
        .maintenance-icon {
            width: 72px;
            height: 72px;
            margin: 0 auto 1.25rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #fff;
            color: var(--main-color-one, #b91c1c);
            box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
            font-size: 1.75rem;
        }
        .maintenance-card h1 {
            font-size: clamp(1.35rem, 3.5vw, 1.75rem);
            font-weight: 800;
            color: #1f2937;
            margin-bottom: .65rem;
        }
        .maintenance-card .lead-msg {
            color: #6b7280;
            font-size: 1.05rem;
            margin-bottom: 1.75rem;
        }
        .maintenance-phones {
            background: #fff;
            border-radius: 14px;
            padding: 1.15rem 1.25rem;
            box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
            text-align: right;
        }
        .maintenance-phones .label {
            font-size: .8rem;
            font-weight: 700;
            color: #9ca3af;
            margin-bottom: .65rem;
        }
        .maintenance-phones a {
            display: flex;
            align-items: center;
            gap: .6rem;
            color: #1f2937;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.05rem;
            padding: .45rem 0;
            border-top: 1px solid #f3f4f6;
        }
        .maintenance-phones a:first-of-type { border-top: 0; }
        .maintenance-phones a:hover { color: var(--main-color-one, #b91c1c); }
        .maintenance-phones a i { color: var(--main-color-one, #b91c1c); }
    </style>
</head>
<body class="maintenance-page">
    <div class="maintenance-card">
        <img src="{{ $siteLogo }}" alt="{{ $siteName }}" class="maintenance-logo">
        <div class="maintenance-icon" aria-hidden="true">
            <i class="bi bi-tools"></i>
        </div>
        <h1>در حال تعمیرات هستیم</h1>
        <p class="lead-msg">بزودی باز می‌گردیم</p>

        @if(!empty($phones))
        <div class="maintenance-phones">
            <div class="label">پشتیبانی</div>
            @foreach($phones as $phone)
                @php $tel = preg_replace('/[^\d+]/', '', $phone); @endphp
                <a href="tel:{{ $tel }}" dir="ltr">
                    <i class="bi bi-telephone-fill"></i>
                    <span>{{ $phone }}</span>
                </a>
            @endforeach
        </div>
        @endif
    </div>
</body>
</html>
