/**
 * 404 Error Page Styles
 * Seven Scribes Theme
 * 
 * @package Seven_Scribes
 */

/* ========================================
   Main Container
   ======================================== */

.error-404-page {
    padding-top: 0;
    min-height: 100vh;
}

.error-404 {
    min-height: calc(100vh - var(--header-height, 80px));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    background: var(--background-color, #ffffff);
    position: relative;
}

.container-404 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.error-404-content {
    text-align: center;
}

/* ========================================
   Error Illustration
   ======================================== */

.error-404-illustration {
    margin-bottom: 3rem;
}

.error-code-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-digit {
    color: var(--primary-color, #3498db);
    text-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
    animation: fadeInUp 0.6s ease-out;
}

.error-digit:first-child {
    animation-delay: 0.1s;
}

.error-digit:last-child {
    animation-delay: 0.3s;
}

.error-zero {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.code-icon {
    width: 100%;
    height: 100%;
    color: var(--secondary-color, #2ecc71);
    animation: pulse 2s ease-in-out infinite;
}

.error-subtext {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color, #333);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: fadeIn 0.8s ease-out 0.4s backwards;
}

/* ========================================
   Header Content
   ======================================== */

.error-header {
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.error-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color, #333);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.error-description {
    font-size: 1.1rem;
    color: var(--text-color, #333);
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   Action Buttons
   ======================================== */

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-button svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.action-button:hover svg {
    transform: translateX(3px);
}

.action-button.primary {
    background: linear-gradient(135deg, var(--primary-color, #3498db), var(--secondary-color, #2ecc71));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.action-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.action-button.secondary {
    background: var(--card-bg-color, #f9f9f9);
    color: var(--text-color, #333);
    border-color: var(--border-color, #e0e0e0);
}

.action-button.secondary:hover {
    background: var(--primary-color, #3498db);
    color: #ffffff;
    border-color: var(--primary-color, #3498db);
    transform: translateY(-3px);
}

/* ========================================
   Search Section
   ======================================== */

.error-search-section {
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 0.7s backwards;
}

.search-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color, #333);
    margin-bottom: 1.5rem;
}

.error-search-form {
    max-width: 600px;
    margin: 0 auto;
}

.error-search-form .search-form {
    display: flex;
    gap: 0.5rem;
}

.error-search-form .search-field {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--border-color, #e0e0e0);
    background: var(--card-bg-color, #f9f9f9);
    color: var(--text-color, #333);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.error-search-form .search-field:focus {
    outline: none;
    border-color: var(--primary-color, #3498db);
    background: var(--background-color, #ffffff);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.error-search-form .search-submit {
    padding: 1rem 2rem;
    background: var(--primary-color, #3498db);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-search-form .search-submit:hover {
    background: var(--primary-color-dark, #2980b9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* ========================================
   Content Grid
   ======================================== */

.error-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.content-card {
    background: var(--card-bg-color, #f9f9f9);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: left;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color, #3498db);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color, #e0e0e0);
}

.card-header svg {
    color: var(--primary-color, #3498db);
    flex-shrink: 0;
}

.card-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color, #333);
    margin: 0;
}

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

.content-list li {
    margin-bottom: 0.75rem;
}

.content-list li:last-child {
    margin-bottom: 0;
}

.content-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color, #333);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.content-list a svg {
    color: var(--primary-color, #3498db);
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.content-list a:hover {
    color: var(--primary-color, #3498db);
    padding-left: 0.5rem;
}

.content-list a:hover svg {
    opacity: 1;
    transform: translateX(0);
}

/* Social Links List Specific Styles */
.social-links-list a svg {
    opacity: 1;
    transform: none;
    transition: all 0.3s ease;
}

.social-links-list a:hover svg {
    transform: scale(1.1);
    color: var(--secondary-color, #2ecc71);
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* ========================================
   Dark Theme Support
   ======================================== */

body.dark-theme .error-404,
body.dark-mode .error-404 {
    background: var(--background-color, #1a1a1a);
}

body.dark-theme .error-digit,
body.dark-mode .error-digit {
    color: var(--primary-color, #4a9eff);
}

body.dark-theme .code-icon,
body.dark-mode .code-icon {
    color: var(--secondary-color, #27ae60);
}

body.dark-theme .error-title,
body.dark-mode .error-title,
body.dark-theme .error-description,
body.dark-mode .error-description,
body.dark-theme .search-title,
body.dark-mode .search-title {
    color: var(--text-color, #f5f5f5);
}

body.dark-theme .content-card,
body.dark-mode .content-card {
    background: var(--card-bg-color, #2a2a2a);
    border-color: var(--border-color, #3a3a3a);
}

body.dark-theme .card-header h3,
body.dark-mode .card-header h3,
body.dark-theme .content-list a,
body.dark-mode .content-list a {
    color: var(--text-color, #f5f5f5);
}

body.dark-theme .action-button.secondary,
body.dark-mode .action-button.secondary {
    background: var(--card-bg-color, #2a2a2a);
    color: var(--text-color, #f5f5f5);
    border-color: var(--border-color, #3a3a3a);
    }

body.dark-theme .error-search-form .search-field,
body.dark-mode .error-search-form .search-field {
    background: var(--card-bg-color, #2a2a2a);
    border-color: var(--border-color, #3a3a3a);
    color: var(--text-color, #f5f5f5);
}

body.dark-theme .card-header,
body.dark-mode .card-header {
    border-color: var(--border-color, #3a3a3a);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 992px) {
    .error-code-wrapper {
        font-size: 6rem;
    }
    
    .error-zero {
        width: 90px;
        height: 90px;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .error-404 {
        padding: 3rem 0;
    }
    
    .container-404 {
        padding: 0 1.5rem;
    }

    .error-code-wrapper {
        font-size: 4rem;
        gap: 0.5rem;
    }
    
    .error-zero {
        width: 60px;
        height: 60px;
    }
    
    .error-title {
        font-size: 1.75rem;
    }

    .error-description {
        font-size: 1rem;
    }

    .error-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-button {
        justify-content: center;
        width: 100%;
    }
    
    .error-search-form .search-form {
        flex-direction: column;
    }

    .error-search-form .search-submit {
        width: 100%;
    }
    
    .content-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .error-404 {
        padding: 2rem 0;
    }
    
    .container-404 {
        padding: 0 1rem;
    }
    
    .error-code-wrapper {
        font-size: 3rem;
    }
    
    .error-zero {
        width: 50px;
        height: 50px;
    }
    
    .error-subtext {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .action-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .content-card {
        padding: 1.25rem;
    }
    
    .card-header h3 {
        font-size: 1.1rem;
    }
}
