﻿@import url("/desktop_ref/awesome/css/fontawesome.css");
@import url("/desktop_ref/awesome/css/brands.css");
@import url("/desktop_ref/awesome/css/solid.css");
@import url("/desktop_ref/awesome/css/sharp-thin.css");
@import url("/desktop_ref/awesome/css/sharp-duotone-thin.css");

@font-face {
    font-family: 'IRANSansWeb';
    src: url('https://psnparts.ir/fonts/IRANSansWeb.ttf');
    font-weight: normal;
    font-style: normal
}

@font-face {
    font-family: 'IRANSansWeb_Bold';
    src: url('https://psnparts.ir/fonts/IRANSansWeb_Bold.ttf');
    font-weight: 700
}

:root {
    --error-text: #212121;
    --error-white: #FFF;
    --primary: #0000FE;
    --primary-hover: #0000C8;
    --primary-light: rgba(0, 0, 254, 0.08);
    --primary-glow: rgba(0, 0, 254, 0.25);
    --bg-body: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow: 0 20px 40px -15px rgba(0, 0, 254, 0.07), 0 0 15px rgba(0, 0, 0, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;    
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    line-height: 1.7;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 15% 20%, rgba(0, 0, 254, 0.03) 0%, transparent 40%), radial-gradient(circle at 85% 80%, rgba(0, 0, 254, 0.04) 0%, transparent 40%);
}

input:focus, select:focus, textarea:focus, button:focus {
    outline: none
}

h1, h2, h3, h4, h5, h6, p, span, a, div, button {
    font-family: IRANSansWeb
}

.img-error-page-logo {
}

.header-brand {
    width: 100%;
    max-width: 680px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.25rem;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    letter-spacing: -0.5px;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Main Container */
.error-container {
    width: 100%;
    max-width: 680px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    margin: auto 0;
    position: relative;
    backdrop-filter: blur(10px);
}

/* SVG Illustration Styling */
.illustration-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-light);
    border-radius: 50%;
    animation: pulseGlow 3s infinite ease-in-out;
}

.error-code-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #EF4444;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

    .error-code-badge::before {
        content: '';
        width: 8px;
        height: 8px;
        background: #EF4444;
        border-radius: 50%;
        display: inline-block;
    }

.error-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
}

.error-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 2rem auto;
    font-weight: 400;
}

/* Actions Button Group */
.action-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-md);    
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

    .btn-primary:hover {
        background-color: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px var(--primary-glow);
    }

.btn-secondary {
    background-color: #F1F5F9;
    color: var(--text-main);
    border-color: var(--border-color);
}

    .btn-secondary:hover {
        background-color: #E2E8F0;
        color: var(--text-main);
        transform: translateY(-2px);
    }

/* Quick Helpful Links */
.quick-links {
    border-top: 1px dashed var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.quick-links-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    width: 100%;
    margin-bottom: 0.25rem;
}

.quick-link-item {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .quick-link-item:hover {
        color: var(--primary-hover);
        text-decoration: underline;
    }

/* Footer */
.footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.825rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.9;
    }
}

@keyframes rotateGear {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.rotating-gear {
    transform-origin: center;
    animation: rotateGear 20s linear infinite;
}

@media (max-width: 640px) {
    body {
        padding: 1rem;
    }

    .error-container {
        padding: 2rem 1.25rem;
    }

    .error-title {
        font-size: 1.4rem;
    }

    .error-desc {
        font-size: 0.9rem;
    }

    .btn {
        width: 100%;
    }

    .action-group {
        flex-direction: column;
    }
}