/* Navigation Section */
.navigation-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* Navigation in Detail Page Right Column */
.navigation-in-detail .navigation-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.navigation-section .navigation-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.nav-link {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-link:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.nav-link.nav-disabled {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.nav-link.nav-disabled:hover {
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transform: none;
}

.nav-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #6b7280;
    margin-top: 0.125rem;
}

.nav-link:hover .nav-icon {
    color: #3b82f6;
}

.nav-content {
    flex: 1;
    min-width: 0; /* Allow text to truncate */
}

.nav-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.nav-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.nav-link:hover .nav-title {
    color: #1f2937;
}

.nav-prev {
    text-align: left;
}

.nav-next {
    text-align: right;
    flex-direction: row-reverse;
}

/* Navigation in detail page - single column layout */
.navigation-in-detail .nav-next {
    text-align: left;
    flex-direction: row;
}

.navigation-in-detail .nav-next .nav-icon {
    order: -1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navigation-section {
        padding: 1.5rem 0;
        margin-top: 1.5rem;
    }
    
    .navigation-wrapper {
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .nav-link {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .nav-icon {
        width: 20px;
        height: 20px;
    }
    
    .nav-title {
        font-size: 0.875rem;
    }
    
    .nav-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .navigation-wrapper {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .nav-link {
        padding: 0.875rem;
    }
    
    .nav-next {
        flex-direction: row; /* Reset direction on mobile */
        text-align: left;
    }
    
    .nav-next .nav-icon {
        order: -1; /* Icon first on mobile */
    }
}
