/**
 * Error 404 Styles
 * 
 * Styles for 404 error pages and partials
 * 
 * @package Station Sites Platform
 * @since 1.0.0
 */

/* Main 404 Error Styles */
.error-404 {
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.error-header h1 {
    color: #333;
    margin-bottom: 1rem;
}

.error-logo {
    margin: 2rem 0;
}

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

.error-message {
    margin: 2rem 0;
    color: #666;
}

.error-actions {
    margin: 2rem 0;
}

.error-actions .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin: 0.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.error-actions .btn-primary {
    background: #007cba;
    color: white;
}

.error-actions .btn-primary:hover {
    background: #005a87;
}

.error-actions .btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.error-actions .btn-secondary:hover {
    background: #e9ecef;
}

.error-search,
.popular-categories {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: left;
}

.error-search h3,
.popular-categories h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    color: #333;
    text-decoration: none;
}

.category-list a:hover {
    color: #000;
    text-decoration: underline;
}

.count {
    color: #6c757d;
    font-size: 0.9em;
}

/* Enhanced 404 Template Styles */
.error__404 {
    padding: 2rem 0;
}

.error-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.error-content {
    flex: 1;
    min-width: 300px;
}

.error-image {
    flex: 0 0 300px;
    text-align: center;
}

.error-image img {
    max-width: 100%;
    height: auto;
}

.link-grid__404 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.link-grid__404 a {
    display: block;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    text-align: center;
    transition: all 0.3s ease;
}

.link-grid__404 a:hover {
    background: #e9ecef;
    border-color: #007cba;
    color: #007cba;
}

.search-form__404 {
    margin: 2rem 0;
}

.search-form__404 .search-field {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
}

.search-form__404 .search-submit {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form__404 .search-submit:hover {
    background: #005a87;
}

.recent-posts__404 {
    margin: 2rem 0;
}

.recent-posts__404 h3 {
    margin-bottom: 1rem;
    color: #333;
}

.recent-posts__404 ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts__404 li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #dee2e6;
}

.recent-posts__404 li:last-child {
    border-bottom: none;
}

.recent-posts__404 a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.recent-posts__404 a:hover {
    color: #007cba;
    text-decoration: underline;
}

.recent-posts__404 .post-date {
    color: #6c757d;
    font-size: 0.9em;
    margin-top: 0.25rem;
}

.recent-posts__404 ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts__404 li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #dee2e6;
}

.recent-posts__404 li:last-child {
    border-bottom: none;
}

.recent-posts__404 a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.recent-posts__404 a:hover {
    color: #007cba;
    text-decoration: underline;
}

.recent-posts__404 .post-date {
    color: #6c757d;
    font-size: 0.9em;
    margin-top: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .error-wrapper {
        flex-direction: column;
    }
    
    .error-image {
        flex: none;
        order: -1;
    }
    
    .link-grid__404 {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .error-404 {
        padding: 1rem;
    }
    
    .error-search,
    .popular-categories {
        padding: 1rem;
    }
}

