/*!
 * 404.css - Portfolio Tech Theme
 * Estilos específicos para 404.php
 * Página de error personalizada y amigable
 */

/* ====================================
   1. ERROR HERO SECTION
   ==================================== */
.error-hero {
    background: var(--gradient-primary);
    color: white;
    padding: var(--spacing-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.error-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3e%3cg fill='none' fill-rule='evenodd'%3e%3cg fill='%23ffffff' fill-opacity='0.05'%3e%3ccircle cx='30' cy='30' r='2'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e");
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(60px) translateY(60px); }
}

.error-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.error-visual {
    position: relative;
    margin-bottom: var(--spacing-2xl);
}

.error-number {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.6) 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.error-number::after {
    content: '404';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.error-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 30%;
    right: 15%;
    animation-delay: 0.5s;
}

.floating-icon:nth-child(3) {
    bottom: 25%;
    left: 15%;
    animation-delay: 1s;
}

.floating-icon:nth-child(4) {
    bottom: 20%;
    right: 20%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-15px) rotate(5deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-8px) rotate(-3deg);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-20px) rotate(3deg);
        opacity: 1;
    }
}

.error-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.error-subtitle {
    font-size: var(--font-size-xl);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
    line-height: 1.4;
}

.error-description {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ====================================
   2. SEARCH SECTION
   ==================================== */
.error-search-section {
    padding: var(--spacing-3xl) 0;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
}

.search-help {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.search-help h2 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xl);
}

.error-search {
    position: relative;
}

.search-form-enhanced {
    position: relative;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-sm);
    gap: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-fast);
}

.search-input-wrapper:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), var(--shadow-xl);
    transform: translateY(-2px);
}

.search-icon {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    margin-left: var(--spacing-sm);
}

.search-field-enhanced {
    flex: 1;
    border: none;
    outline: none;
    font-size: var(--font-size-lg);
    padding: var(--spacing-md);
    background: transparent;
    color: var(--color-text-primary);
}

.search-field-enhanced::placeholder {
    color: var(--color-text-muted);
    font-style: italic;
}

.search-submit-enhanced {
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md) var(--spacing-xl);
    font-weight: 500;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-submit-enhanced:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 var(--border-radius-xl) var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: 10;
    display: none;
    margin-top: -1px;
}

.suggestions-category {
    padding: var(--spacing-lg);
}

.category-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.suggestion-tag {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    border: none;
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.suggestion-tag:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-1px);
}

/* ====================================
   3. QUICK NAVIGATION
   ==================================== */
.quick-navigation {
    padding: var(--spacing-3xl) 0;
    background: var(--color-surface);
}

.quick-navigation h2 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--color-text-primary);
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    position: relative;
}

.quick-navigation h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.nav-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-2xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(37, 99, 235, 0.05),
        transparent
    );
    transition: left var(--transition-slow);
}

.nav-card:hover::before {
    left: 100%;
}

.nav-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform var(--transition-fast);
}

.nav-card:hover .nav-icon {
    transform: scale(1.2) rotateY(15deg);
}

.nav-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

.nav-card p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-base);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
    font-size: var(--font-size-lg);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-primary-dark);
    transform: translateX(5px);
}

.nav-link .arrow {
    transition: transform var(--transition-fast);
}

.nav-link:hover .arrow {
    transform: translateX(5px);
}

/* ====================================
   4. POPULAR CONTENT
   ==================================== */
.popular-content {
    padding: var(--spacing-3xl) 0;
    background: var(--color-background);
}

.content-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    max-width: 1200px;
    margin: 0 auto;
}

.content-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-sm);
}

.content-section h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-border);
}

.content-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.content-item {
    padding: var(--spacing-lg);
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-fast);
}

.content-item:hover {
    border-color: var(--color-primary);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.content-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-sm);
}

.content-type {
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    border-radius: var(--border-radius-md);
    font-weight: 500;
    font-size: var(--font-size-xs);
}

.content-date,
.content-category {
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
}

.content-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.content-title a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.content-title a:hover {
    color: var(--color-primary);
}

.content-excerpt {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.no-content {
    color: var(--color-text-muted);
    font-style: italic;
    text-align: center;
    padding: var(--spacing-xl) 0;
}

/* ====================================
   5. CONTENT CATEGORIES
   ==================================== */
.content-categories {
    padding: var(--spacing-3xl) 0;
    background: var(--color-surface);
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    max-width: 1200px;
    margin: 0 auto;
}

.category-section h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-background);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-full);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.category-tag:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-tag.tech-tag:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.category-tag .count {
    background: rgba(255, 255, 255, 0.2);
    padding: var(--spacing-xs);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-xs);
    min-width: 20px;
    text-align: center;
}

