﻿/*Shadkam*/

.error-404-section {
    min-height: 70vh;
    background: #ffffff;
    padding: 60px 0;
    display: flex;
    align-items: center;
    direction: rtl;
    text-align: center;
}

.error-illustration {
    max-width: 400px;
    margin: 0 auto;
    animation: float 3s ease-in-out infinite;
    direction: ltr;
}

.error-illustration svg {
    width: 100%;
    height: auto;
}

.error-content-wrapper {
    padding: 20px;
    direction: rtl;
    text-align: center;
}

.error-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    animation: fadeInDown 0.6s ease-out;
}

.error-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 20px;
    line-height: 1.3;
    text-align: center;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.error-description {
    font-size: 1.05rem;
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: center;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.error-actions {
    display: flex;
    direction: rtl;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.btn-home,
.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-home {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
    color: white;
}

.btn-back {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e9ecef;
}

.btn-back:hover {
    background: #e9ecef;
    color: #212529;
    transform: translateY(-2px);
}

.quick-links {
    direction: rtl;
    text-align: center;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.quick-links-label {
    font-size: 0.9rem;
    color: #adb5bd;
    margin-bottom: 15px;
    font-weight: 500;
    text-align: center;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    direction: rtl;
}

.quick-link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    direction: rtl;
    text-align: center;
}

.quick-link-item svg {
    color: #0d6efd;
    flex-shrink: 0;
}

.quick-link-item:hover {
    background: white;
    border-color: #0d6efd;
    color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .error-404-section {
        min-height: auto;
        padding: 40px 0;
        text-align: center;
    }

    .error-illustration {
        max-width: 280px;
        margin: 0 auto 30px;
    }

    .error-content-wrapper {
        padding: 10px 20px;
        text-align: center;
    }

    .error-badge {
        margin-bottom: 15px;
    }

    .error-title {
        font-size: 1.6rem;
        line-height: 1.5;
        text-align: center;
    }

    .error-description {
        font-size: 0.95rem;
        line-height: 1.9;
        text-align: center;
    }

    .error-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn-home,
    .btn-back {
        width: 100%;
        justify-content: center;
    }

    .quick-links-label {
        text-align: center;
    }

    .links-grid {
        grid-template-columns: repeat(2, 1fr);
        direction: rtl;
    }

    .quick-link-item {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .error-404-section {
        padding: 30px 0;
    }

    .error-illustration {
        max-width: 240px;
    }

    .error-title {
        font-size: 1.4rem;
    }

    .error-description {
        font-size: 0.9rem;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }
}
