/* Error 404 Page
================================================================== */

.error-404 {
    text-align: center;
    padding: 40px 20px;
    max-width: 700px;
    margin: 0 auto;
}

/* Logo */
.error-404__icon {
    margin-bottom: 24px;
}

.error-404__icon img {
    max-width: 200px;
    height: auto;
}

/* Title — override default h1 chrome */
h1.error-404__title {
    font-size: 2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 12px;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    display: block;
}

.error-404__code {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--tyre-reviews-blue, #0db1e7);
    line-height: 1;
    margin-bottom: 8px;
}

/* Message */
.error-404__message {
    font-size: 1.1rem;
    color: #94a3b8;
    margin: 0 0 8px;
    line-height: 1.6;
}

.error-404__context {
    font-size: 1rem;
    color: #94a3b8;
    margin: 0 0 32px;
}

.error-404__context strong {
    color: #e2e8f0;
}

/* Search */
.error-404__search {
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-404__search .search-container {
    position: relative;
}

.error-404__search .input-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.error-404__search .form-control {
    border-radius: 8px 0 0 8px;
    padding: 12px 16px;
    font-size: 1rem;
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

.error-404__search .form-control::placeholder {
    color: #64748b;
}

.error-404__search .form-control:focus {
    background: #1e293b;
    border-color: var(--tyre-reviews-blue, #0db1e7);
    color: #e2e8f0;
    box-shadow: 0 0 0 0.25rem rgba(13, 177, 231, 0.25);
}

.error-404__search .btn-primary {
    padding: 12px 24px;
    font-weight: 600;
}

/* Browse section */
.error-404__browse-title {
    font-weight: 600;
    color: #94a3b8;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.error-404__browse-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.error-404__browse-card,
a.error-404__browse-card:link,
a.error-404__browse-card:visited {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

a.error-404__browse-card:hover {
    background: #253347;
    border-color: var(--tyre-reviews-blue, #0db1e7);
    box-shadow: 0 4px 12px rgba(13, 177, 231, 0.2);
    color: var(--tyre-reviews-blue, #0db1e7);
    text-decoration: none;
    transform: translateY(-2px);
}

.error-404__browse-card svg {
    width: 32px;
    height: 32px;
    color: var(--tyre-reviews-blue, #0db1e7);
}

/* Help link */
.error-404__help {
    font-size: 0.9rem;
    color: #64748b;
}

.error-404__help a,
.error-404__help a:link,
.error-404__help a:visited {
    color: var(--tyre-reviews-blue, #0db1e7);
    text-decoration: underline;
}

.error-404__help a:hover {
    color: var(--tyre-reviews-blue-dark, #0a9bcc);
}

/* Responsive */
@media (max-width: 600px) {
    .error-404 {
        padding: 24px 16px;
    }

    .error-404__icon img {
        max-width: 150px;
    }

    .error-404__code {
        font-size: 3rem;
    }

    .error-404__title {
        font-size: 1.5rem;
    }

    .error-404__browse-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