.category-tag:hover .count {
    background: rgba(255, 255, 255, 0.3);
}

/* ====================================
   6. HELP AND CONTACT
   ==================================== */
.error-help {
    padding: var(--spacing-3xl) 0;
    background: var(--color-background);
}

.help-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    max-width: 800px;
    margin: 0 auto;
}

.help-section {
    text-align: center;
}

.help-section h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

.help-section p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
}

.help-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.help-btn.primary {
    background: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
}

.help-btn.primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.help-btn.secondary {
    background: var(--color-background);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.help-btn.secondary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-icon {
    font-size: 1.2em;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
    min-width: 80px;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.social-link.twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.social-link.linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.social-link.github:hover {
    background: #333333;
    color: white;
    border-color: #333333;
}

.social-link.behance:hover {
    background: #1769ff;
    color: white;
    border-color: #1769ff;
}

.social-icon {
    font-size: 1.5rem;
}

.social-text {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* ====================================
   7. NEWSLETTER CTA
   ==================================== */
.error-newsletter {
    padding: var(--spacing-3xl) 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-text h3 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.newsletter-text p {
    font-size: var(--font-size-lg);
    opacity: 0.95;
    line-height: 1.6;
    margin-bottom: var(--spacing-2xl);
}

.newsletter-form-404 {
    margin-bottom: var(--spacing-lg);
}

.newsletter-input-group {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-input-404 {
    flex: 1;
    padding: var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius-lg);
    font-size: var(--font-size-base);
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text-primary);
    transition: all var(--transition-fast);
}

.newsletter-input-404:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-input-404::placeholder {
    color: var(--color-text-muted);
}

.newsletter-btn-404 {
    padding: var(--spacing-lg) var(--spacing-xl);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-lg);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.newsletter-btn-404:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.newsletter-btn-404:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.newsletter-privacy {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-sm);
    margin: 0;
}

/* ====================================
   8. ANIMATIONS
   ==================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-card,
.content-item {
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
    animation-play-state: paused;
}

.nav-card:nth-child(1) { animation-delay: 0.1s; }
.nav-card:nth-child(2) { animation-delay: 0.2s; }
.nav-card:nth-child(3) { animation-delay: 0.3s; }
.nav-card:nth-child(4) { animation-delay: 0.4s; }
.nav-card:nth-child(5) { animation-delay: 0.5s; }
.nav-card:nth-child(6) { animation-delay: 0.6s; }

/* ====================================
   9. RESPONSIVE DESIGN
   ==================================== */

/* Large Desktop */
@media (max-width: 1200px) {
    .nav-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .error-hero {
        padding: var(--spacing-2xl) 0;
    }
    
    .error-number {
        font-size: clamp(4rem, 12vw, 8rem);
    }
    
    .error-title {
        font-size: var(--font-size-2xl);
    }
    
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-sections,
    .categories-grid,
    .help-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .error-hero {
        padding: var(--spacing-xl) 0;
    }
    
    .error-animation {
        width: 250px;
        height: 250px;
    }
    
    .floating-icon {
        font-size: 1.5rem;
    }
    
    .error-title {
        font-size: var(--font-size-xl);
    }
    
    .error-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .search-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-submit-enhanced {
        width: 100%;
        margin-top: var(--spacing-sm);
    }
    
    .nav-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-card {
        padding: var(--spacing-xl);
    }
    
    .social-links {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .newsletter-input-group {
        flex-direction: column;
        max-width: 100%;
    }
    
    .newsletter-input-404,
    .newsletter-btn-404 {
        width: 100%;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .error-hero {
        padding: var(--spacing-lg) 0;
    }
    
    .error-number {
        font-size: clamp(3rem, 20vw, 5rem);
    }
    
    .error-title {
        font-size: var(--font-size-lg);
    }
    
    .error-subtitle {
        font-size: var(--font-size-base);
    }
    
    .error-animation {
        width: 200px;
        height: 200px;
    }
    
    .floating-icon {
        font-size: 1.2rem;
    }
    
    .suggestion-tags {
        justify-content: center;
    }
    
    .nav-card {
        padding: var(--spacing-lg);
    }
    
    .nav-icon {
        font-size: 2.5rem;
    }
    
    .content-item {
        padding: var(--spacing-md);
    }
    
    .help-options {
        gap: var(--spacing-sm);
    }
    
    .help-btn {
        padding: var(--spacing-md);
        font-size: var(--font-size-sm);
    }
    
    .social-links {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .social-link {
        padding: var(--spacing-md);
        min-width: 60px;
    }
    
    .social-icon {
        font-size: 1.2rem;
    }
    
    .social-text {
        font-size: var(--font-size-xs);
    }
}

/* ====================================
   10. PRINT STYLES
   ==================================== */
@media print {
    .error-hero,
    .error-search-section,
    .error-help,
    .error-newsletter {
        display: none;
    }
    
    .quick-navigation,
    .popular-content,
    .content-categories {
        background: none;
        box-shadow: none;
    }
    
    .nav-card,
    .content-item,
    .category-tag {
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    * {
        color: #000 !important;
        background: #fff !important;
    }
}

/* ====================================
   11. DARK MODE SUPPORT
   ==================================== */
@media (prefers-color-scheme: dark) {
    .error-404-page {
        --color-background: #1a1a1a;
        --color-surface: #2d2d2d;
        --color-text-primary: #ffffff;
        --color-text-secondary: #cccccc;
        --color-text-muted: #999999;
        --color-border: #404040;
    }
    
    .search-field-enhanced {
        color: var(--color-text-primary);
    }
    
    .newsletter-input-404 {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    .newsletter-input-404::placeholder {
        color: rgba(255, 255, 255, 0.7);
    }
}

/* ====================================
   12. HIGH CONTRAST MODE
   ==================================== */
@media (prefers-contrast: high) {
    .nav-card,
    .content-item,
    .help-btn,
    .social-link,
    .category-tag {
        border-width: 2px;
    }
    
    .search-input-wrapper {
        border-width: 3px;
    }
    
    .nav-link,
    .content-title a {
        text-decoration: underline;
        font-weight: 600;
    }
}

/* ====================================
   13. REDUCED MOTION
   ==================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .floating-icon {
        animation: none;
    }
    
    .error-number::after {
        animation: none;
    }
    
    .error-hero::before {
        animation: none;
    }
    
    .nav-card:hover,
    .content-item:hover,
    .social-link:hover,
    .help-btn:hover {
        transform: none;
    }
}

/* ====================================
   14. FOCUS STATES FOR ACCESSIBILITY
   ==================================== */
.search-field-enhanced:focus,
.search-submit-enhanced:focus,
.suggestion-tag:focus,
.nav-link:focus,
.content-title a:focus,
.category-tag:focus,
.help-btn:focus,
.social-link:focus,
.newsletter-input-404:focus,
.newsletter-btn-404:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Skip links for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-primary);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    border-radius: var(--border-radius-md);
    z-index: 1000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 6px;
}

/* ====================================
   15. ENHANCED VISUAL EFFECTS
   ==================================== */

/* Gradient text effect for section headings */
.quick-navigation h2,
.content-section h3,
.category-section h3,
.help-section h3,
.newsletter-text h3 {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Pulse effect for important buttons */
.help-btn.primary,
.newsletter-btn-404 {
    position: relative;
    overflow: hidden;
}

.help-btn.primary::after,
.newsletter-btn-404::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.help-btn.primary:hover::after,
.newsletter-btn-404:hover::after {
    width: 300px;
    height: 300px;
}

/* Parallax effect for error hero */
@media (min-width: 1024px) {
    .error-hero {
        background-attachment: fixed;
        background-size: cover;
    }
}

/* Loading state for dynamic content */
.content-item.loading {
    background: linear-gradient(
        90deg,
        var(--color-surface) 25%,
        var(--color-background) 50%,
        var(--color-surface) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Tooltip enhancement */
.nav-card[title]:hover::after,
.category-tag[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--color-text-primary);
    color: var(--color-background);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-xs);
    white-space: nowrap;
    z-index: 10;
    margin-bottom: var(--spacing-xs);
}

/* Enhanced interaction feedback */
.suggestion-tag:active,
.nav-link:active,
.help-btn:active,
.social-link:active,
.category-tag:active {
    transform: scale(0.98);
}

/* Smooth entrance for error page elements */
.error-content > * {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.error-visual { animation-delay: 0.1s; }
.error-text { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Interactive search suggestions */
.search-suggestions.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced newsletter success state */
.newsletter-btn-404.success {
    background: var(--color-success);
    border-color: var(--color-success);
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Custom scrollbar for the page */
.error-404-page::-webkit-scrollbar {
    width: 8px;
}

.error-404-page::-webkit-scrollbar-track {
    background: var(--color-background);
}

.error-404-page::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

.error-404-page::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}